Skip to contentSkip to conversation

arm64: dts: qcom: arduino-imola: fix faulty spidev node

PATCH Superseded Riccardo Mereu 3 participants 3 messages Feb 12

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: arduino-imola: fix faulty spidev node

From: Riccardo Mereu <[email protected]>

CS pin added on pinctrl0 property is causing spidev to return -ENODEV since that GPIO is already part of spi5 pinmuxing.

Fixes 3f745bc0f11f ("arm64: dts: qcom: qrb2210: add dts for Arduino unoq")
---
 arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts | 8 --------
 1 file changed, 8 deletions(-)
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts +0 -8
index 197ab6eb1666..796c1f7ff17c 100644
@@ -328,18 +328,10 @@ &spi5 {
 	spidev@0 {
 		reg = <0>;
 		compatible = "arduino,unoq-mcu";
-		pinctrl-0 = <&spidev_cs>;
-		pinctrl-names = "default";
 	};
 };
 
 &tlmm {
-	spidev_cs: spidev-cs-state {
-		pins = "gpio17";
-		function = "gpio";
-		drive-strength = <16>;
-	};
-
 	jmisc_gpio18: jmisc-gpio18-state {
 		pins = "gpio18";
 		function = "gpio";
Signature · 1 line
2.53.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · Riccardo Mereu

From: Riccardo Mereu <[email protected]>

CS pin added on pinctrl0 property is causing spidev to return -ENODEV since that GPIO is already part of spi5 pinmuxing.

Fixes 3f745bc0f11f ("arm64: dts: qcom: qrb2210: add dts for Arduino unoq")

---

note: usually one would include a short changelog under the --- line, but here I still remember it was "also remove pinctrl-names override"

Konrad

#2 lore raw
In reply to Riccardo Mereu
Quoted 16 lines · Riccardo Mereu

From: Riccardo Mereu <[email protected]>

CS pin added on pinctrl0 property is causing spidev to return -ENODEV since that GPIO is already part of spi5 pinmuxing.

Fixes 3f745bc0f11f ("arm64: dts: qcom: qrb2210: add dts for Arduino unoq")
---
 arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts | 8 --------
 1 file changed, 8 deletions(-)
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts +0 -0
index 197ab6eb1666..796c1f7ff17c 100644

arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts &spi5 { · line 328

Quoted 1 line
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts +0 -0
@@ -328,18 +328,10 @@ &spi5 {
 	spidev@0 {

Of you're modifying this node, you should fix the nodename too. "spidev" isn't a type of device. It should probably either be "mcu@" or whatever the mcu is used for.

Quoted 20 lines
arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts +0 -8
 		reg = <0>;
 		compatible = "arduino,unoq-mcu";
-		pinctrl-0 = <&spidev_cs>;
-		pinctrl-names = "default";
 	};
 };
 
 &tlmm {
-	spidev_cs: spidev-cs-state {
-		pins = "gpio17";
-		function = "gpio";
-		drive-strength = <16>;
-	};
-
 	jmisc_gpio18: jmisc-gpio18-state {
 		pins = "gpio18";
 		function = "gpio";
Signature · 1 line
2.53.0