1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2016 ARM Ltd.
5 #include "sun50i-h5.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/pinctrl/sun4i-a10.h>
12 model = "Xunlong Orange Pi PC 2";
13 compatible = "xunlong,orangepi-pc2", "allwinner,sun50i-h5";
16 compatible = "regulator-fixed";
17 regulator-name = "vcc3v3";
18 regulator-min-microvolt = <3300000>;
19 regulator-max-microvolt = <3300000>;
28 stdout-path = "serial0:115200n8";
32 compatible = "hdmi-connector";
36 hdmi_con_in: endpoint {
37 remote-endpoint = <&hdmi_out_con>;
43 compatible = "gpio-leds";
46 label = "orangepi:green:pwr";
47 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
52 label = "orangepi:red:status";
53 gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
58 compatible = "gpio-keys";
63 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
67 reg_gmac_3v3: gmac-3v3 {
68 compatible = "regulator-fixed";
69 regulator-name = "gmac-3v3";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
72 startup-delay-us = <100000>;
74 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
77 reg_usb0_vbus: usb0-vbus {
78 compatible = "regulator-fixed";
79 regulator-name = "usb0-vbus";
80 regulator-min-microvolt = <5000000>;
81 regulator-max-microvolt = <5000000>;
83 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
89 allwinner,audio-routing =
90 "Line Out", "LINEOUT",
117 pinctrl-names = "default";
118 pinctrl-0 = <&emac_rgmii_pins>;
119 phy-supply = <®_gmac_3v3>;
120 phy-handle = <&ext_rgmii_phy>;
126 ext_rgmii_phy: ethernet-phy@1 {
127 compatible = "ethernet-phy-ieee802.3-c22";
137 hdmi_out_con: endpoint {
138 remote-endpoint = <&hdmi_con_in>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&r_ir_rx_pin>;
149 vmmc-supply = <®_vcc3v3>;
151 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
175 #address-cells = <1>;
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <40000000>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&uart0_pa_pins>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&uart1_pins>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&uart2_pins>;
207 /* USB Type-A ports' VBUS is always on */
208 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
209 usb0_vbus-supply = <®_usb0_vbus>;