From d8e166b4ad0e3626af0378cadb2d7ba41efa005a Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 20 Jan 2017 13:52:20 -0600 Subject: [PATCH] ARM: dts: dra72/1-evm: add pcf8575 used for lcd DRA72 and DRA718 EVM boards has a pcf8575 gpio expander which is used for the LCD/LEDs and USB vbus detection. Add the node for the pcf8575. Signed-off-by: Tomi Valkeinen Signed-off-by: Grygorii Strashko Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/dra71-evm.dts | 5 +++++ arch/arm/boot/dts/dra72-evm-common.dtsi | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts index 2b9a5a8..4d57a55 100644 --- a/arch/arm/boot/dts/dra71-evm.dts +++ b/arch/arm/boot/dts/dra71-evm.dts @@ -138,6 +138,11 @@ }; }; +&pcf_lcd { + interrupt-parent = <&gpio7>; + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; +}; + &pcf_gpio_21 { interrupt-parent = <&gpio7>; interrupts = <31 IRQ_TYPE_EDGE_FALLING>; diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi index b3018b0..ad24544 100644 --- a/arch/arm/boot/dts/dra72-evm-common.dtsi +++ b/arch/arm/boot/dts/dra72-evm-common.dtsi @@ -220,6 +220,15 @@ status = "okay"; clock-frequency = <400000>; + pcf_lcd: gpio@20 { + compatible = "nxp,pcf8575"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + pcf_gpio_21: gpio@21 { compatible = "ti,pcf8575", "nxp,pcf8575"; reg = <0x21>; -- 2.7.4