1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
6 #include "sun50i-h6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
12 compatible = "xunlong,orangepi-3", "allwinner,sun50i-h6";
20 stdout-path = "serial0:115200n8";
24 compatible = "hdmi-connector";
25 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
29 hdmi_con_in: endpoint {
30 remote-endpoint = <&hdmi_out_con>;
36 compatible = "gpio-leds";
39 label = "orangepi:red:power";
40 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
45 label = "orangepi:green:status";
46 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
51 /* board wide 5V supply directly from the DC jack */
52 compatible = "regulator-fixed";
53 regulator-name = "vcc-5v";
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
59 reg_vcc33_wifi: vcc33-wifi {
60 /* Always on 3.3V regulator for WiFi and BT */
61 compatible = "regulator-fixed";
62 regulator-name = "vcc33-wifi";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
66 vin-supply = <®_vcc5v>;
69 reg_vcc_wifi_io: vcc-wifi-io {
70 /* Always on 1.8V/300mA regulator for WiFi and BT IO */
71 compatible = "regulator-fixed";
72 regulator-name = "vcc-wifi-io";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
76 vin-supply = <®_vcc33_wifi>;
79 wifi_pwrseq: wifi-pwrseq {
80 compatible = "mmc-pwrseq-simple";
82 clock-names = "ext_clock";
83 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
84 post-power-on-delay-ms = <200>;
89 cpu-supply = <®_dcdca>;
109 mali-supply = <®_dcdcc>;
118 hdmi_out_con: endpoint {
119 remote-endpoint = <&hdmi_con_in>;
124 vmmc-supply = <®_cldo1>;
125 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
131 vmmc-supply = <®_vcc33_wifi>;
132 vqmmc-supply = <®_vcc_wifi_io>;
133 mmc-pwrseq = <&wifi_pwrseq>;
140 compatible = "brcm,bcm4329-fmac";
141 interrupt-parent = <&r_pio>;
142 interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */
143 interrupt-names = "host-wake";
156 vcc-pc-supply = <®_bldo2>;
157 vcc-pd-supply = <®_cldo1>;
158 vcc-pg-supply = <®_vcc_wifi_io>;
165 compatible = "x-powers,axp805", "x-powers,axp806";
167 interrupt-parent = <&r_intc>;
168 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
169 interrupt-controller;
170 #interrupt-cells = <1>;
171 x-powers,self-working-mode;
172 vina-supply = <®_vcc5v>;
173 vinb-supply = <®_vcc5v>;
174 vinc-supply = <®_vcc5v>;
175 vind-supply = <®_vcc5v>;
176 vine-supply = <®_vcc5v>;
177 aldoin-supply = <®_vcc5v>;
178 bldoin-supply = <®_vcc5v>;
179 cldoin-supply = <®_vcc5v>;
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
186 regulator-name = "vcc-pl-led-ir";
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-name = "vcc33-audio-tv-ephy-mac";
195 /* ALDO3 is shorted to CLDO1 */
198 regulator-min-microvolt = <3300000>;
199 regulator-max-microvolt = <3300000>;
200 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <1800000>;
207 regulator-name = "vcc18-dram-bias-pll";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
214 regulator-name = "vcc-efuse-pcie-hdmi-pc";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
229 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
242 regulator-min-microvolt = <800000>;
243 regulator-max-microvolt = <1160000>;
244 regulator-name = "vdd-cpu";
248 regulator-enable-ramp-delay = <32000>;
249 regulator-min-microvolt = <810000>;
250 regulator-max-microvolt = <1080000>;
251 regulator-name = "vdd-gpu";
256 regulator-min-microvolt = <960000>;
257 regulator-max-microvolt = <960000>;
258 regulator-name = "vdd-sys";
263 regulator-min-microvolt = <1200000>;
264 regulator-max-microvolt = <1200000>;
265 regulator-name = "vcc-dram";
280 pinctrl-names = "default";
281 pinctrl-0 = <&uart0_ph_pins>;
285 /* There's the BT part of the AP6256 connected to that UART */
287 pinctrl-names = "default";
288 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
293 compatible = "brcm,bcm4345c5";
296 device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
297 host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
298 shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
299 max-speed = <1500000>;
305 * This board doesn't have a controllable VBUS even though it
306 * does have an ID pin. Using it as anything but a USB host is
314 usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
315 usb0_vbus-supply = <®_vcc5v>;
316 usb3_vbus-supply = <®_vcc5v>;