]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: cssi: Fix SPI nodes in DTS
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 12 Apr 2024 10:10:14 +0000 (12:10 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Apr 2024 13:47:46 +0000 (15:47 +0200)
When adding additional SPI peripherals, the reg property needs to
be added, and this leads to the following error:

  arch/powerpc/dts/cmpc885.dtb: Warning (reg_format): /immr@ff000000/spi@aa0/temp@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
  arch/powerpc/dts/cmpc885.dtb: Warning (reg_format): /immr@ff000000/spi@aa0/temp@2:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)

Fix it by removing cell-index and cell-size which is unused and add
reg property. Also fix node name to be in line with reg value.
Also add missing compatible for eeprom node.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
arch/powerpc/dts/cmpc885.dts
arch/powerpc/dts/cmpcpro.dts

index 7b9566a0fa47fec79df9d5c41034733336a12531..9a33e7e77ca8bcca80acd0f4c00df9ec66610d15 100644 (file)
                spi: spi@aa0 {
                        status = "okay";
                        #address-cells = <1>;
-                       #size-cells = <1>;
-                       cell-index = <0>;
+                       #size-cells = <0>;
                        compatible = "fsl,mpc8xx-spi";
                        gpios = <&CPM1_PIO_B 21 1>; /* /EEPROM_CS ACTIVE_LOW */
 
                        eeprom@0 {
-                               cell-index = <1>;
+                               reg = <0>;
+                               compatible = "atmel,at25", "cs,eeprom";
                        };
                };
        };
index c27d9dba335059d6f3f4ba3830b74d59ea4a26bb..78f8a9f4d3212cbc278985062481eadc84a0931c 100644 (file)
                        mode = "cpu";
                        gpios = <&qe_pio_d 3 1>;
                        clock-frequency = <0>;
-                       eeprom@3 {
+                       eeprom@0 {
+                               reg = <0>;
                                compatible = "atmel,at25", "cs,eeprom";
-                               cell-index = <1>;
                        };
                };
                eth0: ucc@3000 {