1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2016 ARM Ltd.
3 // Copyright (C) 2018 Hauke Mehrtens <hauke@hauke-m.de>
6 #include "sun50i-h5.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/pinctrl/sun4i-a10.h>
13 model = "Xunlong Orange Pi Zero Plus";
14 compatible = "xunlong,orangepi-zero-plus", "allwinner,sun50i-h5";
17 compatible = "regulator-fixed";
18 regulator-name = "vcc3v3";
19 regulator-min-microvolt = <3300000>;
20 regulator-max-microvolt = <3300000>;
25 ethernet1 = &rtl8189ftv;
30 stdout-path = "serial0:115200n8";
34 compatible = "gpio-leds";
37 label = "orangepi:green:pwr";
38 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
43 label = "orangepi:red:status";
44 gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
48 reg_gmac_3v3: gmac-3v3 {
49 compatible = "regulator-fixed";
50 regulator-name = "gmac-3v3";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 startup-delay-us = <100000>;
55 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
68 pinctrl-names = "default";
69 pinctrl-0 = <&emac_rgmii_pins>;
70 phy-supply = <®_gmac_3v3>;
71 phy-handle = <&ext_rgmii_phy>;
77 ext_rgmii_phy: ethernet-phy@1 {
78 compatible = "ethernet-phy-ieee802.3-c22";
84 vmmc-supply = <®_vcc3v3>;
86 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
91 vmmc-supply = <®_vcc3v3>;
97 * Explicitly define the sdio device, so that we can add an ethernet
98 * alias for it (which e.g. makes u-boot set a mac-address).
100 rtl8189ftv: sdio_wifi@1 {
109 #address-cells = <1>;
111 compatible = "mxicy,mx25l1606e", "winbond,w25q128";
113 spi-max-frequency = <40000000>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&uart0_pa_pins>;
132 dr_mode = "peripheral";
137 /* USB Type-A ports' VBUS is always on */
138 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */