]>
Commit | Line | Data |
---|---|---|
d0f2677b MR |
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" | |
72f4e498 | 16 | /include/ "sunxi-common-regulators.dtsi" |
d0f2677b MR |
17 | |
18 | / { | |
19 | model = "Olimex A10s-Olinuxino Micro"; | |
20 | compatible = "olimex,a10s-olinuxino-micro", "allwinner,sun5i-a10s"; | |
21 | ||
9e199292 | 22 | soc@01c00000 { |
d0f2677b MR |
23 | emac: ethernet@01c0b000 { |
24 | pinctrl-names = "default"; | |
25 | pinctrl-0 = <&emac_pins_a>; | |
26 | phy = <&phy1>; | |
27 | status = "okay"; | |
28 | }; | |
29 | ||
30 | mdio@01c0b080 { | |
31 | status = "okay"; | |
32 | ||
33 | phy1: ethernet-phy@1 { | |
34 | reg = <1>; | |
35 | }; | |
36 | }; | |
37 | ||
31064bbd HG |
38 | mmc0: mmc@01c0f000 { |
39 | pinctrl-names = "default"; | |
40 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino_micro>; | |
b4d6c77e | 41 | vmmc-supply = <®_vcc3v3>; |
31064bbd HG |
42 | bus-width = <4>; |
43 | cd-gpios = <&pio 6 1 0>; /* PG1 */ | |
44 | cd-inverted; | |
45 | status = "okay"; | |
46 | }; | |
47 | ||
48 | mmc1: mmc@01c10000 { | |
49 | pinctrl-names = "default"; | |
50 | pinctrl-0 = <&mmc1_pins_a>, <&mmc1_cd_pin_olinuxino_micro>; | |
b4d6c77e | 51 | vmmc-supply = <®_vcc3v3>; |
31064bbd HG |
52 | bus-width = <4>; |
53 | cd-gpios = <&pio 6 13 0>; /* PG13 */ | |
54 | cd-inverted; | |
55 | status = "okay"; | |
56 | }; | |
57 | ||
72f4e498 HG |
58 | usbphy: phy@01c13400 { |
59 | usb1_vbus-supply = <®_usb1_vbus>; | |
60 | status = "okay"; | |
61 | }; | |
62 | ||
63 | ehci0: usb@01c14000 { | |
64 | status = "okay"; | |
65 | }; | |
66 | ||
67 | ohci0: usb@01c14400 { | |
68 | status = "okay"; | |
69 | }; | |
70 | ||
d0f2677b | 71 | pinctrl@01c20800 { |
31064bbd HG |
72 | mmc0_cd_pin_olinuxino_micro: mmc0_cd_pin@0 { |
73 | allwinner,pins = "PG1"; | |
74 | allwinner,function = "gpio_in"; | |
75 | allwinner,drive = <0>; | |
76 | allwinner,pull = <1>; | |
77 | }; | |
78 | ||
79 | mmc1_cd_pin_olinuxino_micro: mmc1_cd_pin@0 { | |
80 | allwinner,pins = "PG13"; | |
81 | allwinner,function = "gpio_in"; | |
82 | allwinner,drive = <0>; | |
83 | allwinner,pull = <1>; | |
84 | }; | |
85 | ||
d0f2677b MR |
86 | led_pins_olinuxino: led_pins@0 { |
87 | allwinner,pins = "PE3"; | |
88 | allwinner,function = "gpio_out"; | |
89 | allwinner,drive = <1>; | |
90 | allwinner,pull = <0>; | |
91 | }; | |
72f4e498 HG |
92 | |
93 | usb1_vbus_pin_olinuxino_m: usb1_vbus_pin@0 { | |
94 | allwinner,pins = "PB10"; | |
95 | allwinner,function = "gpio_out"; | |
96 | allwinner,drive = <0>; | |
97 | allwinner,pull = <0>; | |
98 | }; | |
d0f2677b MR |
99 | }; |
100 | ||
101 | uart0: serial@01c28000 { | |
102 | pinctrl-names = "default"; | |
103 | pinctrl-0 = <&uart0_pins_a>; | |
104 | status = "okay"; | |
105 | }; | |
106 | ||
107 | uart2: serial@01c28800 { | |
108 | pinctrl-names = "default"; | |
109 | pinctrl-0 = <&uart2_pins_a>; | |
110 | status = "okay"; | |
111 | }; | |
112 | ||
113 | uart3: serial@01c28c00 { | |
114 | pinctrl-names = "default"; | |
115 | pinctrl-0 = <&uart3_pins_a>; | |
116 | status = "okay"; | |
117 | }; | |
d6c451dd EL |
118 | |
119 | i2c0: i2c@01c2ac00 { | |
120 | pinctrl-names = "default"; | |
121 | pinctrl-0 = <&i2c0_pins_a>; | |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | i2c1: i2c@01c2b000 { | |
126 | pinctrl-names = "default"; | |
127 | pinctrl-0 = <&i2c1_pins_a>; | |
128 | status = "okay"; | |
bdbfd8e0 EL |
129 | |
130 | at24@50 { | |
131 | compatible = "at,24c16"; | |
132 | pagesize = <16>; | |
133 | reg = <0x50>; | |
134 | read-only; | |
135 | }; | |
d6c451dd EL |
136 | }; |
137 | ||
138 | i2c2: i2c@01c2b400 { | |
139 | pinctrl-names = "default"; | |
140 | pinctrl-0 = <&i2c2_pins_a>; | |
141 | status = "okay"; | |
142 | }; | |
d0f2677b MR |
143 | }; |
144 | ||
145 | leds { | |
146 | compatible = "gpio-leds"; | |
147 | pinctrl-names = "default"; | |
148 | pinctrl-0 = <&led_pins_olinuxino>; | |
149 | ||
150 | green { | |
151 | label = "a10s-olinuxino-micro:green:usr"; | |
152 | gpios = <&pio 4 3 0>; | |
153 | default-state = "on"; | |
154 | }; | |
155 | }; | |
72f4e498 HG |
156 | |
157 | reg_usb1_vbus: usb1-vbus { | |
158 | pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>; | |
159 | gpio = <&pio 1 10 0>; | |
160 | status = "okay"; | |
161 | }; | |
d0f2677b | 162 | }; |