2 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.xyz>
4 * Based on sun50i-h5-orangepi-pc2.dts, which is:
5 * Copyright (C) 2016 ARM Ltd.
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
47 #include "sun50i-h5.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/input/input.h>
53 model = "Xunlong Orange Pi Prime";
54 compatible = "xunlong,orangepi-prime", "allwinner,sun50i-h5";
62 stdout-path = "serial0:115200n8";
66 compatible = "hdmi-connector";
70 hdmi_con_in: endpoint {
71 remote-endpoint = <&hdmi_out_con>;
77 compatible = "gpio-leds";
80 label = "orangepi:green:pwr";
81 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
86 label = "orangepi:red:status";
87 gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-keys";
97 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
101 reg_gmac_3v3: gmac-3v3 {
102 compatible = "regulator-fixed";
103 regulator-name = "gmac-3v3";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106 startup-delay-us = <100000>;
108 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
112 compatible = "regulator-fixed";
113 regulator-name = "vcc3v3";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
118 reg_usb0_vbus: usb0-vbus {
119 compatible = "regulator-fixed";
120 regulator-name = "usb0-vbus";
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
124 gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
128 wifi_pwrseq: wifi_pwrseq {
129 compatible = "mmc-pwrseq-simple";
130 reset-gpios = <&pio 2 14 GPIO_ACTIVE_LOW>; /* PC14 */
135 allwinner,audio-routing =
136 "Line Out", "LINEOUT",
163 pinctrl-names = "default";
164 pinctrl-0 = <&emac_rgmii_pins>;
165 phy-supply = <®_gmac_3v3>;
166 phy-handle = <&ext_rgmii_phy>;
172 ext_rgmii_phy: ethernet-phy@1 {
173 compatible = "ethernet-phy-ieee802.3-c22";
183 hdmi_out_con: endpoint {
184 remote-endpoint = <&hdmi_con_in>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&r_ir_rx_pin>;
195 vmmc-supply = <®_vcc3v3>;
197 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
202 vmmc-supply = <®_vcc3v3>;
203 mmc-pwrseq = <&wifi_pwrseq>;
226 pinctrl-names = "default";
227 pinctrl-0 = <&uart0_pa_pins>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&uart1_pins>;
238 pinctrl-names = "default";
239 pinctrl-0 = <&uart2_pins>;
249 /* USB Type-A ports' VBUS is always on */
250 usb0_id_det-gpios = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
251 usb0_vbus-supply = <®_usb0_vbus>;