aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2020-10-07 23:17:39 +0530
committerVignesh Raghavendra <vigneshr@ti.com>2020-10-07 23:29:54 +0530
commit51076999ff45d577d5f608d232a38877fcf0cf2e (patch)
tree2d23c16772a5f29a8657593460e577c719a9c67f
parent1d62c1cac50555612f27f5bd195fb0a0bb5c6591 (diff)
downloadlinux-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.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 @@
/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>;