OSDN Git Service

ARM: dts: am3517-evm: Add I/O expander for User DIP switches and LEDS
authorAdam Ford <aford173@gmail.com>
Sun, 6 May 2018 13:00:48 +0000 (08:00 -0500)
committerTony Lindgren <tony@atomide.com>
Fri, 18 May 2018 21:07:32 +0000 (14:07 -0700)
There is a tca6416 GPIO expander on i2c2. This patch enables the
GPIO expander which has several LED's and some connected DIP
switches

Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am3517-evm.dts

index f9ebefa..e5cc930 100644 (file)
 
 &i2c2 {
        clock-frequency = <400000>;
+       /* User DIP swithes [1:8] / User LEDS [1:2] */
+       tca6416: gpio@21 {
+               compatible = "ti,tca6416";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
 };
 
 &i2c3 {