Skip to contentSkip to conversation

arm64: dts: renesas: salvator-common: add GPIO extender

PATCH Superseded Wolfram Sang 4 participants 7 messages Dec 21, 2017 – Jan 3, 2018

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: renesas: salvator-common: add GPIO extender

We need to configure its GPIOs later.

---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +5 -0
index a298df74ca6c03..ab4763f09dc7fd 100644
@@ -338,6 +338,11 @@
 &i2c4 {
 	status = "okay";
 
+	pca9654: gpio@20 {
+		compatible = "onnn,pca9654";
+		reg = <0x20>;
+	};
+
 	csa_vdd: adc@7c {
 		compatible = "maxim,max9611";
 		reg = <0x7c>;
Signature · 1 line
2.11.0
#1 lore raw
Quoted 4 lines · Wolfram Sang

We need to configure its GPIOs later.

---

Forgot to say, this depends on 8a64e557f399090f5d1917b2f32a065da2b12be1 ("gpio: pca953x: fix vendor prefix for PCA9654") which is in gpio/for-next already. I cherry-picked this commit and SATA still works.

Quoted 22 lines
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +5 -0
index a298df74ca6c03..ab4763f09dc7fd 100644
@@ -338,6 +338,11 @@
 &i2c4 {
 	status = "okay";
 
+	pca9654: gpio@20 {
+		compatible = "onnn,pca9654";
+		reg = <0x20>;
+	};
+
 	csa_vdd: adc@7c {
 		compatible = "maxim,max9611";
 		reg = <0x7c>;
Signature · 1 line
2.11.0
#2 lore raw
Quoted 8 lines · Wolfram Sang
Quoted 4 lines

We need to configure its GPIOs later.

---

Forgot to say, this depends on 8a64e557f399090f5d1917b2f32a065da2b12be1 ("gpio: pca953x: fix vendor prefix for PCA9654") which is in gpio/for-next already. I cherry-picked this commit and SATA still works.

It's in Linus' (Torvalds!) tree for quite some time already. :-)

MBR, Sergei

#3 lore raw
Quoted 6 lines
Quoted 4 lines

Forgot to say, this depends on 8a64e557f399090f5d1917b2f32a065da2b12be1 ("gpio: pca953x: fix vendor prefix for PCA9654") which is in gpio/for-next already. I cherry-picked this commit and SATA still works.

It's in Linus' (Torvalds!) tree for quite some time already. :-)

Well, it was not in renesas-drivers/sh-pfc-for-v4.16 which I used as a base for the SATA work which again is based on v4.15-rc1. But nice that it is upstream already, thanks for the heads up.

#4 lore raw
Quoted 10 lines · Wolfram Sang
Quoted 6 lines
Quoted 4 lines

Forgot to say, this depends on 8a64e557f399090f5d1917b2f32a065da2b12be1 ("gpio: pca953x: fix vendor prefix for PCA9654") which is in gpio/for-next already. I cherry-picked this commit and SATA still works.

It's in Linus' (Torvalds!) tree for quite some time already. :-)

Well, it was not in renesas-drivers/sh-pfc-for-v4.16 which I used as a base for the SATA work which again is based on v4.15-rc1. But nice that it is upstream already, thanks for the heads up.

My tree is also based on v4.15-rc1, for now. Is it safe to apply this patch without the dependency?

#5 lore raw
Quoted 7 lines
Quoted 4 lines

Well, it was not in renesas-drivers/sh-pfc-for-v4.16 which I used as a base for the SATA work which again is based on v4.15-rc1. But nice that it is upstream already, thanks for the heads up.

My tree is also based on v4.15-rc1, for now. Is it safe to apply this patch without the dependency?

Yes, the driver will simply not bind (which is no regression, because this is a new node).

#6 lore raw
Quoted 10 lines · Wolfram Sang
Quoted 7 lines
Quoted 4 lines

Well, it was not in renesas-drivers/sh-pfc-for-v4.16 which I used as a base for the SATA work which again is based on v4.15-rc1. But nice that it is upstream already, thanks for the heads up.

My tree is also based on v4.15-rc1, for now. Is it safe to apply this patch without the dependency?

Yes, the driver will simply not bind (which is no regression, because this is a new node).

Thanks, understood.

I now see there is a v3. I'll let it sit for a little longer to see if Geert wishes to review it.