1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
5 #include "sun50i-h5.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
10 model = "FriendlyARM NanoPi NEO 2";
11 compatible = "friendlyarm,nanopi-neo2", "allwinner,sun50i-h5";
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-leds";
26 label = "nanopi:green:pwr";
27 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
32 label = "nanopi:blue:status";
33 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
37 reg_gmac_3v3: gmac-3v3 {
38 compatible = "regulator-fixed";
39 regulator-name = "gmac-3v3";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 startup-delay-us = <100000>;
44 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
48 compatible = "regulator-fixed";
49 regulator-name = "vcc3v3";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
54 reg_usb0_vbus: usb0-vbus {
55 compatible = "regulator-fixed";
56 regulator-name = "usb0-vbus";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
60 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
74 pinctrl-names = "default";
75 pinctrl-0 = <&emac_rgmii_pins>;
76 phy-supply = <®_gmac_3v3>;
77 phy-handle = <&ext_rgmii_phy>;
83 ext_rgmii_phy: ethernet-phy@7 {
84 compatible = "ethernet-phy-ieee802.3-c22";
90 vmmc-supply = <®_vcc3v3>;
92 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
105 pinctrl-names = "default";
106 pinctrl-0 = <&uart0_pa_pins>;
116 /* USB Type-A port's VBUS is always on */
117 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
118 usb0_vbus-supply = <®_usb0_vbus>;