1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.xyz>
3 // Based on sun50i-h5-orangepi-pc2.dts, which is:
4 // Copyright (C) 2016 ARM Ltd.
7 #include "sun50i-h5.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 model = "Xunlong Orange Pi Prime";
14 compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
22 stdout-path = "serial0:115200n8";
26 compatible = "hdmi-connector";
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
37 compatible = "gpio-leds";
40 label = "orangepi:green:pwr";
41 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
46 label = "orangepi:red:status";
47 gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
52 compatible = "gpio-keys";
57 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
61 reg_gmac_3v3: gmac-3v3 {
62 compatible = "regulator-fixed";
63 regulator-name = "gmac-3v3";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 startup-delay-us = <100000>;
68 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
72 compatible = "regulator-fixed";
73 regulator-name = "vcc3v3";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
78 reg_usb0_vbus: usb0-vbus {
79 compatible = "regulator-fixed";
80 regulator-name = "usb0-vbus";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
84 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
88 wifi_pwrseq: wifi_pwrseq {
89 compatible = "mmc-pwrseq-simple";
90 reset-gpios = <&pio 2 14 GPIO_ACTIVE_LOW>; /* PC14 */
95 allwinner,audio-routing =
96 "Line Out", "LINEOUT",
123 pinctrl-names = "default";
124 pinctrl-0 = <&emac_rgmii_pins>;
125 phy-supply = <®_gmac_3v3>;
126 phy-handle = <&ext_rgmii_phy>;
127 phy-mode = "rgmii-id";
132 ext_rgmii_phy: ethernet-phy@1 {
133 compatible = "ethernet-phy-ieee802.3-c22";
143 hdmi_out_con: endpoint {
144 remote-endpoint = <&hdmi_con_in>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&r_ir_rx_pin>;
155 vmmc-supply = <®_vcc3v3>;
157 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
162 vmmc-supply = <®_vcc3v3>;
163 mmc-pwrseq = <&wifi_pwrseq>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&uart0_pa_pins>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&uart1_pins>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&uart2_pins>;
209 /* USB Type-A ports' VBUS is always on */
210 usb0_id_det-gpios = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
211 usb0_vbus-supply = <®_usb0_vbus>;