spi: fsl_dspi: rename num-cs to spi-num-chipselects
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>
This commit is contained in:
parent
765afe7fb3
commit
8c58089287
@ -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";
|
||||
};
|
||||
|
@ -165,7 +165,7 @@
|
||||
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";
|
||||
};
|
||||
@ -178,7 +178,7 @@
|
||||
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";
|
||||
};
|
||||
@ -191,7 +191,7 @@
|
||||
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";
|
||||
};
|
||||
|
@ -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";
|
||||
};
|
||||
|
@ -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";
|
||||
};
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -172,7 +172,7 @@
|
||||
#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 {
|
||||
@ -181,7 +181,7 @@
|
||||
#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 {
|
||||
@ -190,7 +190,7 @@
|
||||
#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 {
|
||||
|
@ -190,7 +190,7 @@
|
||||
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";
|
||||
};
|
||||
@ -203,7 +203,7 @@
|
||||
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";
|
||||
};
|
||||
|
@ -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";
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user