ARM: dts: sun8i: a23/a33: Remove redundant MMC pinmux tuning
[linux-2.6-block.git] / arch / arm / boot / dts / sun8i-a33-sinlinx-sina33.dts
CommitLineData
4eb0f25f
CYT
1/*
2 * Copyright 2015 Chen-Yu Tsai
3 *
4 * Chen-Yu Tsai <wens@csie.org>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
43 */
44
45/dts-v1/;
46#include "sun8i-a33.dtsi"
47#include "sunxi-common-regulators.dtsi"
48
49#include <dt-bindings/gpio/gpio.h>
50#include <dt-bindings/input/input.h>
4eb0f25f
CYT
51
52/ {
53 model = "Sinlinx SinA33";
54 compatible = "sinlinx,sina33", "allwinner,sun8i-a33";
55
56 aliases {
57 serial0 = &uart0;
58 };
59
60 chosen {
61 stdout-path = "serial0:115200n8";
62 };
7ac91832
MR
63
64 panel {
65 compatible = "netron-dy,e231732";
66 #address-cells = <1>;
67 #size-cells = <0>;
68
69 port@0 {
70 reg = <0>;
71 #address-cells = <1>;
72 #size-cells = <0>;
73
74 panel_input: endpoint@0 {
75 reg = <0>;
76 remote-endpoint = <&tcon0_out_panel>;
77 };
78 };
79 };
80};
81
da2ee973
MJ
82&codec {
83 status = "okay";
84};
85
bc57e37e
QS
86&cpu0 {
87 cpu-supply = <&reg_dcdc3>;
88};
89
367d2b0c 90&cpu0_opp_table {
84f1738a 91 opp-1104000000 {
367d2b0c
QS
92 opp-hz = /bits/ 64 <1104000000>;
93 opp-microvolt = <1320000>;
94 clock-latency-ns = <244144>; /* 8 32k periods */
95 };
96
84f1738a 97 opp-1200000000 {
367d2b0c
QS
98 opp-hz = /bits/ 64 <1200000000>;
99 opp-microvolt = <1320000>;
100 clock-latency-ns = <244144>; /* 8 32k periods */
101 };
102};
103
7ac91832
MR
104&de {
105 status = "okay";
4eb0f25f
CYT
106};
107
da2ee973
MJ
108&dai {
109 status = "okay";
110};
111
c077132b
CYT
112&ehci0 {
113 status = "okay";
114};
115
4eb0f25f 116&lradc {
5c61f02c 117 vref-supply = <&reg_dcdc1>;
4eb0f25f
CYT
118 status = "okay";
119
120 button@200 {
121 label = "Volume Up";
122 linux,code = <KEY_VOLUMEUP>;
123 channel = <0>;
124 voltage = <191011>;
125 };
126
127 button@400 {
128 label = "Volume Down";
129 linux,code = <KEY_VOLUMEDOWN>;
130 channel = <0>;
131 voltage = <391304>;
132 };
133
134 button@600 {
135 label = "Home";
136 linux,code = <KEY_HOME>;
137 channel = <0>;
138 voltage = <600000>;
139 };
140};
141
142&mmc0 {
143 pinctrl-names = "default";
144 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina33>;
5c61f02c 145 vmmc-supply = <&reg_dcdc1>;
4eb0f25f 146 bus-width = <4>;
45e01f40 147 cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */
4eb0f25f
CYT
148 status = "okay";
149};
150
151&mmc2 {
152 pinctrl-names = "default";
153 pinctrl-0 = <&mmc2_8bit_pins>;
5c61f02c 154 vmmc-supply = <&reg_dcdc1>;
4eb0f25f
CYT
155 bus-width = <8>;
156 non-removable;
74124439 157 cap-mmc-hw-reset;
4eb0f25f
CYT
158 status = "okay";
159};
160
161&mmc2_8bit_pins {
74124439 162 /* Increase drive strength for DDR modes */
1edcd36f 163 drive-strength = <40>;
4eb0f25f
CYT
164};
165
c077132b
CYT
166&ohci0 {
167 status = "okay";
168};
169
4eb0f25f
CYT
170&pio {
171 mmc0_cd_pin_sina33: mmc0_cd_pin@0 {
1edcd36f
MR
172 pins = "PB4";
173 function = "gpio_in";
174 bias-pull-up;
4eb0f25f
CYT
175 };
176};
177
b2ec7029
CYT
178&r_rsb {
179 status = "okay";
5c61f02c
CYT
180
181 axp22x: pmic@3a3 {
182 compatible = "x-powers,axp223";
183 reg = <0x3a3>;
184 interrupt-parent = <&nmi_intc>;
185 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
186 eldoin-supply = <&reg_dcdc1>;
187 };
188};
189
a13792cf 190#include "axp223.dtsi"
5c61f02c 191
bd69ad59
QS
192&ac_power_supply {
193 status = "okay";
194};
195
e7c42f32
QS
196&battery_power_supply {
197 status = "okay";
198};
199
5c61f02c
CYT
200&reg_aldo1 {
201 regulator-always-on;
202 regulator-min-microvolt = <3000000>;
203 regulator-max-microvolt = <3000000>;
204 regulator-name = "vcc-io";
205};
206
207&reg_aldo2 {
208 regulator-always-on;
209 regulator-min-microvolt = <2350000>;
210 regulator-max-microvolt = <2650000>;
211 regulator-name = "vdd-dll";
212};
213
214&reg_aldo3 {
215 regulator-always-on;
216 regulator-min-microvolt = <2700000>;
217 regulator-max-microvolt = <3300000>;
218 regulator-name = "vcc-pll-avcc";
219};
220
221&reg_dc5ldo {
222 regulator-always-on;
223 regulator-min-microvolt = <900000>;
224 regulator-max-microvolt = <1400000>;
225 regulator-name = "vdd-cpus";
226};
227
228&reg_dcdc1 {
229 regulator-always-on;
230 regulator-min-microvolt = <3000000>;
231 regulator-max-microvolt = <3000000>;
232 regulator-name = "vcc-3v0";
233};
234
235&reg_dcdc2 {
236 regulator-always-on;
237 regulator-min-microvolt = <900000>;
238 regulator-max-microvolt = <1400000>;
239 regulator-name = "vdd-sys";
240};
241
242&reg_dcdc3 {
243 regulator-always-on;
244 regulator-min-microvolt = <900000>;
245 regulator-max-microvolt = <1400000>;
246 regulator-name = "vdd-cpu";
247};
248
249&reg_dcdc5 {
250 regulator-always-on;
251 regulator-min-microvolt = <1500000>;
252 regulator-max-microvolt = <1500000>;
253 regulator-name = "vcc-dram";
254};
255
256&reg_rtc_ldo {
257 regulator-name = "vcc-rtc";
b2ec7029
CYT
258};
259
da2ee973
MJ
260&sound {
261 status = "okay";
262};
263
7ac91832
MR
264&tcon0 {
265 pinctrl-names = "default";
266 pinctrl-0 = <&lcd_rgb666_pins>;
267 status = "okay";
268};
269
270&tcon0_out {
271 tcon0_out_panel: endpoint@0 {
272 reg = <0>;
273 remote-endpoint = <&panel_input>;
274 };
275};
276
4eb0f25f
CYT
277&uart0 {
278 pinctrl-names = "default";
279 pinctrl-0 = <&uart0_pins_b>;
280 status = "okay";
281};
c077132b 282
daa4c260
MR
283&usb_otg {
284 dr_mode = "peripheral";
285 status = "okay";
286};
287
c077132b
CYT
288&usbphy {
289 status = "okay";
290 usb1_vbus-supply = <&reg_vcc5v0>; /* USB1 VBUS is always on */
291};