Skip to contentSkip to conversation

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

PATCH Superseded Wolfram Sang 4 participants 8 messages Dec 21, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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..1f52be050e2b13 100644
@@ -338,6 +338,11 @@
 &i2c4 {
 	status = "okay";
 
+	pca9654: gpio@20 {
+		compatible = "onsemi,pca9654";
+		reg = <0x20>;
+	};
+
 	csa_vdd: adc@7c {
 		compatible = "maxim,max9611";
 		reg = <0x7c>;
Signature · 1 line
2.11.0
#1 lore raw
Quoted 13 lines · Wolfram Sang

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 +0 -0
index a298df74ca6c03..1f52be050e2b13 100644

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 342

Quoted 5 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +2 -0
@@ -338,6 +338,11 @@
  &i2c4 {
  	status = "okay";
 
+	pca9654: gpio@20 {
+		compatible = "onsemi,pca9654";

The registered vendor prefix is "onnn", not "onsemi". The GPIO driver no
longer recognizes "onsemi,pca9654", I've fixed it.

[...]

MBR, Sergei

#2 lore raw
Quoted 6 lines

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 342

Quoted 3 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +2 -0
+	pca9654: gpio@20 {
+		compatible = "onsemi,pca9654";

The registered vendor prefix is "onnn", not "onsemi". The GPIO driver no
longer recognizes "onsemi,pca9654", I've fixed it.

Now, that's a cool vendor prefix. I'll definately use that! Onnn...

#3 lore raw
In reply to Wolfram Sang

Hi Wolfram,

Quoted 1 line · Wolfram Sang

We need to configure its GPIOs later.

Thanks for your patch!

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 343

Quoted 9 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +3 -0
@@ -338,6 +338,11 @@
 &i2c4 {
        status = "okay";
 
+       pca9654: gpio@20 {
+               compatible = "onsemi,pca9654";
+               reg = <0x20>;

Missing gpio-controller, #gpio-cells, and interrupts properties?

Seems like Documentation/devicetree/bindings/gpio/gpio-pca953x.txt can use some updates...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw
Quoted 2 lines

Missing gpio-controller, #gpio-cells,

I can fix that...

Quoted 1 line

and interrupts properties?

... but this is not tested!

Quoted 2 lines

Seems like Documentation/devicetree/bindings/gpio/gpio-pca953x.txt can use some updates...

Heh, I was relying on that. I can fix it, too.

#5 lore raw

Hi Wolfram,

Quoted 7 lines · Wolfram Sang
Quoted 1 line

Missing gpio-controller, #gpio-cells,

I can fix that...

Quoted 1 line

and interrupts properties?

... but this is not tested!

It's hardware description ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw
In reply to Geert Uytterhoeven

Hello!

Quoted 10 lines · Geert Uytterhoeven
Quoted 1 line

We need to configure its GPIOs later.

Thanks for your patch!

Quoted 6 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +0 -0
@@ -338,6 +338,11 @@
  &i2c4 {
         status = "okay";
 
Quoted 5 lines

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 343

Quoted 3 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +3 -0
+       pca9654: gpio@20 {
+               compatible = "onsemi,pca9654";
+               reg = <0x20>;

Missing gpio-controller, #gpio-cells, and interrupts properties?

Indeed.

Quoted 2 lines

Seems like Documentation/devicetree/bindings/gpio/gpio-pca953x.txt can use some updates...

What do you mean? I've surely updated it in my vendor prefix fix:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8a64e557f399090f5d1917b2f32a065da2b12be1

Quoted 3 lines

Gr{oetje,eeting}s,

Geert

MBR, Sergei

#7 lore raw

Hi Sergei,

Quoted 14 lines · Sergei Shtylyov
Quoted 6 lines · Geert Uytterhoeven
Quoted 6 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +0 -0
@@ -338,6 +338,11 @@
  &i2c4 {
         status = "okay";
 
Quoted 6 lines

arch/arm64/boot/dts/renesas/salvator-common.dtsi line 343

Quoted 3 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +3 -0
+       pca9654: gpio@20 {
+               compatible = "onsemi,pca9654";
+               reg = <0x20>;

Missing gpio-controller, #gpio-cells, and interrupts properties?

Quoted 8 lines

Indeed.

Quoted 2 lines

Seems like Documentation/devicetree/bindings/gpio/gpio-pca953x.txt can use some updates...

What do you mean? I've surely updated it in my vendor prefix fix:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8a64e557f399090f5d1917b2f32a065da2b12be1

I mean the missing properties are also not documented in the bindings, or omitted in the example.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds