All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander
@ 2019-02-12 14:20 Geert Uytterhoeven
  2019-02-12 16:33 ` Simon Horman
  2019-02-13 10:11 ` Niklas Söderlund
  0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2019-02-12 14:20 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: Wolfram Sang, linux-renesas-soc, Geert Uytterhoeven

Describe the ON Semiconductor PCA9654 I/O expander on the first I2C
bus, which provides 8 extra GPIOs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
GPIOs 5-7 are accessible on test points CP16, CP17, and CP72.

Output tested with a multi-meter using /sys/class/gpio/.
Input and interrupt capability tested using gpio-keys.
---
 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
index 5ac159b7830d58c1..b5c0dbf4982febd0 100644
--- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
@@ -337,6 +337,15 @@
 &i2c0 {
 	status = "okay";
 
+	io_expander: gpio@20 {
+		compatible = "onnn,pca9654";
+		reg = <0x20>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-parent = <&gpio2>;
+		interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
+	};
+
 	hdmi-encoder@39 {
 		compatible = "adi,adv7511w";
 		reg = <0x39>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander
  2019-02-12 14:20 [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander Geert Uytterhoeven
@ 2019-02-12 16:33 ` Simon Horman
  2019-02-13 10:11 ` Niklas Söderlund
  1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2019-02-12 16:33 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, Wolfram Sang, linux-renesas-soc

On Tue, Feb 12, 2019 at 03:20:00PM +0100, Geert Uytterhoeven wrote:
> Describe the ON Semiconductor PCA9654 I/O expander on the first I2C
> bus, which provides 8 extra GPIOs.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks,

This looks fine to me but I will wait to see if there are other reviews
before applying.

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

> ---
> GPIOs 5-7 are accessible on test points CP16, CP17, and CP72.
> 
> Output tested with a multi-meter using /sys/class/gpio/.
> Input and interrupt capability tested using gpio-keys.
> ---
>  arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> index 5ac159b7830d58c1..b5c0dbf4982febd0 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> @@ -337,6 +337,15 @@
>  &i2c0 {
>  	status = "okay";
>  
> +	io_expander: gpio@20 {
> +		compatible = "onnn,pca9654";
> +		reg = <0x20>;
> +		gpio-controller;
> +		#gpio-cells = <2>;
> +		interrupt-parent = <&gpio2>;
> +		interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
> +	};
> +
>  	hdmi-encoder@39 {
>  		compatible = "adi,adv7511w";
>  		reg = <0x39>;
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander
  2019-02-12 14:20 [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander Geert Uytterhoeven
  2019-02-12 16:33 ` Simon Horman
@ 2019-02-13 10:11 ` Niklas Söderlund
  2019-02-14 12:54   ` Simon Horman
  1 sibling, 1 reply; 4+ messages in thread
From: Niklas Söderlund @ 2019-02-13 10:11 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Simon Horman, Magnus Damm, Wolfram Sang, linux-renesas-soc

Hi Geert,

Thanks for your patch.

On 2019-02-12 15:20:00 +0100, Geert Uytterhoeven wrote:
> Describe the ON Semiconductor PCA9654 I/O expander on the first I2C
> bus, which provides 8 extra GPIOs.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

> ---
> GPIOs 5-7 are accessible on test points CP16, CP17, and CP72.
> 
> Output tested with a multi-meter using /sys/class/gpio/.
> Input and interrupt capability tested using gpio-keys.
> ---
>  arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> index 5ac159b7830d58c1..b5c0dbf4982febd0 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
> @@ -337,6 +337,15 @@
>  &i2c0 {
>  	status = "okay";
>  
> +	io_expander: gpio@20 {
> +		compatible = "onnn,pca9654";
> +		reg = <0x20>;
> +		gpio-controller;
> +		#gpio-cells = <2>;
> +		interrupt-parent = <&gpio2>;
> +		interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
> +	};
> +
>  	hdmi-encoder@39 {
>  		compatible = "adi,adv7511w";
>  		reg = <0x39>;
> -- 
> 2.17.1
> 

-- 
Regards,
Niklas Söderlund

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander
  2019-02-13 10:11 ` Niklas Söderlund
@ 2019-02-14 12:54   ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2019-02-14 12:54 UTC (permalink / raw)
  To: Niklas Söderlund
  Cc: Geert Uytterhoeven, Magnus Damm, Wolfram Sang, linux-renesas-soc

On Wed, Feb 13, 2019 at 11:11:26AM +0100, Niklas Söderlund wrote:
> Hi Geert,
> 
> Thanks for your patch.
> 
> On 2019-02-12 15:20:00 +0100, Geert Uytterhoeven wrote:
> > Describe the ON Semiconductor PCA9654 I/O expander on the first I2C
> > bus, which provides 8 extra GPIOs.
> > 
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

Thanks, applied for v5.2.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-14 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 14:20 [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add GPIO expander Geert Uytterhoeven
2019-02-12 16:33 ` Simon Horman
2019-02-13 10:11 ` Niklas Söderlund
2019-02-14 12:54   ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.