diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-06-20 09:23:41 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-06-20 09:23:41 -0400 |
commit | dc61cd9ecb918f593972962b97cf6079ab9d1daf (patch) | |
tree | cbe1e1d7fc2e231da2db3969f7004d995514f8ea | |
parent | ed2ca6ee4bfd060c079fd05d0eb8862da02dd248 (diff) | |
parent | d0f2677be5b49a1c1de59fe94faa96b7808be95f (diff) |
Merge tag 'sunxi-dt-for-3.11-2' of git://github.com/mripard/linux into next/dt
From Maxime Ripard:
Allwinner SoCs DT additions for 3.11, part 2
Mostly adds support for the i2c controllers and the Allwinner A10S SoC.
* tag 'sunxi-dt-for-3.11-2' of git://github.com/mripard/linux:
ARM: sunxi: Add Olimex A10s-Olinuxino-micro device tree
ARM: sunxi: dt: Add Allwinner A10s DTSI
ARM: sun4i: cubieboard: Enable the i2c controllers
ARM: sun5i: olinuxino: Enable the i2c controllers
ARM: sun5i: dt: Add i2c muxing options
ARM: sun4i: dt: Add i2c muxing options
ARM: sunxi: dt: Add i2c controller nodes to the DTSI
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 12 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10.dtsi | 48 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 76 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i-a10s.dtsi | 286 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i-a13.dtsi | 48 |
7 files changed, 489 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a778bc013ce8..242a4937fe6f 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -195,6 +195,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \ | |||
195 | sun4i-a10-cubieboard.dtb \ | 195 | sun4i-a10-cubieboard.dtb \ |
196 | sun4i-a10-mini-xplus.dtb \ | 196 | sun4i-a10-mini-xplus.dtb \ |
197 | sun4i-a10-hackberry.dtb \ | 197 | sun4i-a10-hackberry.dtb \ |
198 | sun5i-a10s-olinuxino-micro.dtb \ | ||
198 | sun5i-a13-olinuxino.dtb | 199 | sun5i-a13-olinuxino.dtb |
199 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ | 200 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ |
200 | tegra20-iris-512.dtb \ | 201 | tegra20-iris-512.dtb \ |
diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index b70fe0db6bb7..0e22a285dfe0 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts | |||
@@ -41,6 +41,18 @@ | |||
41 | pinctrl-0 = <&uart0_pins_a>; | 41 | pinctrl-0 = <&uart0_pins_a>; |
42 | status = "okay"; | 42 | status = "okay"; |
43 | }; | 43 | }; |
44 | |||
45 | i2c0: i2c@01c2ac00 { | ||
46 | pinctrl-names = "default"; | ||
47 | pinctrl-0 = <&i2c0_pins_a>; | ||
48 | status = "okay"; | ||
49 | }; | ||
50 | |||
51 | i2c1: i2c@01c2b000 { | ||
52 | pinctrl-names = "default"; | ||
53 | pinctrl-0 = <&i2c1_pins_a>; | ||
54 | status = "okay"; | ||
55 | }; | ||
44 | }; | 56 | }; |
45 | 57 | ||
46 | leds { | 58 | leds { |
diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 9bf5ea51e70f..82e03d22f913 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.dtsi | |||
@@ -205,6 +205,27 @@ | |||
205 | allwinner,drive = <0>; | 205 | allwinner,drive = <0>; |
206 | allwinner,pull = <0>; | 206 | allwinner,pull = <0>; |
207 | }; | 207 | }; |
208 | |||
209 | i2c0_pins_a: i2c0@0 { | ||
210 | allwinner,pins = "PB0", "PB1"; | ||
211 | allwinner,function = "i2c0"; | ||
212 | allwinner,drive = <0>; | ||
213 | allwinner,pull = <0>; | ||
214 | }; | ||
215 | |||
216 | i2c1_pins_a: i2c1@0 { | ||
217 | allwinner,pins = "PB18", "PB19"; | ||
218 | allwinner,function = "i2c1"; | ||
219 | allwinner,drive = <0>; | ||
220 | allwinner,pull = <0>; | ||
221 | }; | ||
222 | |||
223 | i2c2_pins_a: i2c2@0 { | ||
224 | allwinner,pins = "PB20", "PB21"; | ||
225 | allwinner,function = "i2c2"; | ||
226 | allwinner,drive = <0>; | ||
227 | allwinner,pull = <0>; | ||
228 | }; | ||
208 | }; | 229 | }; |
209 | 230 | ||
210 | timer@01c20c00 { | 231 | timer@01c20c00 { |
@@ -298,5 +319,32 @@ | |||
298 | clocks = <&apb1_gates 23>; | 319 | clocks = <&apb1_gates 23>; |
299 | status = "disabled"; | 320 | status = "disabled"; |
300 | }; | 321 | }; |
322 | |||
323 | i2c0: i2c@01c2ac00 { | ||
324 | compatible = "allwinner,sun4i-i2c"; | ||
325 | reg = <0x01c2ac00 0x400>; | ||
326 | interrupts = <7>; | ||
327 | clocks = <&apb1_gates 0>; | ||
328 | clock-frequency = <100000>; | ||
329 | status = "disabled"; | ||
330 | }; | ||
331 | |||
332 | i2c1: i2c@01c2b000 { | ||
333 | compatible = "allwinner,sun4i-i2c"; | ||
334 | reg = <0x01c2b000 0x400>; | ||
335 | interrupts = <8>; | ||
336 | clocks = <&apb1_gates 1>; | ||
337 | clock-frequency = <100000>; | ||
338 | status = "disabled"; | ||
339 | }; | ||
340 | |||
341 | i2c2: i2c@01c2b400 { | ||
342 | compatible = "allwinner,sun4i-i2c"; | ||
343 | reg = <0x01c2b400 0x400>; | ||
344 | interrupts = <9>; | ||
345 | clocks = <&apb1_gates 2>; | ||
346 | clock-frequency = <100000>; | ||
347 | status = "disabled"; | ||
348 | }; | ||
301 | }; | 349 | }; |
302 | }; | 350 | }; |
diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts new file mode 100644 index 000000000000..64dc0c42c43a --- /dev/null +++ b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | |||
@@ -0,0 +1,76 @@ | |||
1 | /* | ||
2 | * Copyright 2013 Maxime Ripard | ||
3 | * | ||
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | ||
5 | * | ||
6 | * The code contained herein is licensed under the GNU General Public | ||
7 | * License. You may obtain a copy of the GNU General Public License | ||
8 | * Version 2 or later at the following locations: | ||
9 | * | ||
10 | * http://www.opensource.org/licenses/gpl-license.html | ||
11 | * http://www.gnu.org/copyleft/gpl.html | ||
12 | */ | ||
13 | |||
14 | /dts-v1/; | ||
15 | /include/ "sun5i-a10s.dtsi" | ||
16 | |||
17 | / { | ||
18 | model = "Olimex A10s-Olinuxino Micro"; | ||
19 | compatible = "olimex,a10s-olinuxino-micro", "allwinner,sun5i-a10s"; | ||
20 | |||
21 | soc@01c20000 { | ||
22 | emac: ethernet@01c0b000 { | ||
23 | pinctrl-names = "default"; | ||
24 | pinctrl-0 = <&emac_pins_a>; | ||
25 | phy = <&phy1>; | ||
26 | status = "okay"; | ||
27 | }; | ||
28 | |||
29 | mdio@01c0b080 { | ||
30 | status = "okay"; | ||
31 | |||
32 | phy1: ethernet-phy@1 { | ||
33 | reg = <1>; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | pinctrl@01c20800 { | ||
38 | led_pins_olinuxino: led_pins@0 { | ||
39 | allwinner,pins = "PE3"; | ||
40 | allwinner,function = "gpio_out"; | ||
41 | allwinner,drive = <1>; | ||
42 | allwinner,pull = <0>; | ||
43 | }; | ||
44 | }; | ||
45 | |||
46 | uart0: serial@01c28000 { | ||
47 | pinctrl-names = "default"; | ||
48 | pinctrl-0 = <&uart0_pins_a>; | ||
49 | status = "okay"; | ||
50 | }; | ||
51 | |||
52 | uart2: serial@01c28800 { | ||
53 | pinctrl-names = "default"; | ||
54 | pinctrl-0 = <&uart2_pins_a>; | ||
55 | status = "okay"; | ||
56 | }; | ||
57 | |||
58 | uart3: serial@01c28c00 { | ||
59 | pinctrl-names = "default"; | ||
60 | pinctrl-0 = <&uart3_pins_a>; | ||
61 | status = "okay"; | ||
62 | }; | ||
63 | }; | ||
64 | |||
65 | leds { | ||
66 | compatible = "gpio-leds"; | ||
67 | pinctrl-names = "default"; | ||
68 | pinctrl-0 = <&led_pins_olinuxino>; | ||
69 | |||
70 | green { | ||
71 | label = "a10s-olinuxino-micro:green:usr"; | ||
72 | gpios = <&pio 4 3 0>; | ||
73 | default-state = "on"; | ||
74 | }; | ||
75 | }; | ||
76 | }; | ||
diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi new file mode 100644 index 000000000000..2307ce827ae0 --- /dev/null +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi | |||
@@ -0,0 +1,286 @@ | |||
1 | /* | ||
2 | * Copyright 2013 Maxime Ripard | ||
3 | * | ||
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | ||
5 | * | ||
6 | * The code contained herein is licensed under the GNU General Public | ||
7 | * License. You may obtain a copy of the GNU General Public License | ||
8 | * Version 2 or later at the following locations: | ||
9 | * | ||
10 | * http://www.opensource.org/licenses/gpl-license.html | ||
11 | * http://www.gnu.org/copyleft/gpl.html | ||
12 | */ | ||
13 | |||
14 | /include/ "skeleton.dtsi" | ||
15 | |||
16 | / { | ||
17 | interrupt-parent = <&intc>; | ||
18 | |||
19 | cpus { | ||
20 | cpu@0 { | ||
21 | compatible = "arm,cortex-a8"; | ||
22 | }; | ||
23 | }; | ||
24 | |||
25 | memory { | ||
26 | reg = <0x40000000 0x20000000>; | ||
27 | }; | ||
28 | |||
29 | clocks { | ||
30 | #address-cells = <1>; | ||
31 | #size-cells = <1>; | ||
32 | ranges; | ||
33 | |||
34 | /* | ||
35 | * This is a dummy clock, to be used as placeholder on | ||
36 | * other mux clocks when a specific parent clock is not | ||
37 | * yet implemented. It should be dropped when the driver | ||
38 | * is complete. | ||
39 | */ | ||
40 | dummy: dummy { | ||
41 | #clock-cells = <0>; | ||
42 | compatible = "fixed-clock"; | ||
43 | clock-frequency = <0>; | ||
44 | }; | ||
45 | |||
46 | osc24M: osc24M@01c20050 { | ||
47 | #clock-cells = <0>; | ||
48 | compatible = "allwinner,sun4i-osc-clk"; | ||
49 | reg = <0x01c20050 0x4>; | ||
50 | clock-frequency = <24000000>; | ||
51 | }; | ||
52 | |||
53 | osc32k: osc32k { | ||
54 | #clock-cells = <0>; | ||
55 | compatible = "fixed-clock"; | ||
56 | clock-frequency = <32768>; | ||
57 | }; | ||
58 | |||
59 | pll1: pll1@01c20000 { | ||
60 | #clock-cells = <0>; | ||
61 | compatible = "allwinner,sun4i-pll1-clk"; | ||
62 | reg = <0x01c20000 0x4>; | ||
63 | clocks = <&osc24M>; | ||
64 | }; | ||
65 | |||
66 | /* dummy is 200M */ | ||
67 | cpu: cpu@01c20054 { | ||
68 | #clock-cells = <0>; | ||
69 | compatible = "allwinner,sun4i-cpu-clk"; | ||
70 | reg = <0x01c20054 0x4>; | ||
71 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; | ||
72 | }; | ||
73 | |||
74 | axi: axi@01c20054 { | ||
75 | #clock-cells = <0>; | ||
76 | compatible = "allwinner,sun4i-axi-clk"; | ||
77 | reg = <0x01c20054 0x4>; | ||
78 | clocks = <&cpu>; | ||
79 | }; | ||
80 | |||
81 | axi_gates: axi_gates@01c2005c { | ||
82 | #clock-cells = <1>; | ||
83 | compatible = "allwinner,sun4i-axi-gates-clk"; | ||
84 | reg = <0x01c2005c 0x4>; | ||
85 | clocks = <&axi>; | ||
86 | clock-output-names = "axi_dram"; | ||
87 | }; | ||
88 | |||
89 | ahb: ahb@01c20054 { | ||
90 | #clock-cells = <0>; | ||
91 | compatible = "allwinner,sun4i-ahb-clk"; | ||
92 | reg = <0x01c20054 0x4>; | ||
93 | clocks = <&axi>; | ||
94 | }; | ||
95 | |||
96 | ahb_gates: ahb_gates@01c20060 { | ||
97 | #clock-cells = <1>; | ||
98 | compatible = "allwinner,sun4i-ahb-gates-clk"; | ||
99 | reg = <0x01c20060 0x8>; | ||
100 | clocks = <&ahb>; | ||
101 | clock-output-names = "ahb_usb0", "ahb_ehci0", | ||
102 | "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss", | ||
103 | "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1", | ||
104 | "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand", | ||
105 | "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts", | ||
106 | "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3", | ||
107 | "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve", | ||
108 | "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0", | ||
109 | "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi", | ||
110 | "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0", | ||
111 | "ahb_de_fe1", "ahb_mp", "ahb_mali400"; | ||
112 | }; | ||
113 | |||
114 | apb0: apb0@01c20054 { | ||
115 | #clock-cells = <0>; | ||
116 | compatible = "allwinner,sun4i-apb0-clk"; | ||
117 | reg = <0x01c20054 0x4>; | ||
118 | clocks = <&ahb>; | ||
119 | }; | ||
120 | |||
121 | apb0_gates: apb0_gates@01c20068 { | ||
122 | #clock-cells = <1>; | ||
123 | compatible = "allwinner,sun4i-apb0-gates-clk"; | ||
124 | reg = <0x01c20068 0x4>; | ||
125 | clocks = <&apb0>; | ||
126 | clock-output-names = "apb0_codec", "apb0_spdif", | ||
127 | "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0", | ||
128 | "apb0_ir1", "apb0_keypad"; | ||
129 | }; | ||
130 | |||
131 | /* dummy is pll62 */ | ||
132 | apb1_mux: apb1_mux@01c20058 { | ||
133 | #clock-cells = <0>; | ||
134 | compatible = "allwinner,sun4i-apb1-mux-clk"; | ||
135 | reg = <0x01c20058 0x4>; | ||
136 | clocks = <&osc24M>, <&dummy>, <&osc32k>; | ||
137 | }; | ||
138 | |||
139 | apb1: apb1@01c20058 { | ||
140 | #clock-cells = <0>; | ||
141 | compatible = "allwinner,sun4i-apb1-clk"; | ||
142 | reg = <0x01c20058 0x4>; | ||
143 | clocks = <&apb1_mux>; | ||
144 | }; | ||
145 | |||
146 | apb1_gates: apb1_gates@01c2006c { | ||
147 | #clock-cells = <1>; | ||
148 | compatible = "allwinner,sun4i-apb1-gates-clk"; | ||
149 | reg = <0x01c2006c 0x4>; | ||
150 | clocks = <&apb1>; | ||
151 | clock-output-names = "apb1_i2c0", "apb1_i2c1", | ||
152 | "apb1_i2c2", "apb1_can", "apb1_scr", | ||
153 | "apb1_ps20", "apb1_ps21", "apb1_uart0", | ||
154 | "apb1_uart1", "apb1_uart2", "apb1_uart3", | ||
155 | "apb1_uart4", "apb1_uart5", "apb1_uart6", | ||
156 | "apb1_uart7"; | ||
157 | }; | ||
158 | }; | ||
159 | |||
160 | soc@01c20000 { | ||
161 | compatible = "simple-bus"; | ||
162 | #address-cells = <1>; | ||
163 | #size-cells = <1>; | ||
164 | reg = <0x01c20000 0x300000>; | ||
165 | ranges; | ||
166 | |||
167 | emac: ethernet@01c0b000 { | ||
168 | compatible = "allwinner,sun4i-emac"; | ||
169 | reg = <0x01c0b000 0x1000>; | ||
170 | interrupts = <55>; | ||
171 | clocks = <&ahb_gates 17>; | ||
172 | status = "disabled"; | ||
173 | }; | ||
174 | |||
175 | mdio@01c0b080 { | ||
176 | compatible = "allwinner,sun4i-mdio"; | ||
177 | reg = <0x01c0b080 0x14>; | ||
178 | status = "disabled"; | ||
179 | #address-cells = <1>; | ||
180 | #size-cells = <0>; | ||
181 | }; | ||
182 | |||
183 | intc: interrupt-controller@01c20400 { | ||
184 | compatible = "allwinner,sun4i-ic"; | ||
185 | reg = <0x01c20400 0x400>; | ||
186 | interrupt-controller; | ||
187 | #interrupt-cells = <1>; | ||
188 | }; | ||
189 | |||
190 | pio: pinctrl@01c20800 { | ||
191 | compatible = "allwinner,sun5i-a10s-pinctrl"; | ||
192 | reg = <0x01c20800 0x400>; | ||
193 | interrupts = <28>; | ||
194 | clocks = <&apb0_gates 5>; | ||
195 | gpio-controller; | ||
196 | interrupt-controller; | ||
197 | #address-cells = <1>; | ||
198 | #size-cells = <0>; | ||
199 | #gpio-cells = <3>; | ||
200 | |||
201 | uart0_pins_a: uart0@0 { | ||
202 | allwinner,pins = "PB19", "PB20"; | ||
203 | allwinner,function = "uart0"; | ||
204 | allwinner,drive = <0>; | ||
205 | allwinner,pull = <0>; | ||
206 | }; | ||
207 | |||
208 | uart2_pins_a: uart2@0 { | ||
209 | allwinner,pins = "PC18", "PC19"; | ||
210 | allwinner,function = "uart2"; | ||
211 | allwinner,drive = <0>; | ||
212 | allwinner,pull = <0>; | ||
213 | }; | ||
214 | |||
215 | uart3_pins_a: uart3@0 { | ||
216 | allwinner,pins = "PG9", "PG10"; | ||
217 | allwinner,function = "uart3"; | ||
218 | allwinner,drive = <0>; | ||
219 | allwinner,pull = <0>; | ||
220 | }; | ||
221 | |||
222 | emac_pins_a: emac0@0 { | ||
223 | allwinner,pins = "PA0", "PA1", "PA2", | ||
224 | "PA3", "PA4", "PA5", "PA6", | ||
225 | "PA7", "PA8", "PA9", "PA10", | ||
226 | "PA11", "PA12", "PA13", "PA14", | ||
227 | "PA15", "PA16"; | ||
228 | allwinner,function = "emac"; | ||
229 | allwinner,drive = <0>; | ||
230 | allwinner,pull = <0>; | ||
231 | }; | ||
232 | }; | ||
233 | |||
234 | timer@01c20c00 { | ||
235 | compatible = "allwinner,sun4i-timer"; | ||
236 | reg = <0x01c20c00 0x90>; | ||
237 | interrupts = <22>; | ||
238 | clocks = <&osc24M>; | ||
239 | }; | ||
240 | |||
241 | wdt: watchdog@01c20c90 { | ||
242 | compatible = "allwinner,sun4i-wdt"; | ||
243 | reg = <0x01c20c90 0x10>; | ||
244 | }; | ||
245 | |||
246 | uart0: serial@01c28000 { | ||
247 | compatible = "snps,dw-apb-uart"; | ||
248 | reg = <0x01c28000 0x400>; | ||
249 | interrupts = <1>; | ||
250 | reg-shift = <2>; | ||
251 | reg-io-width = <4>; | ||
252 | clocks = <&apb1_gates 16>; | ||
253 | status = "disabled"; | ||
254 | }; | ||
255 | |||
256 | uart1: serial@01c28400 { | ||
257 | compatible = "snps,dw-apb-uart"; | ||
258 | reg = <0x01c28400 0x400>; | ||
259 | interrupts = <2>; | ||
260 | reg-shift = <2>; | ||
261 | reg-io-width = <4>; | ||
262 | clocks = <&apb1_gates 17>; | ||
263 | status = "disabled"; | ||
264 | }; | ||
265 | |||
266 | uart2: serial@01c28800 { | ||
267 | compatible = "snps,dw-apb-uart"; | ||
268 | reg = <0x01c28800 0x400>; | ||
269 | interrupts = <3>; | ||
270 | reg-shift = <2>; | ||
271 | reg-io-width = <4>; | ||
272 | clocks = <&apb1_gates 18>; | ||
273 | status = "disabled"; | ||
274 | }; | ||
275 | |||
276 | uart3: serial@01c28c00 { | ||
277 | compatible = "snps,dw-apb-uart"; | ||
278 | reg = <0x01c28c00 0x400>; | ||
279 | interrupts = <4>; | ||
280 | reg-shift = <2>; | ||
281 | reg-io-width = <4>; | ||
282 | clocks = <&apb1_gates 19>; | ||
283 | status = "disabled"; | ||
284 | }; | ||
285 | }; | ||
286 | }; | ||
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts index 3ca55067f868..80497e376706 100644 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts | |||
@@ -37,6 +37,24 @@ | |||
37 | pinctrl-0 = <&uart1_pins_b>; | 37 | pinctrl-0 = <&uart1_pins_b>; |
38 | status = "okay"; | 38 | status = "okay"; |
39 | }; | 39 | }; |
40 | |||
41 | i2c0: i2c@01c2ac00 { | ||
42 | pinctrl-names = "default"; | ||
43 | pinctrl-0 = <&i2c0_pins_a>; | ||
44 | status = "okay"; | ||
45 | }; | ||
46 | |||
47 | i2c1: i2c@01c2b000 { | ||
48 | pinctrl-names = "default"; | ||
49 | pinctrl-0 = <&i2c1_pins_a>; | ||
50 | status = "okay"; | ||
51 | }; | ||
52 | |||
53 | i2c2: i2c@01c2b400 { | ||
54 | pinctrl-names = "default"; | ||
55 | pinctrl-0 = <&i2c2_pins_a>; | ||
56 | status = "okay"; | ||
57 | }; | ||
40 | }; | 58 | }; |
41 | 59 | ||
42 | leds { | 60 | leds { |
diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi index 027cb24438f8..7363211daf84 100644 --- a/arch/arm/boot/dts/sun5i-a13.dtsi +++ b/arch/arm/boot/dts/sun5i-a13.dtsi | |||
@@ -188,6 +188,27 @@ | |||
188 | allwinner,drive = <0>; | 188 | allwinner,drive = <0>; |
189 | allwinner,pull = <0>; | 189 | allwinner,pull = <0>; |
190 | }; | 190 | }; |
191 | |||
192 | i2c0_pins_a: i2c0@0 { | ||
193 | allwinner,pins = "PB0", "PB1"; | ||
194 | allwinner,function = "i2c0"; | ||
195 | allwinner,drive = <0>; | ||
196 | allwinner,pull = <0>; | ||
197 | }; | ||
198 | |||
199 | i2c1_pins_a: i2c1@0 { | ||
200 | allwinner,pins = "PB15", "PB16"; | ||
201 | allwinner,function = "i2c1"; | ||
202 | allwinner,drive = <0>; | ||
203 | allwinner,pull = <0>; | ||
204 | }; | ||
205 | |||
206 | i2c2_pins_a: i2c2@0 { | ||
207 | allwinner,pins = "PB17", "PB18"; | ||
208 | allwinner,function = "i2c2"; | ||
209 | allwinner,drive = <0>; | ||
210 | allwinner,pull = <0>; | ||
211 | }; | ||
191 | }; | 212 | }; |
192 | 213 | ||
193 | timer@01c20c00 { | 214 | timer@01c20c00 { |
@@ -221,5 +242,32 @@ | |||
221 | clocks = <&apb1_gates 19>; | 242 | clocks = <&apb1_gates 19>; |
222 | status = "disabled"; | 243 | status = "disabled"; |
223 | }; | 244 | }; |
245 | |||
246 | i2c0: i2c@01c2ac00 { | ||
247 | compatible = "allwinner,sun4i-i2c"; | ||
248 | reg = <0x01c2ac00 0x400>; | ||
249 | interrupts = <7>; | ||
250 | clocks = <&apb1_gates 0>; | ||
251 | clock-frequency = <100000>; | ||
252 | status = "disabled"; | ||
253 | }; | ||
254 | |||
255 | i2c1: i2c@01c2b000 { | ||
256 | compatible = "allwinner,sun4i-i2c"; | ||
257 | reg = <0x01c2b000 0x400>; | ||
258 | interrupts = <8>; | ||
259 | clocks = <&apb1_gates 1>; | ||
260 | clock-frequency = <100000>; | ||
261 | status = "disabled"; | ||
262 | }; | ||
263 | |||
264 | i2c2: i2c@01c2b400 { | ||
265 | compatible = "allwinner,sun4i-i2c"; | ||
266 | reg = <0x01c2b400 0x400>; | ||
267 | interrupts = <9>; | ||
268 | clocks = <&apb1_gates 2>; | ||
269 | clock-frequency = <100000>; | ||
270 | status = "disabled"; | ||
271 | }; | ||
224 | }; | 272 | }; |
225 | }; | 273 | }; |