Skip to contentSkip to conversation

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

PATCH Applied Wolfram Sang 4 participants 5 messages Dec 22, 2017 – Jan 4, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

We need to configure its GPIOs later.

---

Changes since V2:
* added two more required properties (Thanks Geert!)

And no dependency anymore (my statement for V2 was wrong).

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

Hi Wolfram,

Quoted 18 lines · Wolfram Sang

We need to configure its GPIOs later.

---

Changes since V2:
* added two more required properties (Thanks Geert!)

And no dependency anymore (my statement for V2 was wrong).

 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +0 -0
index a298df74ca6c03..7d43ec24cf9fd0 100644

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

Quoted 8 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +5 -0
@@ -338,6 +338,13 @@
 &i2c4 {
        status = "okay";
 
+       pca9654: gpio@20 {
+               compatible = "onnn,pca9654";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;

interrupts?

You can test them using CP16/17 and gpio-keys.

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

Quoted 5 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +2 -0
+       };
+
        csa_vdd: adc@7c {
                compatible = "maxim,max9611";
                reg = <0x7c>;

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

#2 lore raw
Quoted 10 lines

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

Quoted 6 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +5 -0
+       pca9654: gpio@20 {
+               compatible = "onnn,pca9654";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;

interrupts?

You can test them using CP16/17 and gpio-keys.

Too low priority. We can add it when needed.

#3 lore raw
Quoted 7 lines · Wolfram Sang
Quoted 7 lines
Quoted 6 lines
arch/arm64/boot/dts/renesas/salvator-common.dtsi +5 -0
+       pca9654: gpio@20 {
+               compatible = "onnn,pca9654";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;
Quoted 5 lines
Quoted 3 lines

interrupts?

You can test them using CP16/17 and gpio-keys.

Too low priority. We can add it when needed.

Or when we are bored somewhen ;)