]>
Commit | Line | Data |
---|---|---|
d4da2ebb MR |
1 | /* |
2 | * Copyright 2012 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/; | |
68136b10 | 15 | /include/ "sun5i-a13.dtsi" |
4703bc83 | 16 | /include/ "sunxi-common-regulators.dtsi" |
d4da2ebb MR |
17 | |
18 | / { | |
19 | model = "Olimex A13-Olinuxino"; | |
68136b10 | 20 | compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13"; |
d4da2ebb | 21 | |
278fe8b8 | 22 | soc@01c00000 { |
4703bc83 RB |
23 | usbphy: phy@01c13400 { |
24 | usb1_vbus-supply = <®_usb1_vbus>; | |
25 | status = "okay"; | |
26 | }; | |
27 | ||
28 | ehci0: usb@01c14000 { | |
29 | status = "okay"; | |
30 | }; | |
31 | ||
32 | ohci0: usb@01c14400 { | |
33 | status = "okay"; | |
34 | }; | |
35 | ||
bfef081d MR |
36 | pinctrl@01c20800 { |
37 | led_pins_olinuxino: led_pins@0 { | |
38 | allwinner,pins = "PG9"; | |
39 | allwinner,function = "gpio_out"; | |
40 | allwinner,drive = <1>; | |
41 | allwinner,pull = <0>; | |
42 | }; | |
4703bc83 RB |
43 | |
44 | usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 { | |
45 | allwinner,pins = "PG11"; | |
46 | allwinner,function = "gpio_out"; | |
47 | allwinner,drive = <0>; | |
48 | allwinner,pull = <0>; | |
49 | }; | |
bfef081d MR |
50 | }; |
51 | ||
b00adbe0 | 52 | uart1: serial@01c28400 { |
c54729ee MR |
53 | pinctrl-names = "default"; |
54 | pinctrl-0 = <&uart1_pins_b>; | |
d4da2ebb MR |
55 | status = "okay"; |
56 | }; | |
351617cd MR |
57 | |
58 | i2c0: i2c@01c2ac00 { | |
59 | pinctrl-names = "default"; | |
60 | pinctrl-0 = <&i2c0_pins_a>; | |
61 | status = "okay"; | |
62 | }; | |
63 | ||
64 | i2c1: i2c@01c2b000 { | |
65 | pinctrl-names = "default"; | |
66 | pinctrl-0 = <&i2c1_pins_a>; | |
67 | status = "okay"; | |
68 | }; | |
69 | ||
70 | i2c2: i2c@01c2b400 { | |
71 | pinctrl-names = "default"; | |
72 | pinctrl-0 = <&i2c2_pins_a>; | |
73 | status = "okay"; | |
74 | }; | |
d4da2ebb | 75 | }; |
bfef081d MR |
76 | |
77 | leds { | |
78 | compatible = "gpio-leds"; | |
79 | pinctrl-names = "default"; | |
80 | pinctrl-0 = <&led_pins_olinuxino>; | |
81 | ||
82 | power { | |
83 | gpios = <&pio 6 9 0>; | |
84 | default-state = "on"; | |
85 | }; | |
86 | }; | |
4703bc83 RB |
87 | |
88 | reg_usb1_vbus: usb1-vbus { | |
89 | pinctrl-0 = <&usb1_vbus_pin_olinuxino>; | |
90 | gpio = <&pio 6 11 0>; | |
91 | status = "okay"; | |
92 | }; | |
d4da2ebb | 93 | }; |