From: Grygorii Strashko Date: Mon, 10 Feb 2014 16:41:18 +0000 (+0200) Subject: ARM: dts: keystone: add gpio device entry X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=970c225636ac4ae98739094d6b6bbf2bdc3694f9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ARM: dts: keystone: add gpio device entry This patch adds Keystone GPIO IP device definitions in DT which supports up to 32 GPIO lines and each GPIO line can be configured as separate interrupt source (so called "unbanked" IRQ). For more information see: http://www.ti.com/lit/ug/sprugv1/sprugv1.pdf Signed-off-by: Grygorii Strashko Signed-off-by: Santosh Shilimkar --- diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi index d9303e831e8c..4eceb464ff0b 100644 --- a/arch/arm/boot/dts/keystone.dtsi +++ b/arch/arm/boot/dts/keystone.dtsi @@ -7,6 +7,7 @@ */ #include +#include #include "skeleton.dtsi" @@ -221,5 +222,49 @@ interrupts = ; clocks = <&clktimer15>; }; + + gpio0: gpio@260bf00 { + compatible = "ti,keystone-gpio"; + reg = <0x0260bf00 0x100>; + gpio-controller; + #gpio-cells = <2>; + /* HW Interrupts mapped to GPIO pins */ + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&clkgpio>; + clock-names = "gpio"; + ti,ngpio = <32>; + ti,davinci-gpio-unbanked = <32>; + }; }; };