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>;
68 reg_gmac_3v3: gmac-3v3 {
69 compatible = "regulator-fixed";
70 regulator-name = "gmac-3v3";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 startup-delay-us = <100000>;
75 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
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 */
90 allwinner,audio-routing =
91 "Line Out", "LINEOUT",
98 cpu-supply = <®_vdd_cpux>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&emac_rgmii_pins>;
124 phy-supply = <®_gmac_3v3>;
125 phy-handle = <&ext_rgmii_phy>;
126 phy-mode = "rgmii-id";
131 ext_rgmii_phy: ethernet-phy@1 {
132 compatible = "ethernet-phy-ieee802.3-c22";
142 hdmi_out_con: endpoint {
143 remote-endpoint = <&hdmi_con_in>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&r_ir_rx_pin>;
154 vmmc-supply = <®_vcc3v3>;
156 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
179 reg_vdd_cpux: regulator@65 {
180 compatible = "silergy,sy8106a";
182 regulator-name = "vdd-cpux";
183 silergy,fixed-microvolt = <1100000>;
184 regulator-min-microvolt = <1000000>;
185 regulator-max-microvolt = <1400000>;
186 regulator-ramp-delay = <200>;
196 #address-cells = <1>;
198 compatible = "jedec,spi-nor";
200 spi-max-frequency = <40000000>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&uart0_pa_pins>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&uart1_pins>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&uart2_pins>;
228 /* USB Type-A ports' VBUS is always on */
229 usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
230 usb0_vbus-supply = <®_usb0_vbus>;