diff options
author | Vignesh R <vigneshr@ti.com> | 2016-08-24 09:58:59 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-08-30 20:44:16 +0200 |
commit | 6c6b3c33eb2b7fa2d5b4cc66c8116e9315fdbd9b (patch) | |
tree | dfba4d418ffe135f8084733da102b8f9acc9a510 /arch/arm/boot/dts/am335x-icev2.dts | |
parent | ARM: dts: Add LogicPD DM37/AM37 Torpedo and SOM-LV (diff) | |
download | linux-6c6b3c33eb2b7fa2d5b4cc66c8116e9315fdbd9b.tar.xz linux-6c6b3c33eb2b7fa2d5b4cc66c8116e9315fdbd9b.zip |
ARM: dts: am335x-icev2: Add nodes for gpio-decoder
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-icev2.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-icev2.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts index bc0190e4f10f..426022ee85c7 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-decoder { + 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 */ + decoder-max-value = <9>; + }; }; &am33xx_pinmux { |