1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2017 Antony Antony <antony@phenome.org>
3 // Copyright (C) 2016 ARM Ltd.
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 = "FriendlyARM NanoPi NEO Plus2";
14 compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
29 label = "nanopi:green:pwr";
30 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
35 label = "nanopi:red:status";
36 gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
40 reg_gmac_3v3: gmac-3v3 {
41 compatible = "regulator-fixed";
42 regulator-name = "gmac-3v3";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
45 startup-delay-us = <100000>;
47 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
51 compatible = "regulator-fixed";
52 regulator-name = "vcc3v3";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
57 vdd_cpux: gpio-regulator {
58 compatible = "regulator-gpio";
59 regulator-name = "vdd-cpux";
60 regulator-type = "voltage";
63 regulator-min-microvolt = <1100000>;
64 regulator-max-microvolt = <1300000>;
65 regulator-ramp-delay = <50>; /* 4ms */
66 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;
68 states = <1100000 0>, <1300000 1>;
71 wifi_pwrseq: wifi_pwrseq {
72 compatible = "mmc-pwrseq-simple";
73 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
74 post-power-on-delay-ms = <200>;
79 allwinner,audio-routing =
80 "Line Out", "LINEOUT",
95 pinctrl-names = "default";
96 pinctrl-0 = <&emac_rgmii_pins>;
97 phy-supply = <®_gmac_3v3>;
98 phy-handle = <&ext_rgmii_phy>;
104 ext_rgmii_phy: ethernet-phy@7 {
105 compatible = "ethernet-phy-ieee802.3-c22";
111 vmmc-supply = <®_vcc3v3>;
113 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
118 vmmc-supply = <®_vcc3v3>;
119 vqmmc-supply = <®_vcc3v3>;
120 mmc-pwrseq = <&wifi_pwrseq>;
127 compatible = "brcm,bcm4329-fmac";
132 pinctrl-names = "default";
133 pinctrl-0 = <&mmc2_8bit_pins>;
134 vmmc-supply = <®_vcc3v3>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&uart0_pa_pins>;
161 /* USB Type-A ports' VBUS is always on */