diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-10-07 14:34:57 -0500 |
---|---|---|
committer | Dan Murphy <dmurphy@ti.com> | 2020-10-07 14:34:57 -0500 |
commit | 3f36f66594d7905f7b97bc7870931173fd2466bd (patch) | |
tree | 2d23c16772a5f29a8657593460e577c719a9c67f | |
parent | 1d62c1cac50555612f27f5bd195fb0a0bb5c6591 (diff) | |
parent | 51076999ff45d577d5f608d232a38877fcf0cf2e (diff) | |
download | linux-dt-3f36f66594d7905f7b97bc7870931173fd2466bd.tar.gz |
Merge pull request #17 in LCPDPUB/ti-upstream-tools from ~A0132425/ti-upstream-tools:dev to master
* commit '51076999ff45d577d5f608d232a38877fcf0cf2e':
arm64: dts: ti: k3-am654-idk: Add GPIO decoder node
-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>; |