commit
544c0e2c84
|
@ -287,6 +287,8 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
||||||
leds: gpio@{leds_csr_base:x} {{
|
leds: gpio@{leds_csr_base:x} {{
|
||||||
compatible = "litex,gpio";
|
compatible = "litex,gpio";
|
||||||
reg = <0x{leds_csr_base:x} 0x4>;
|
reg = <0x{leds_csr_base:x} 0x4>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
litex,direction = "out";
|
litex,direction = "out";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
}};
|
}};
|
||||||
|
@ -313,6 +315,8 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
||||||
switches: gpio@{switches_csr_base:x} {{
|
switches: gpio@{switches_csr_base:x} {{
|
||||||
compatible = "litex,gpio";
|
compatible = "litex,gpio";
|
||||||
reg = <0x{switches_csr_base:x} 0x4>;
|
reg = <0x{switches_csr_base:x} 0x4>;
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
litex,direction = "in";
|
litex,direction = "in";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
}};
|
}};
|
||||||
|
@ -351,6 +355,8 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
||||||
i2c0: i2c@{i2c0_csr_base:x} {{
|
i2c0: i2c@{i2c0_csr_base:x} {{
|
||||||
compatible = "litex,i2c";
|
compatible = "litex,i2c";
|
||||||
reg = <0x{i2c0_csr_base:x} 0x5>;
|
reg = <0x{i2c0_csr_base:x} 0x5>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
}};
|
}};
|
||||||
""".format(i2c0_csr_base=d["csr_bases"]["i2c0"])
|
""".format(i2c0_csr_base=d["csr_bases"]["i2c0"])
|
||||||
|
|
Loading…
Reference in New Issue