Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460943 > unrolled thread

[PATCH 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder

Started byVignesh R <vigneshr@ti.com>
First post2016-08-12 07:00 +0200
Last post2016-08-12 21:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder Vignesh R <vigneshr@ti.com> - 2016-08-12 07:00 +0200
    Re: [PATCH 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder Rob Herring <robh@kernel.org> - 2016-08-12 21:10 +0200

#1460943 — [PATCH 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder

FromVignesh R <vigneshr@ti.com>
Date2016-08-12 07:00 +0200
Subject[PATCH 2/2] ARM: dts: am335x-icev2: Add nodes for gpio-decoder
Message-ID<s5cJz-5sg-1@gated-at.bofh.it>
AM335x ICE board has a rotary-switch connected to PCA9536 I2C GPIO
expander. The position of the rotary-switch is reflected by status of
GPIO lines. Add gpio-decoder node to read these GPIO line status via
gpio-decoder driver and report it as an input event to the system.

Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 arch/arm/boot/dts/am335x-icev2.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index 7d8b8fefdf08..f2de594343f2 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -139,6 +139,15 @@
 			default-state = "off";
 		};
 	};
+	gpio-decoder0 {
+		compatible = "gpio-decoder";
+		gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
+			<&pca9536 2 GPIO_ACTIVE_HIGH>,
+			<&pca9536 1 GPIO_ACTIVE_HIGH>,
+			<&pca9536 0 GPIO_ACTIVE_HIGH>;
+		linux,axis = <0>; /* ABS_X */
+		gpio-decoder,max-value = <9>;
+	};
 };
 
 &am33xx_pinmux {
-- 
2.9.2

[toc] | [next] | [standalone]


#1461424

FromRob Herring <robh@kernel.org>
Date2016-08-12 21:10 +0200
Message-ID<s5q09-5KN-29@gated-at.bofh.it>
In reply to#1460943
On Fri, Aug 12, 2016 at 10:22:29AM +0530, Vignesh R wrote:
> AM335x ICE board has a rotary-switch connected to PCA9536 I2C GPIO
> expander. The position of the rotary-switch is reflected by status of
> GPIO lines. Add gpio-decoder node to read these GPIO line status via
> gpio-decoder driver and report it as an input event to the system.
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
>  arch/arm/boot/dts/am335x-icev2.dts | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
> index 7d8b8fefdf08..f2de594343f2 100644
> --- a/arch/arm/boot/dts/am335x-icev2.dts
> +++ b/arch/arm/boot/dts/am335x-icev2.dts
> @@ -139,6 +139,15 @@
>  			default-state = "off";
>  		};
>  	};
> +	gpio-decoder0 {

Drop the 0 here.

> +		compatible = "gpio-decoder";
> +		gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
> +			<&pca9536 2 GPIO_ACTIVE_HIGH>,
> +			<&pca9536 1 GPIO_ACTIVE_HIGH>,
> +			<&pca9536 0 GPIO_ACTIVE_HIGH>;
> +		linux,axis = <0>; /* ABS_X */
> +		gpio-decoder,max-value = <9>;
> +	};
>  };
>  
>  &am33xx_pinmux {
> -- 
> 2.9.2
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web