aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVignesh Raghavendra2020-10-07 12:47:39 -0500
committerVignesh Raghavendra2020-10-07 12:59:54 -0500
commit51076999ff45d577d5f608d232a38877fcf0cf2e (patch)
tree2d23c16772a5f29a8657593460e577c719a9c67f
parent1d62c1cac50555612f27f5bd195fb0a0bb5c6591 (diff)
downloadti-upstream-tools-51076999ff45d577d5f608d232a38877fcf0cf2e.tar.gz
ti-upstream-tools-51076999ff45d577d5f608d232a38877fcf0cf2e.tar.xz
ti-upstream-tools-51076999ff45d577d5f608d232a38877fcf0cf2e.zip
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.dtso20
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 @@
8/dts-v1/; 8/dts-v1/;
9/plugin/; 9/plugin/;
10 10
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
14 fragment@101 {
15 target-path = "/";
16
17 __overlay__ {
18 gpio-decoder {
19 compatible = "gpio-decoder";
20 gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
21 <&pca9536 2 GPIO_ACTIVE_HIGH>,
22 <&pca9536 1 GPIO_ACTIVE_HIGH>,
23 <&pca9536 0 GPIO_ACTIVE_HIGH>;
24 linux,axis = <0>; /* ABS_X */
25 decoder-max-value = <9>;
26 };
27 };
28 };
29};
30
11&main_i2c0 { 31&main_i2c0 {
12 status = "okay"; 32 status = "okay";
13 clock-frequency = <400000>; 33 clock-frequency = <400000>;