Skip to contentSkip to conversation

ARM: dts: armada-xp: Replace deprecated spi-gpio properties

PATCH In review Fabio Estevam 3 participants 3 messages May 16, 2023 – May 17, 2023 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: armada-xp: Replace deprecated spi-gpio properties

From: Fabio Estevam <[email protected]>

As stated in Documentation/devicetree/bindings/spi/spi-gpio.yaml, 'gpio-mosi' and 'gpio-sck' are deprecated properties.

Use the recommeded 'mosi-gpios' and 'sck-gpios' instead.

---
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts +2 -2
index 0dad95ea26c2..21b95578fe95 100644
@@ -167,8 +167,8 @@ scroll-button {
 	spi-3 {
 		compatible = "spi-gpio";
 		status = "okay";
-		gpio-sck = <&gpio0 25 GPIO_ACTIVE_LOW>;
-		gpio-mosi = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
+		sck-gpios  = <&gpio0 25 GPIO_ACTIVE_LOW>;
+		mosi-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/
 		cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
 		num-chipselects = <1>;
 		#address-cells = <1>;
Signature · 1 line
2.34.1
#2 lore raw
Quoted 11 lines · Andrew Lunn
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

As stated in Documentation/devicetree/bindings/spi/spi-gpio.yaml, 'gpio-mosi' and 'gpio-sck' are deprecated properties.

Use the recommeded 'mosi-gpios' and 'sck-gpios' instead.

Applied on mvebu/dt

Thanks,

Gregory

Quoted 2 lines

Andrew

Signature · 8 lines
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel