2 * Copyright (C) 2016 ARM Ltd.
3 * Copyright (C) 2018 Hauke Mehrtens <hauke@hauke-m.de>
5 * SPDX-License-Identifier: (GPL-2.0+ OR X11)
9 #include "sun50i-h5.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/pinctrl/sun4i-a10.h>
16 model = "Xunlong Orange Pi Zero Plus";
17 compatible = "xunlong,orangepi-zero-plus", "allwinner,sun50i-h5";
20 compatible = "regulator-fixed";
21 regulator-name = "vcc3v3";
22 regulator-min-microvolt = <3300000>;
23 regulator-max-microvolt = <3300000>;
28 ethernet1 = &rtl8189ftv;
33 stdout-path = "serial0:115200n8";
37 compatible = "gpio-leds";
40 label = "orangepi:green:pwr";
41 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
46 label = "orangepi:red:status";
47 gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
51 reg_gmac_3v3: gmac-3v3 {
52 compatible = "regulator-fixed";
53 regulator-name = "gmac-3v3";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
56 startup-delay-us = <100000>;
58 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
71 pinctrl-names = "default";
72 pinctrl-0 = <&emac_rgmii_pins>;
73 phy-supply = <®_gmac_3v3>;
74 phy-handle = <&ext_rgmii_phy>;
80 ext_rgmii_phy: ethernet-phy@1 {
81 compatible = "ethernet-phy-ieee802.3-c22";
87 vmmc-supply = <®_vcc3v3>;
89 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
94 vmmc-supply = <®_vcc3v3>;
100 * Explicitly define the sdio device, so that we can add an ethernet
101 * alias for it (which e.g. makes u-boot set a mac-address).
103 rtl8189ftv: sdio_wifi@1 {
112 #address-cells = <1>;
114 compatible = "mxicy,mx25l1606e", "winbond,w25q128";
116 spi-max-frequency = <40000000>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&uart0_pa_pins>;
135 dr_mode = "peripheral";
140 /* USB Type-A ports' VBUS is always on */
141 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */