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 */
113 clock-names = "ext_clock";
130 pinctrl-names = "default";
131 pinctrl-0 = <&rgmii_pins>;
133 phy-handle = <&ext_rgmii_phy>;
134 phy-supply = <®_gmac_3v3>;
139 hvcc-supply = <®_dldo1>;
144 hdmi_out_con: endpoint {
145 remote-endpoint = <&hdmi_con_in>;
150 ext_rgmii_phy: ethernet-phy@1 {
151 compatible = "ethernet-phy-ieee802.3-c22";
157 pinctrl-names = "default";
158 pinctrl-0 = <&mmc0_pins>;
159 vmmc-supply = <®_dcdc1>;
160 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
167 pinctrl-names = "default";
168 pinctrl-0 = <&mmc1_pins>;
169 vmmc-supply = <®_dldo2>;
170 vqmmc-supply = <®_dldo4>;
171 mmc-pwrseq = <&wifi_pwrseq>;
178 compatible = "brcm,bcm4329-fmac";
179 interrupt-parent = <&r_pio>;
180 interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
181 interrupt-names = "host-wake";
197 compatible = "x-powers,axp803";
199 interrupt-parent = <&r_intc>;
200 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
201 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
205 #include "axp803.dtsi"
211 &battery_power_supply {
216 regulator-min-microvolt = <2800000>;
217 regulator-max-microvolt = <2800000>;
218 regulator-name = "afvcc-csi";
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <3300000>;
225 regulator-name = "vcc-pl";
230 regulator-min-microvolt = <3000000>;
231 regulator-max-microvolt = <3000000>;
232 regulator-name = "vcc-pll-avcc";
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
239 regulator-name = "vcc-3v3";
244 regulator-min-microvolt = <1040000>;
245 regulator-max-microvolt = <1300000>;
246 regulator-name = "vdd-cpux";
249 /* DCDC3 is polyphased with DCDC2 */
253 regulator-min-microvolt = <1500000>;
254 regulator-max-microvolt = <1500000>;
255 regulator-name = "vcc-dram";
260 regulator-min-microvolt = <1100000>;
261 regulator-max-microvolt = <1100000>;
262 regulator-name = "vdd-sys";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
268 regulator-name = "vcc-hdmi-dsi";
272 regulator-min-microvolt = <3300000>;
273 regulator-max-microvolt = <3300000>;
274 regulator-name = "vcc-wifi";
278 regulator-min-microvolt = <3300000>;
279 regulator-max-microvolt = <3300000>;
280 regulator-name = "avdd-csi";
284 regulator-min-microvolt = <3300000>;
285 regulator-max-microvolt = <3300000>;
286 regulator-name = "vcc-wifi-io";
290 regulator-name = "usb0-vbus";
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
297 regulator-name = "cpvdd";
301 regulator-min-microvolt = <1500000>;
302 regulator-max-microvolt = <1800000>;
303 regulator-name = "dvdd-csi";
307 regulator-min-microvolt = <1200000>;
308 regulator-max-microvolt = <1200000>;
309 regulator-name = "vcc-1v2-hsic";
313 * The A64 chip cannot work without this regulator off, although
314 * it seems to be only driving the AR100 core.
315 * Maybe we don't still know well about CPUs domain.
319 regulator-min-microvolt = <1100000>;
320 regulator-max-microvolt = <1100000>;
321 regulator-name = "vdd-cpus";
325 regulator-name = "vcc-rtc";
329 vcc-hdmi-supply = <®_dldo1>;
336 compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
338 spi-max-frequency = <80000000>;
344 /* On debug connector */
346 pinctrl-names = "default";
347 pinctrl-0 = <&uart0_pb_pins>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
359 compatible = "brcm,bcm43438-bt";
360 max-speed = <1500000>;
363 vbat-supply = <®_dldo2>;
364 vddio-supply = <®_dldo4>;
365 device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
366 host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
367 shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
371 /* On Pi-2 connector, RTS/CTS optional */
373 pinctrl-names = "default";
374 pinctrl-0 = <&uart2_pins>;
378 /* On Pi-2 connector, RTS/CTS optional */
380 pinctrl-names = "default";
381 pinctrl-0 = <&uart3_pins>;
385 /* On Pi-2 connector (labeled for SPI1), RTS/CTS optional */
387 pinctrl-names = "default";
388 pinctrl-0 = <&uart4_pins>;
398 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
399 usb0_vbus-supply = <®_drivevbus>;
400 usb1_vbus-supply = <®_usb1_vbus>;