tools/litex_json2dts: Fix i2c node

i2c@f0000800: '#address-cells' is a required property
    From schema: Documentation/devicetree/bindings/i2c/litex,i2c.yaml
    i2c@f0000800: '#size-cells' is a required property
    From schema: Documentation/devicetree/bindings/i2c/litex,i2c.yaml

Fix this by adding the missing properties.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven 2021-03-28 12:42:40 +02:00
parent e09b2bd1c5
commit 24ad265a3b
1 changed files with 2 additions and 0 deletions

View File

@ -355,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"])