Commit 8c452a88 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/devicetrees: Change 'gpios' to 'cs-gpios' on fsl, spi nodes

Since commit 0f0581b2 ("spi: fsl: Convert to use CS GPIO
descriptors"), the prefered way to define chipselect GPIOs is using
'cs-gpios' property instead of the legacy 'gpios' property.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7556683b57d8ce100855857f03d1cd3d2903d045.1574943062.git.christophe.leroy@c-s.fr
parent a426ea9b
...@@ -15,13 +15,13 @@ Required properties: ...@@ -15,13 +15,13 @@ Required properties:
- clock-frequency : input clock frequency to non FSL_SOC cores - clock-frequency : input clock frequency to non FSL_SOC cores
Optional properties: Optional properties:
- gpios : specifies the gpio pins to be used for chipselects. - cs-gpios : specifies the gpio pins to be used for chipselects.
The gpios will be referred to as reg = <index> in the SPI child nodes. The gpios will be referred to as reg = <index> in the SPI child nodes.
If unspecified, a single SPI device without a chip select can be used. If unspecified, a single SPI device without a chip select can be used.
- fsl,spisel_boot : for the MPC8306 and MPC8309, specifies that the - fsl,spisel_boot : for the MPC8306 and MPC8309, specifies that the
SPISEL_BOOT signal is used as chip select for a slave device. Use SPISEL_BOOT signal is used as chip select for a slave device. Use
reg = <number of gpios> in the corresponding child node, i.e. 0 if reg = <number of gpios> in the corresponding child node, i.e. 0 if
the gpios property is not present. the cs-gpios property is not present.
Example: Example:
spi@4c0 { spi@4c0 {
...@@ -31,8 +31,8 @@ Example: ...@@ -31,8 +31,8 @@ Example:
interrupts = <82 0>; interrupts = <82 0>;
interrupt-parent = <700>; interrupt-parent = <700>;
mode = "cpu"; mode = "cpu";
gpios = <&gpio 18 1 // device reg=<0> cs-gpios = <&gpio 18 1 // device reg=<0>
&gpio 19 1>; // device reg=<1> &gpio 19 1>; // device reg=<1>
}; };
......
...@@ -224,7 +224,7 @@ spi@11aa0 { ...@@ -224,7 +224,7 @@ spi@11aa0 {
reg = <0x11a80 0x40 0x89fc 0x2>; reg = <0x11a80 0x40 0x89fc 0x2>;
interrupts = <2 8>; interrupts = <2 8>;
interrupt-parent = <&PIC>; interrupt-parent = <&PIC>;
gpios = < &cpm2_pio_d 19 0>; cs-gpios = < &cpm2_pio_d 19 0>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
ds3106@1 { ds3106@1 {
......
...@@ -249,7 +249,7 @@ spi@4c0 { ...@@ -249,7 +249,7 @@ spi@4c0 {
reg = <0x4c0 0x40>; reg = <0x4c0 0x40>;
interrupts = <2>; interrupts = <2>;
interrupt-parent = <&qeic>; interrupt-parent = <&qeic>;
gpios = <&qe_pio_d 13 0>; cs-gpios = <&qe_pio_d 13 0>;
mode = "cpu-qe"; mode = "cpu-qe";
mmc-slot@0 { mmc-slot@0 {
......
...@@ -200,7 +200,7 @@ spi@7000 { ...@@ -200,7 +200,7 @@ spi@7000 {
interrupts = <59 2>; interrupts = <59 2>;
interrupt-parent = <&mpic>; interrupt-parent = <&mpic>;
mode = "cpu"; mode = "cpu";
gpios = <&sdcsr_pio 7 0>; cs-gpios = <&sdcsr_pio 7 0>;
sleep = <&pmc 0x00000800 0>; sleep = <&pmc 0x00000800 0>;
mmc-slot@0 { mmc-slot@0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment