spi: fsl_dspi: rename num-cs to spi-num-chipselects
authorMichael Walle <michael@walle.cc>
Wed, 13 Oct 2021 16:14:18 +0000 (18:14 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
The official devicetree bindings specifies spi-num-chipselects as the
name. Use it.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-ls1012a.dtsi
arch/arm/dts/fsl-ls1028a.dtsi
arch/arm/dts/fsl-ls1043a.dtsi
arch/arm/dts/fsl-ls1046a.dtsi
arch/arm/dts/fsl-ls1088a.dtsi
arch/arm/dts/fsl-ls2080a.dtsi
arch/arm/dts/fsl-lx2160a.dtsi
arch/arm/dts/ls1021a.dtsi
arch/arm/dts/vf.dtsi
drivers/spi/fsl_dspi.c

index 2894842..dcdcd44 100644 (file)
@@ -49,7 +49,7 @@
                        interrupts = <0 64 0x4>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
index 6158a13..7da3256 100644 (file)
                        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <5>;
+                       spi-num-chipselects = <5>;
                        litte-endian;
                        status = "disabled";
                };
                        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <5>;
+                       spi-num-chipselects = <5>;
                        little-endian;
                        status = "disabled";
                };
                        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <5>;
+                       spi-num-chipselects = <5>;
                        little-endian;
                        status = "disabled";
                };
index d8171bd..3aaec8b 100644 (file)
@@ -53,7 +53,7 @@
                        interrupts = <0 64 0x4>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
@@ -66,7 +66,7 @@
                        interrupts = <0 65 0x4>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
index 9df419a..6a205cd 100644 (file)
@@ -52,7 +52,7 @@
                        interrupts = <0 64 0x4>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
@@ -65,7 +65,7 @@
                        interrupts = <0 65 0x4>;
                        clock-names = "dspi";
                        clocks = <&clockgen 4 0>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
index 0db02b1..73c8928 100644 (file)
@@ -89,7 +89,7 @@
                #size-cells = <0>;
                reg = <0x0 0x2100000 0x0 0x10000>;
                interrupts = <0 26 0x4>; /* Level high type */
-               num-cs = <6>;
+               spi-num-chipselects = <6>;
        };
 
        qspi: quadspi@1550000 {
index 278daee..72ba525 100644 (file)
@@ -93,7 +93,7 @@
                #size-cells = <0>;
                reg = <0x0 0x2100000 0x0 0x10000>;
                interrupts = <0 26 0x4>; /* Level high type */
-               num-cs = <6>;
+               spi-num-chipselects = <6>;
        };
 
        qspi: quadspi@1550000 {
index 3b5f0d1..52e4d72 100644 (file)
                #size-cells = <0>;
                reg = <0x0 0x2100000 0x0 0x10000>;
                interrupts = <0 26 0x4>; /* Level high type */
-               num-cs = <6>;
+               spi-num-chipselects = <6>;
        };
 
        dspi1: dspi@2110000 {
                #size-cells = <0>;
                reg = <0x0 0x2110000 0x0 0x10000>;
                interrupts = <0 26 0x4>; /* Level high type */
-               num-cs = <6>;
+               spi-num-chipselects = <6>;
        };
 
        dspi2: dspi@2120000 {
                #size-cells = <0>;
                reg = <0x0 0x2120000 0x0 0x10000>;
                interrupts = <0 241 0x4>; /* Level high type */
-               num-cs = <6>;
+               spi-num-chipselects = <6>;
        };
 
        gpio0: gpio@2300000 {
index 7ba2dd2..8aefc82 100644 (file)
                        interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "dspi";
                        clocks = <&platform_clk 1>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
                        interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "dspi";
                        clocks = <&platform_clk 1>;
-                       num-cs = <6>;
+                       spi-num-chipselects = <6>;
                        big-endian;
                        status = "disabled";
                };
index 5ba13dc..1bdaf3d 100644 (file)
@@ -70,7 +70,7 @@
                                #size-cells = <0>;
                                compatible = "fsl,vf610-dspi";
                                reg = <0x4002c000 0x1000>;
-                               num-cs = <5>;
+                               spi-num-chipselects = <5>;
                                status = "disabled";
                        };
 
@@ -79,7 +79,7 @@
                                #size-cells = <0>;
                                compatible = "fsl,vf610-dspi";
                                reg = <0x4002d000 0x1000>;
-                               num-cs = <5>;
+                               spi-num-chipselects = <5>;
                                status = "disabled";
                        };
 
index 23d812f..62444e4 100644 (file)
@@ -586,8 +586,9 @@ static int fsl_dspi_of_to_plat(struct udevice *bus)
        if (fdtdec_get_bool(blob, node, "big-endian"))
                plat->flags |= DSPI_FLAG_REGMAP_ENDIAN_BIG;
 
-       plat->num_chipselect =
-               fdtdec_get_int(blob, node, "num-cs", FSL_DSPI_MAX_CHIPSELECT);
+       plat->num_chipselect = fdtdec_get_int(blob, node,
+                                             "spi-num-chipselects",
+                                             FSL_DSPI_MAX_CHIPSELECT);
 
        addr = dev_read_addr(bus);
        if (addr == FDT_ADDR_T_NONE) {