2 * Copyright 2015 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
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
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.
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.
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
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
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.
46 #include "sun8i-a83t.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
51 model = "Cubietech Cubietruck Plus";
52 compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
60 stdout-path = "serial0:115200n8";
64 compatible = "gpio-leds";
67 label = "cubietruck-plus:blue:usr";
68 gpios = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
72 label = "cubietruck-plus:orange:usr";
73 gpios = <&pio 3 26 GPIO_ACTIVE_HIGH>; /* PD26 */
77 label = "cubietruck-plus:white:usr";
78 gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>; /* PD27 */
82 label = "cubietruck-plus:green:usr";
83 gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
88 /* I2C is not connected */
89 compatible = "smsc,usb3503";
90 initial-mode = <1>; /* initialize in HUB mode */
92 intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
93 reset-gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; /* PE16 */
94 connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
95 refclk-frequency = <19200000>;
98 reg_usb1_vbus: reg-usb1-vbus {
99 compatible = "regulator-fixed";
100 regulator-name = "usb1-vbus";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
105 gpio = <&pio 3 29 GPIO_ACTIVE_HIGH>; /* PD29 */
108 reg_usb2_vbus: reg-usb2-vbus {
109 compatible = "regulator-fixed";
110 regulator-name = "usb2-vbus";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
115 gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
119 compatible = "simple-audio-card";
120 simple-audio-card,name = "On-board SPDIF";
122 simple-audio-card,cpu {
123 sound-dai = <&spdif>;
126 simple-audio-card,codec {
127 sound-dai = <&spdif_out>;
131 spdif_out: spdif-out {
132 #sound-dai-cells = <0>;
133 compatible = "linux,spdif-dit";
136 wifi_pwrseq: wifi_pwrseq {
137 compatible = "mmc-pwrseq-simple";
138 clocks = <&ac100_rtc 1>;
139 clock-names = "ext_clock";
140 /* The WiFi low power clock must be 32768 Hz */
141 assigned-clocks = <&ac100_rtc 1>;
142 assigned-clock-rates = <32768>;
143 /* enables internal regulator and de-asserts reset */
144 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
149 cpu-supply = <®_dcdc2>;
153 cpu-supply = <®_dcdc3>;
157 /* GL830 USB-to-SATA bridge here */
162 /* USB3503 HSIC USB 2.0 hub here */
167 pinctrl-names = "default";
168 pinctrl-0 = <&emac_rgmii_pins>;
169 phy-supply = <®_dldo4>;
170 phy-handle = <&rgmii_phy>;
176 rgmii_phy: ethernet-phy@1 {
177 compatible = "ethernet-phy-ieee802.3-c22";
183 pinctrl-names = "default";
184 pinctrl-0 = <&mmc0_pins>;
185 vmmc-supply = <®_dcdc1>;
187 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
192 vmmc-supply = <®_dcdc1>;
193 vqmmc-supply = <®_sw>;
194 mmc-pwrseq = <&wifi_pwrseq>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
203 vmmc-supply = <®_dcdc1>;
214 compatible = "x-powers,axp818", "x-powers,axp813";
216 interrupt-parent = <&r_intc>;
217 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
218 eldoin-supply = <®_dcdc1>;
219 swin-supply = <®_dcdc1>;
220 x-powers,drive-vbus-en;
224 compatible = "x-powers,ac100";
228 compatible = "x-powers,ac100-codec";
229 interrupt-parent = <&r_pio>;
230 interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
232 clock-output-names = "4M_adda";
236 compatible = "x-powers,ac100-rtc";
237 interrupt-parent = <&r_intc>;
238 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
239 clocks = <&ac100_codec>;
241 clock-output-names = "cko1_rtc",
248 #include "axp81x.dtsi"
254 &battery_power_supply {
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
262 regulator-name = "vcc-1v8";
267 regulator-min-microvolt = <1800000>;
268 regulator-max-microvolt = <1800000>;
269 regulator-name = "dram-pll";
274 regulator-min-microvolt = <3000000>;
275 regulator-max-microvolt = <3000000>;
276 regulator-name = "avcc";
281 * The schematics say this should be 3.3V, but the FEX file says
282 * it should be 3V. The latter makes sense, as the WiFi module's
283 * I/O is indirectly powered from DCDC1, through SW. It is rated
287 regulator-min-microvolt = <3000000>;
288 regulator-max-microvolt = <3000000>;
289 regulator-name = "vcc-3v";
294 regulator-min-microvolt = <700000>;
295 regulator-max-microvolt = <1100000>;
296 regulator-name = "vdd-cpua";
301 regulator-min-microvolt = <700000>;
302 regulator-max-microvolt = <1100000>;
303 regulator-name = "vdd-cpub";
307 regulator-min-microvolt = <700000>;
308 regulator-max-microvolt = <1100000>;
309 regulator-name = "vdd-gpu";
314 regulator-min-microvolt = <1500000>;
315 regulator-max-microvolt = <1500000>;
316 regulator-name = "vcc-dram";
321 regulator-min-microvolt = <900000>;
322 regulator-max-microvolt = <900000>;
323 regulator-name = "vdd-sys";
327 regulator-min-microvolt = <3300000>;
328 regulator-max-microvolt = <3300000>;
329 regulator-name = "dp-pwr";
334 regulator-min-microvolt = <2500000>;
335 regulator-max-microvolt = <2500000>;
336 regulator-name = "ephy-io";
341 * The PHY requires 20ms after all voltages are applied until core
342 * logic is ready and 30ms after the reset pin is de-asserted.
343 * Set a 100ms delay to account for PMIC ramp time and board traces.
345 regulator-enable-ramp-delay = <100000>;
346 regulator-min-microvolt = <3300000>;
347 regulator-max-microvolt = <3300000>;
348 regulator-name = "ephy";
352 regulator-name = "usb0-vbus";
357 regulator-min-microvolt = <1200000>;
358 regulator-max-microvolt = <1200000>;
359 regulator-name = "dp-bridge-1";
363 regulator-min-microvolt = <1200000>;
364 regulator-max-microvolt = <1200000>;
365 regulator-name = "dp-bridge-2";
369 /* TODO should be handled by USB PHY */
371 regulator-min-microvolt = <1080000>;
372 regulator-max-microvolt = <1320000>;
373 regulator-name = "vdd12-hsic";
378 * Despite the embedded CPUs core not being used in any way,
379 * this must remain on or the system will hang.
382 regulator-min-microvolt = <700000>;
383 regulator-max-microvolt = <1100000>;
384 regulator-name = "vdd-cpus";
388 regulator-name = "vcc-rtc";
392 regulator-name = "vcc-wifi-io";
400 pinctrl-names = "default";
401 pinctrl-0 = <&uart0_pb_pins>;
406 pinctrl-names = "default";
407 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
412 compatible = "brcm,bcm4330-bt";
413 clocks = <&ac100_rtc 1>;
415 vbat-supply = <®_dcdc1>;
416 vddio-supply = <®_sw>;
417 device-wakeup-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
418 host-wakeup-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
419 shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
424 usb1_vbus-supply = <®_usb1_vbus>;
425 usb2_vbus-supply = <®_usb2_vbus>;