blob: 1c012a4def16da475e07c09ace00dd26e796c81c [file] [log] [blame]
Vishnu Patekarb9c34582016-01-06 21:11:54 +08001/*
2 * Copyright 2015 Vishnu Patekar
3 * Vishnu Patekar <vishnupatekar0510@gmail.com>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44/dts-v1/;
45#include "sun8i-a83t.dtsi"
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +080046
47#include <dt-bindings/gpio/gpio.h>
Vishnu Patekarb9c34582016-01-06 21:11:54 +080048
49/ {
50 model = "Allwinner A83T H8Homlet Proto Dev Board v2.0";
51 compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t";
52
53 aliases {
54 serial0 = &uart0;
55 };
56
57 chosen {
58 stdout-path = "serial0:115200n8";
59 };
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +080060
61 reg_usb0_vbus: reg-usb0-vbus {
62 compatible = "regulator-fixed";
63 regulator-name = "usb0-vbus";
64 regulator-min-microvolt = <5000000>;
65 regulator-max-microvolt = <5000000>;
66 regulator-boot-on;
67 enable-active-high;
68 gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
69 };
70
71 reg_usb1_vbus: reg-usb1-vbus {
72 compatible = "regulator-fixed";
73 regulator-name = "usb1-vbus";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 regulator-boot-on;
77 enable-active-high;
78 gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
79 };
Vishnu Patekarb9c34582016-01-06 21:11:54 +080080};
81
Chen-Yu Tsai75ab9392018-06-27 10:27:09 +080082&cpu0 {
83 cpu-supply = <&reg_dcdc2>;
84};
85
86&cpu100 {
87 cpu-supply = <&reg_dcdc3>;
88};
89
Chen-Yu Tsai75ce73f2017-08-03 16:14:11 +080090&ehci0 {
91 status = "okay";
92};
93
Chen-Yu Tsai581ae762017-07-24 21:59:05 +080094&mmc0 {
95 pinctrl-names = "default";
96 pinctrl-0 = <&mmc0_pins>;
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +080097 vmmc-supply = <&reg_dcdc1>;
Tuomas Tynkkynen45e01f42017-12-22 22:57:37 +020098 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
Chen-Yu Tsai581ae762017-07-24 21:59:05 +080099 bus-width = <4>;
Chen-Yu Tsai581ae762017-07-24 21:59:05 +0800100 status = "okay";
101};
102
103&mmc2 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +0800106 vmmc-supply = <&reg_dcdc1>;
107 vqmmc-supply = <&reg_dcdc1>;
Chen-Yu Tsai581ae762017-07-24 21:59:05 +0800108 bus-width = <8>;
109 non-removable;
110 cap-mmc-hw-reset;
111 status = "okay";
112};
113
Chen-Yu Tsai75ce73f2017-08-03 16:14:11 +0800114&ohci0 {
115 status = "okay";
116};
117
Chen-Yu Tsai29067932017-07-20 16:01:02 +0800118&r_rsb {
119 status = "okay";
120
121 axp81x: pmic@3a3 {
122 compatible = "x-powers,axp818", "x-powers,axp813";
123 reg = <0x3a3>;
124 interrupt-parent = <&r_intc>;
125 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +0800126 eldoin-supply = <&reg_dcdc1>;
127 swin-supply = <&reg_dcdc1>;
Chen-Yu Tsai29067932017-07-20 16:01:02 +0800128 };
Chen-Yu Tsai5bcfff22017-07-20 16:02:25 +0800129
130 ac100: codec@e89 {
131 compatible = "x-powers,ac100";
132 reg = <0xe89>;
133
134 ac100_codec: codec {
135 compatible = "x-powers,ac100-codec";
136 interrupt-parent = <&r_pio>;
137 interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
138 #clock-cells = <0>;
139 clock-output-names = "4M_adda";
140 };
141
142 ac100_rtc: rtc {
143 compatible = "x-powers,ac100-rtc";
144 interrupt-parent = <&r_intc>;
145 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
146 clocks = <&ac100_codec>;
147 #clock-cells = <1>;
148 clock-output-names = "cko1_rtc",
149 "cko2_rtc",
150 "cko3_rtc";
151 };
152 };
Chen-Yu Tsai29067932017-07-20 16:01:02 +0800153};
154
Chen-Yu Tsaif9573c02017-10-18 16:31:35 +0800155#include "axp81x.dtsi"
156
157&reg_aldo1 {
158 regulator-always-on;
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <1800000>;
161 regulator-name = "vcc-1v8";
162};
163
164&reg_aldo2 {
165 regulator-always-on;
166 regulator-min-microvolt = <1800000>;
167 regulator-max-microvolt = <1800000>;
168 regulator-name = "dram-pll";
169};
170
171&reg_aldo3 {
172 regulator-always-on;
173 regulator-min-microvolt = <3000000>;
174 regulator-max-microvolt = <3000000>;
175 regulator-name = "avcc";
176};
177
178&reg_dcdc1 {
179 regulator-always-on;
180 regulator-min-microvolt = <3300000>;
181 regulator-max-microvolt = <3300000>;
182 regulator-name = "vcc-3v3";
183};
184
185&reg_dcdc2 {
186 regulator-always-on;
187 regulator-min-microvolt = <700000>;
188 regulator-max-microvolt = <1100000>;
189 regulator-name = "vdd-cpua";
190};
191
192&reg_dcdc3 {
193 regulator-always-on;
194 regulator-min-microvolt = <700000>;
195 regulator-max-microvolt = <1100000>;
196 regulator-name = "vdd-cpub";
197};
198
199&reg_dcdc4 {
200 regulator-min-microvolt = <700000>;
201 regulator-max-microvolt = <1100000>;
202 regulator-name = "vdd-gpu";
203};
204
205&reg_dcdc5 {
206 regulator-always-on;
207 regulator-min-microvolt = <1500000>;
208 regulator-max-microvolt = <1500000>;
209 regulator-name = "vcc-dram";
210};
211
212&reg_dcdc6 {
213 regulator-always-on;
214 regulator-min-microvolt = <900000>;
215 regulator-max-microvolt = <900000>;
216 regulator-name = "vdd-sys";
217};
218
219&reg_dldo2 {
220 regulator-min-microvolt = <3300000>;
221 regulator-max-microvolt = <3300000>;
222 regulator-name = "vcc-mipi";
223};
224
225&reg_dldo4 {
226 /*
227 * The PHY requires 20ms after all voltages are applied until core
228 * logic is ready and 30ms after the reset pin is de-asserted.
229 * Set a 100ms delay to account for PMIC ramp time and board traces.
230 */
231 regulator-enable-ramp-delay = <100000>;
232 regulator-min-microvolt = <3300000>;
233 regulator-max-microvolt = <3300000>;
234 regulator-name = "vcc-ephy";
235};
236
237&reg_fldo1 {
238 regulator-min-microvolt = <1080000>;
239 regulator-max-microvolt = <1320000>;
240 regulator-name = "vdd12-hsic";
241};
242
243&reg_fldo2 {
244 /*
245 * Despite the embedded CPUs core not being used in any way,
246 * this must remain on or the system will hang.
247 */
248 regulator-always-on;
249 regulator-min-microvolt = <700000>;
250 regulator-max-microvolt = <1100000>;
251 regulator-name = "vdd-cpus";
252};
253
254&reg_rtc_ldo {
255 regulator-name = "vcc-rtc";
256};
257
258&reg_sw {
259 regulator-name = "vcc-wifi";
260};
261
Vishnu Patekarb9c34582016-01-06 21:11:54 +0800262&uart0 {
263 pinctrl-names = "default";
Chen-Yu Tsaie53bfb02017-04-18 12:22:05 +0800264 pinctrl-0 = <&uart0_pb_pins>;
Vishnu Patekarb9c34582016-01-06 21:11:54 +0800265 status = "okay";
266};
Chen-Yu Tsai75ce73f2017-08-03 16:14:11 +0800267
268&usbphy {
269 usb0_vbus-supply = <&reg_usb0_vbus>;
270 usb1_vbus-supply = <&reg_usb1_vbus>;
271 status = "okay";
272};
273
274&usb_otg {
275 dr_mode = "host";
276 status = "okay";
277};