diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2020-10-07 23:17:39 +0530 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2020-10-07 23:29:54 +0530 |
commit | 51076999ff45d577d5f608d232a38877fcf0cf2e (patch) | |
tree | 2d23c16772a5f29a8657593460e577c719a9c67f | |
parent | 1d62c1cac50555612f27f5bd195fb0a0bb5c6591 (diff) | |
download | linux-dt-51076999ff45d577d5f608d232a38877fcf0cf2e.tar.gz |
arm64: dts: ti: k3-am654-idk: Add GPIO decoder node
Add DT nodes to enable rotary switch on AM654 IDK add-on card connected
to gpios of PCA9536 I2C IO expander.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r-- | arch/arm64/boot/dts/ti/k3-am654-idk.dtso | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/ti/k3-am654-idk.dtso b/arch/arm64/boot/dts/ti/k3-am654-idk.dtso index a395da5..35c1f24 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-idk.dtso +++ b/arch/arm64/boot/dts/ti/k3-am654-idk.dtso @@ -8,6 +8,26 @@ /dts-v1/; /plugin/; +#include <dt-bindings/gpio/gpio.h> + +/ { + fragment@101 { + target-path = "/"; + + __overlay__ { + 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>; + }; + }; + }; +}; + &main_i2c0 { status = "okay"; clock-frequency = <400000>; |