From d108d2ad3de94eeb7a349011c483e9cea735249f Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Fri, 10 Dec 2021 11:05:58 -0500 Subject: [PATCH] tools/litex_json2dts_linux.py: update mmc node Add `reg-names` property, which facilitates cleaner probing for the upstream Linux device driver. Also, add a reference to the LiteX sys_clk, also for the benefit of the upstream driver, which can't rely on the CPU frequency matching sys_clk. Signed-off-by: Gabriel Somlo --- litex/tools/litex_json2dts_linux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/tools/litex_json2dts_linux.py b/litex/tools/litex_json2dts_linux.py index dccec01d2..8cf03fc2e 100755 --- a/litex/tools/litex_json2dts_linux.py +++ b/litex/tools/litex_json2dts_linux.py @@ -388,6 +388,8 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic <0x{sdblock2mem:x} 0x100>, <0x{sdmem2block:x} 0x100>, <0x{sdirq:x} 0x100>; + reg-names = "phy", "core", "reader", "writer", "irq"; + clocks = <&sys_clk>; bus-width = <0x04>; {sdirq_interrupt} status = "okay";