1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
3 * Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
8 #include "sun50i-h6.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
14 compatible = "xunlong,orangepi-3", "allwinner,sun50i-h6";
21 stdout-path = "serial0:115200n8";
25 compatible = "hdmi-connector";
26 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
37 compatible = "gpio-leds";
40 label = "orangepi:red:power";
41 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
46 label = "orangepi:green:status";
47 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
52 /* board wide 5V supply directly from the DC jack */
53 compatible = "regulator-fixed";
54 regulator-name = "vcc-5v";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
60 reg_vcc33_wifi: vcc33-wifi {
61 /* Always on 3.3V regulator for WiFi and BT */
62 compatible = "regulator-fixed";
63 regulator-name = "vcc33-wifi";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
67 vin-supply = <®_vcc5v>;
70 reg_vcc_wifi_io: vcc-wifi-io {
71 /* Always on 1.8V/300mA regulator for WiFi and BT IO */
72 compatible = "regulator-fixed";
73 regulator-name = "vcc-wifi-io";
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <1800000>;
77 vin-supply = <®_vcc33_wifi>;
80 wifi_pwrseq: wifi-pwrseq {
81 compatible = "mmc-pwrseq-simple";
83 clock-names = "ext_clock";
84 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
85 post-power-on-delay-ms = <200>;
90 cpu-supply = <®_dcdca>;
110 hdmi_out_con: endpoint {
111 remote-endpoint = <&hdmi_con_in>;
116 vmmc-supply = <®_cldo1>;
117 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
123 vmmc-supply = <®_vcc33_wifi>;
124 vqmmc-supply = <®_vcc_wifi_io>;
125 mmc-pwrseq = <&wifi_pwrseq>;
132 compatible = "brcm,bcm4329-fmac";
133 interrupt-parent = <&r_pio>;
134 interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */
135 interrupt-names = "host-wake";
148 vcc-pc-supply = <®_bldo2>;
149 vcc-pd-supply = <®_cldo1>;
150 vcc-pg-supply = <®_vcc_wifi_io>;
157 compatible = "x-powers,axp805", "x-powers,axp806";
159 interrupt-parent = <&r_intc>;
160 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
161 interrupt-controller;
162 #interrupt-cells = <1>;
163 x-powers,self-working-mode;
164 vina-supply = <®_vcc5v>;
165 vinb-supply = <®_vcc5v>;
166 vinc-supply = <®_vcc5v>;
167 vind-supply = <®_vcc5v>;
168 vine-supply = <®_vcc5v>;
169 aldoin-supply = <®_vcc5v>;
170 bldoin-supply = <®_vcc5v>;
171 cldoin-supply = <®_vcc5v>;
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 regulator-name = "vcc-pl-led-ir";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184 regulator-name = "vcc33-audio-tv-ephy-mac";
187 /* ALDO3 is shorted to CLDO1 */
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
197 regulator-min-microvolt = <1800000>;
198 regulator-max-microvolt = <1800000>;
199 regulator-name = "vcc18-dram-bias-pll";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <1800000>;
206 regulator-name = "vcc-efuse-pcie-hdmi-pc";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
221 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
234 regulator-min-microvolt = <800000>;
235 regulator-max-microvolt = <1160000>;
236 regulator-name = "vdd-cpu";
240 regulator-min-microvolt = <810000>;
241 regulator-max-microvolt = <1080000>;
242 regulator-name = "vdd-gpu";
247 regulator-min-microvolt = <960000>;
248 regulator-max-microvolt = <960000>;
249 regulator-name = "vdd-sys";
254 regulator-min-microvolt = <1200000>;
255 regulator-max-microvolt = <1200000>;
256 regulator-name = "vcc-dram";
267 pinctrl-names = "default";
268 pinctrl-0 = <&uart0_ph_pins>;
274 * This board doesn't have a controllable VBUS even though it
275 * does have an ID pin. Using it as anything but a USB host is
283 usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
284 usb0_vbus-supply = <®_vcc5v>;
285 usb3_vbus-supply = <®_vcc5v>;