2 * Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
3 * Copyright (C) 2017-2018 Samuel Holland <samuel@sholland.org>
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
10 * a) This library 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.
15 * This library 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.
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
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
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.
46 #include "sun50i-a64.dtsi"
48 #include <dt-bindings/gpio/gpio.h>
51 model = "OrangePi Win/Win Plus";
52 compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64";
64 stdout-path = "serial0:115200n8";
68 compatible = "hdmi-connector";
72 hdmi_con_in: endpoint {
73 remote-endpoint = <&hdmi_out_con>;
79 compatible = "gpio-leds";
82 label = "orangepi:green:status";
83 gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
87 reg_gmac_3v3: gmac-3v3 {
88 compatible = "regulator-fixed";
89 regulator-name = "gmac-3v3";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
94 gpio = <&pio 3 14 GPIO_ACTIVE_HIGH>; /* PD14 */
98 reg_usb1_vbus: 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 7 GPIO_ACTIVE_HIGH>; /* PD7 */
109 wifi_pwrseq: wifi_pwrseq {
110 compatible = "mmc-pwrseq-simple";
111 reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */
128 pinctrl-names = "default";
129 pinctrl-0 = <&rgmii_pins>;
131 phy-handle = <&ext_rgmii_phy>;
132 phy-supply = <®_gmac_3v3>;
137 hvcc-supply = <®_dldo1>;
142 hdmi_out_con: endpoint {
143 remote-endpoint = <&hdmi_con_in>;
148 ext_rgmii_phy: ethernet-phy@1 {
149 compatible = "ethernet-phy-ieee802.3-c22";
155 pinctrl-names = "default";
156 pinctrl-0 = <&mmc0_pins>;
157 vmmc-supply = <®_dcdc1>;
158 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
165 pinctrl-names = "default";
166 pinctrl-0 = <&mmc1_pins>;
167 vmmc-supply = <®_dldo2>;
168 vqmmc-supply = <®_dldo4>;
169 mmc-pwrseq = <&wifi_pwrseq>;
187 compatible = "x-powers,axp803";
189 interrupt-parent = <&r_intc>;
190 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
191 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
195 #include "axp803.dtsi"
201 &battery_power_supply {
206 regulator-min-microvolt = <2800000>;
207 regulator-max-microvolt = <2800000>;
208 regulator-name = "afvcc-csi";
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-name = "vcc-pl";
220 regulator-min-microvolt = <3000000>;
221 regulator-max-microvolt = <3000000>;
222 regulator-name = "vcc-pll-avcc";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
229 regulator-name = "vcc-3v3";
234 regulator-min-microvolt = <1040000>;
235 regulator-max-microvolt = <1300000>;
236 regulator-name = "vdd-cpux";
239 /* DCDC3 is polyphased with DCDC2 */
243 regulator-min-microvolt = <1500000>;
244 regulator-max-microvolt = <1500000>;
245 regulator-name = "vcc-dram";
250 regulator-min-microvolt = <1100000>;
251 regulator-max-microvolt = <1100000>;
252 regulator-name = "vdd-sys";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-hdmi-dsi";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-name = "vcc-wifi";
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
270 regulator-name = "avdd-csi";
274 regulator-min-microvolt = <3300000>;
275 regulator-max-microvolt = <3300000>;
276 regulator-name = "vcc-wifi-io";
280 regulator-name = "usb0-vbus";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
287 regulator-name = "cpvdd";
291 regulator-min-microvolt = <1500000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-name = "dvdd-csi";
297 regulator-min-microvolt = <1200000>;
298 regulator-max-microvolt = <1200000>;
299 regulator-name = "vcc-1v2-hsic";
303 * The A64 chip cannot work without this regulator off, although
304 * it seems to be only driving the AR100 core.
305 * Maybe we don't still know well about CPUs domain.
309 regulator-min-microvolt = <1100000>;
310 regulator-max-microvolt = <1100000>;
311 regulator-name = "vdd-cpus";
315 regulator-name = "vcc-rtc";
319 vcc-hdmi-supply = <®_dldo1>;
326 compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
328 spi-max-frequency = <80000000>;
334 /* On debug connector */
336 pinctrl-names = "default";
337 pinctrl-0 = <&uart0_pb_pins>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
348 /* On Pi-2 connector, RTS/CTS optional */
350 pinctrl-names = "default";
351 pinctrl-0 = <&uart2_pins>;
355 /* On Pi-2 connector, RTS/CTS optional */
357 pinctrl-names = "default";
358 pinctrl-0 = <&uart3_pins>;
362 /* On Pi-2 connector (labeled for SPI1), RTS/CTS optional */
364 pinctrl-names = "default";
365 pinctrl-0 = <&uart4_pins>;
375 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
376 usb0_vbus-supply = <®_drivevbus>;
377 usb1_vbus-supply = <®_usb1_vbus>;