ARM: dts: dra7-evm: add pcf8575 gpio expander (i2c1 addr 20)
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 27 Aug 2015 15:20:45 +0000 (18:20 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 12 Oct 2015 22:00:37 +0000 (15:00 -0700)
This patch adds DT definition for CF8575 GPIO pcf_lcd: gpio@20
expander which is connected to i2c bus 1 and has slave address 0x20.
It allows to control:
- tc_lcd gpios, pins p0-p3
- user leds, pins p4-p7
- control LCD panel power, p15

PCF8575 GPIO pcf_lcd: gpio@20 expander supports interrupt controller
functionality and its INT line is connected to dra7 GPIO6.11 pin.

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra7-evm.dts

index 1a66d359f3e3fe472fa18ccf33aea21c0b0ce8db..d40418c8d5a3c7b5181c2a170f49739625e84e95 100644 (file)
                };
        };
 
+       pcf_lcd: gpio@20 {
+               compatible = "nxp,pcf8575";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&gpio6>;
+               interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
        pcf_gpio_21: gpio@21 {
                compatible = "ti,pcf8575";
                reg = <0x21>;