diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-05-04 02:32:35 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-12 01:32:19 -0400 |
commit | ce4c6f9b5987ac9402788c518bc5bd8b8572aa1e (patch) | |
tree | b065be1ed1491eccc226ae9b0e000cfb203331ee /arch/arm/boot/dts/imx28.dtsi | |
parent | 4052d45e800ce33e1993fb70604941547ed73d26 (diff) |
ARM: mxs: add gpio support for device tree boot
It adds gpio support for device tree boot.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx28.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx28.dtsi | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index a17fbfcb2f83..1abd9b37691c 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b/arch/arm/boot/dts/imx28.dtsi | |||
@@ -14,6 +14,14 @@ | |||
14 | / { | 14 | / { |
15 | interrupt-parent = <&icoll>; | 15 | interrupt-parent = <&icoll>; |
16 | 16 | ||
17 | aliases { | ||
18 | gpio0 = &gpio0; | ||
19 | gpio1 = &gpio1; | ||
20 | gpio2 = &gpio2; | ||
21 | gpio3 = &gpio3; | ||
22 | gpio4 = &gpio4; | ||
23 | }; | ||
24 | |||
17 | cpus { | 25 | cpus { |
18 | cpu@0 { | 26 | cpu@0 { |
19 | compatible = "arm,arm926ejs"; | 27 | compatible = "arm,arm926ejs"; |
@@ -97,9 +105,54 @@ | |||
97 | pinctrl@80018000 { | 105 | pinctrl@80018000 { |
98 | #address-cells = <1>; | 106 | #address-cells = <1>; |
99 | #size-cells = <0>; | 107 | #size-cells = <0>; |
100 | compatible = "fsl,imx28-pinctrl"; | 108 | compatible = "fsl,imx28-pinctrl", "simple-bus"; |
101 | reg = <0x80018000 2000>; | 109 | reg = <0x80018000 2000>; |
102 | 110 | ||
111 | gpio0: gpio@0 { | ||
112 | compatible = "fsl,imx28-gpio", "fsl,mxs-gpio"; | ||
113 | interrupts = <127>; | ||
114 | gpio-controller; | ||
115 | #gpio-cells = <2>; | ||
116 | interrupt-controller; | ||
117 | #interrupt-cells = <2>; | ||
118 | }; | ||
119 | |||
120 | gpio1: gpio@1 { | ||
121 | compatible = "fsl,imx28-gpio", "fsl,mxs-gpio"; | ||
122 | interrupts = <126>; | ||
123 | gpio-controller; | ||
124 | #gpio-cells = <2>; | ||
125 | interrupt-controller; | ||
126 | #interrupt-cells = <2>; | ||
127 | }; | ||
128 | |||
129 | gpio2: gpio@2 { | ||
130 | compatible = "fsl,imx28-gpio", "fsl,mxs-gpio"; | ||
131 | interrupts = <125>; | ||
132 | gpio-controller; | ||
133 | #gpio-cells = <2>; | ||
134 | interrupt-controller; | ||
135 | #interrupt-cells = <2>; | ||
136 | }; | ||
137 | |||
138 | gpio3: gpio@3 { | ||
139 | compatible = "fsl,imx28-gpio", "fsl,mxs-gpio"; | ||
140 | interrupts = <124>; | ||
141 | gpio-controller; | ||
142 | #gpio-cells = <2>; | ||
143 | interrupt-controller; | ||
144 | #interrupt-cells = <2>; | ||
145 | }; | ||
146 | |||
147 | gpio4: gpio@4 { | ||
148 | compatible = "fsl,imx28-gpio", "fsl,mxs-gpio"; | ||
149 | interrupts = <123>; | ||
150 | gpio-controller; | ||
151 | #gpio-cells = <2>; | ||
152 | interrupt-controller; | ||
153 | #interrupt-cells = <2>; | ||
154 | }; | ||
155 | |||
103 | duart_pins_a: duart@0 { | 156 | duart_pins_a: duart@0 { |
104 | reg = <0>; | 157 | reg = <0>; |
105 | fsl,pinmux-ids = <0x3102 0x3112>; | 158 | fsl,pinmux-ids = <0x3102 0x3112>; |