Skip to contentSkip to conversation

arch: arm64: dts: Set gpio5-pin9 as input by default

PATCH In review Meng Li 2 participants 2 messages Oct 19, 2021

Subsystems (2)
lore
Share & tools
lore

Meng Li

author
#0 lore raw

PATCH 1/1 arch: arm64: dts: Set gpio5-pin9 as input by default

The gpio5-pin9 is used as the interrupt pin of i2c external gpio chip, so set this pin as input by default.

---
 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +9 -0
index 202177706cde..8986a7e6e099 100644
@@ -205,6 +205,15 @@
 	};
 };
 
+&gpio5 {
+	gpio_exp_77_int {
+		gpio-hog;
+		gpios = <9 0>;
+		input;
+		line-name = "gpio-exp-77-int";
+	};
+};
+
 &i2c4 {
 	i2cswitch4: i2c-switch@71 {
 		compatible = "nxp,pca9548";
Signature · 1 line
2.17.1
#1 lore raw

Quoting Meng Li (2021-10-19 10:00:20)

Quoted 2 lines

The gpio5-pin9 is used as the interrupt pin of i2c external gpio chip, so set this pin as input by default.

Is a GPIO hog the right way to do this?
Shouldn't the other GPIO chip be modelled in DT and reference the gpio interrupt line from there in its interrupt property?

I assume by 'external gpio chip' you mean one which is permanantly attached to the ULCB Kingfisher board, and not a custom addition?

--
Regards
Kieran

Quoted 29 lines
---
 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +9 -0
index 202177706cde..8986a7e6e099 100644
@@ -205,6 +205,15 @@
        };
 };
 
+&gpio5 {
+       gpio_exp_77_int {
+               gpio-hog;
+               gpios = <9 0>;
+               input;
+               line-name = "gpio-exp-77-int";
+       };
+};
+
 &i2c4 {
        i2cswitch4: i2c-switch@71 {
                compatible = "nxp,pca9548";
Signature · 1 line
2.17.1