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 { |
31064bbd HG |
23 | mmc0: mmc@01c0f000 { |
24 | pinctrl-names = "default"; | |
25 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>; | |
b4d6c77e | 26 | vmmc-supply = <®_vcc3v3>; |
31064bbd HG |
27 | bus-width = <4>; |
28 | cd-gpios = <&pio 6 0 0>; /* PG0 */ | |
29 | cd-inverted; | |
30 | status = "okay"; | |
31 | }; | |
32 | ||
4703bc83 RB |
33 | usbphy: phy@01c13400 { |
34 | usb1_vbus-supply = <®_usb1_vbus>; | |
35 | status = "okay"; | |
36 | }; | |
37 | ||
38 | ehci0: usb@01c14000 { | |
39 | status = "okay"; | |
40 | }; | |
41 | ||
42 | ohci0: usb@01c14400 { | |
43 | status = "okay"; | |
44 | }; | |
45 | ||
bfef081d | 46 | pinctrl@01c20800 { |
31064bbd HG |
47 | mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 { |
48 | allwinner,pins = "PG0"; | |
49 | allwinner,function = "gpio_in"; | |
50 | allwinner,drive = <0>; | |
51 | allwinner,pull = <1>; | |
52 | }; | |
53 | ||
bfef081d MR |
54 | led_pins_olinuxino: led_pins@0 { |
55 | allwinner,pins = "PG9"; | |
56 | allwinner,function = "gpio_out"; | |
57 | allwinner,drive = <1>; | |
58 | allwinner,pull = <0>; | |
59 | }; | |
4703bc83 RB |
60 | |
61 | usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 { | |
62 | allwinner,pins = "PG11"; | |
63 | allwinner,function = "gpio_out"; | |
64 | allwinner,drive = <0>; | |
65 | allwinner,pull = <0>; | |
66 | }; | |
bfef081d MR |
67 | }; |
68 | ||
b00adbe0 | 69 | uart1: serial@01c28400 { |
c54729ee MR |
70 | pinctrl-names = "default"; |
71 | pinctrl-0 = <&uart1_pins_b>; | |
d4da2ebb MR |
72 | status = "okay"; |
73 | }; | |
351617cd MR |
74 | |
75 | i2c0: i2c@01c2ac00 { | |
76 | pinctrl-names = "default"; | |
77 | pinctrl-0 = <&i2c0_pins_a>; | |
78 | status = "okay"; | |
79 | }; | |
80 | ||
81 | i2c1: i2c@01c2b000 { | |
82 | pinctrl-names = "default"; | |
83 | pinctrl-0 = <&i2c1_pins_a>; | |
84 | status = "okay"; | |
85 | }; | |
86 | ||
87 | i2c2: i2c@01c2b400 { | |
88 | pinctrl-names = "default"; | |
89 | pinctrl-0 = <&i2c2_pins_a>; | |
90 | status = "okay"; | |
91 | }; | |
d4da2ebb | 92 | }; |
bfef081d MR |
93 | |
94 | leds { | |
95 | compatible = "gpio-leds"; | |
96 | pinctrl-names = "default"; | |
97 | pinctrl-0 = <&led_pins_olinuxino>; | |
98 | ||
99 | power { | |
100 | gpios = <&pio 6 9 0>; | |
101 | default-state = "on"; | |
102 | }; | |
103 | }; | |
4703bc83 RB |
104 | |
105 | reg_usb1_vbus: usb1-vbus { | |
106 | pinctrl-0 = <&usb1_vbus_pin_olinuxino>; | |
107 | gpio = <&pio 6 11 0>; | |
108 | status = "okay"; | |
109 | }; | |
d4da2ebb | 110 | }; |