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 = "hdmi-connector";
68 hdmi_con_in: endpoint {
69 remote-endpoint = <&hdmi_out_con>;
75 compatible = "gpio-leds";
78 label = "cubietruck-plus:blue:usr";
79 gpios = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
83 label = "cubietruck-plus:orange:usr";
84 gpios = <&pio 3 26 GPIO_ACTIVE_HIGH>; /* PD26 */
88 label = "cubietruck-plus:white:usr";
89 gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>; /* PD27 */
93 label = "cubietruck-plus:green:usr";
94 gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
99 /* I2C is not connected */
100 compatible = "smsc,usb3503";
101 initial-mode = <1>; /* initialize in HUB mode */
102 disabled-ports = <1>;
103 intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
104 reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
105 connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
106 refclk-frequency = <19200000>;
109 reg_usb1_vbus: reg-usb1-vbus {
110 compatible = "regulator-fixed";
111 regulator-name = "usb1-vbus";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
116 gpio = <&pio 3 29 GPIO_ACTIVE_HIGH>; /* PD29 */
119 reg_usb2_vbus: reg-usb2-vbus {
120 compatible = "regulator-fixed";
121 regulator-name = "usb2-vbus";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
126 gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
130 compatible = "simple-audio-card";
131 simple-audio-card,name = "On-board SPDIF";
133 simple-audio-card,cpu {
134 sound-dai = <&spdif>;
137 simple-audio-card,codec {
138 sound-dai = <&spdif_out>;
142 spdif_out: spdif-out {
143 #sound-dai-cells = <0>;
144 compatible = "linux,spdif-dit";
147 wifi_pwrseq: wifi_pwrseq {
148 compatible = "mmc-pwrseq-simple";
149 clocks = <&ac100_rtc 1>;
150 clock-names = "ext_clock";
151 /* The WiFi low power clock must be 32768 Hz */
152 assigned-clocks = <&ac100_rtc 1>;
153 assigned-clock-rates = <32768>;
154 /* enables internal regulator and de-asserts reset */
155 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
160 cpu-supply = <®_dcdc2>;
164 cpu-supply = <®_dcdc3>;
172 /* GL830 USB-to-SATA bridge here */
177 /* USB3503 HSIC USB 2.0 hub here */
182 pinctrl-names = "default";
183 pinctrl-0 = <&emac_rgmii_pins>;
184 phy-supply = <®_dldo4>;
185 phy-handle = <&rgmii_phy>;
186 phy-mode = "rgmii-id";
195 hdmi_out_con: endpoint {
196 remote-endpoint = <&hdmi_con_in>;
201 rgmii_phy: ethernet-phy@1 {
202 compatible = "ethernet-phy-ieee802.3-c22";
208 pinctrl-names = "default";
209 pinctrl-0 = <&mmc0_pins>;
210 vmmc-supply = <®_dcdc1>;
212 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
217 vmmc-supply = <®_dcdc1>;
218 vqmmc-supply = <®_sw>;
219 mmc-pwrseq = <&wifi_pwrseq>;
226 pinctrl-names = "default";
227 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
228 vmmc-supply = <®_dcdc1>;
239 compatible = "x-powers,axp818", "x-powers,axp813";
241 interrupt-parent = <&r_intc>;
242 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
243 eldoin-supply = <®_dcdc1>;
244 swin-supply = <®_dcdc1>;
245 x-powers,drive-vbus-en;
249 compatible = "x-powers,ac100";
253 compatible = "x-powers,ac100-codec";
254 interrupt-parent = <&r_pio>;
255 interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
257 clock-output-names = "4M_adda";
261 compatible = "x-powers,ac100-rtc";
262 interrupt-parent = <&r_intc>;
263 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
264 clocks = <&ac100_codec>;
266 clock-output-names = "cko1_rtc",
273 #include "axp81x.dtsi"
279 &battery_power_supply {
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
287 regulator-name = "vcc-1v8";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 regulator-name = "dram-pll";
299 regulator-min-microvolt = <3000000>;
300 regulator-max-microvolt = <3000000>;
301 regulator-name = "avcc";
306 * The schematics say this should be 3.3V, but the FEX file says
307 * it should be 3V. The latter makes sense, as the WiFi module's
308 * I/O is indirectly powered from DCDC1, through SW. It is rated
312 regulator-min-microvolt = <3000000>;
313 regulator-max-microvolt = <3000000>;
314 regulator-name = "vcc-3v";
319 regulator-min-microvolt = <700000>;
320 regulator-max-microvolt = <1100000>;
321 regulator-name = "vdd-cpua";
326 regulator-min-microvolt = <700000>;
327 regulator-max-microvolt = <1100000>;
328 regulator-name = "vdd-cpub";
332 regulator-min-microvolt = <700000>;
333 regulator-max-microvolt = <1100000>;
334 regulator-name = "vdd-gpu";
339 regulator-min-microvolt = <1500000>;
340 regulator-max-microvolt = <1500000>;
341 regulator-name = "vcc-dram";
346 regulator-min-microvolt = <900000>;
347 regulator-max-microvolt = <900000>;
348 regulator-name = "vdd-sys";
352 regulator-min-microvolt = <3300000>;
353 regulator-max-microvolt = <3300000>;
354 regulator-name = "dp-pwr";
359 regulator-min-microvolt = <2500000>;
360 regulator-max-microvolt = <2500000>;
361 regulator-name = "ephy-io";
366 * The PHY requires 20ms after all voltages are applied until core
367 * logic is ready and 30ms after the reset pin is de-asserted.
368 * Set a 100ms delay to account for PMIC ramp time and board traces.
370 regulator-enable-ramp-delay = <100000>;
371 regulator-min-microvolt = <3300000>;
372 regulator-max-microvolt = <3300000>;
373 regulator-name = "ephy";
377 regulator-name = "usb0-vbus";
382 regulator-min-microvolt = <1200000>;
383 regulator-max-microvolt = <1200000>;
384 regulator-name = "dp-bridge-1";
388 regulator-min-microvolt = <1200000>;
389 regulator-max-microvolt = <1200000>;
390 regulator-name = "dp-bridge-2";
394 /* TODO should be handled by USB PHY */
396 regulator-min-microvolt = <1080000>;
397 regulator-max-microvolt = <1320000>;
398 regulator-name = "vdd12-hsic";
403 * Despite the embedded CPUs core not being used in any way,
404 * this must remain on or the system will hang.
407 regulator-min-microvolt = <700000>;
408 regulator-max-microvolt = <1100000>;
409 regulator-name = "vdd-cpus";
413 regulator-name = "vcc-rtc";
417 regulator-name = "vcc-wifi-io";
425 pinctrl-names = "default";
426 pinctrl-0 = <&uart0_pb_pins>;
431 pinctrl-names = "default";
432 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
437 compatible = "brcm,bcm4330-bt";
438 clocks = <&ac100_rtc 1>;
440 vbat-supply = <®_dcdc1>;
441 vddio-supply = <®_sw>;
442 device-wakeup-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
443 host-wakeup-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
444 shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
458 usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
459 usb0_vbus_power-supply = <&usb_power_supply>;
460 usb0_vbus-supply = <®_drivevbus>;
461 usb1_vbus-supply = <®_usb1_vbus>;
462 usb2_vbus-supply = <®_usb2_vbus>;