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";
22 stdout-path = "serial0:115200n8";
26 compatible = "hdmi-connector";
27 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
31 hdmi_con_in: endpoint {
32 remote-endpoint = <&hdmi_out_con>;
38 compatible = "gpio-leds";
41 label = "orangepi:red:power";
42 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
47 label = "orangepi:green:status";
48 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
53 /* board wide 5V supply directly from the DC jack */
54 compatible = "regulator-fixed";
55 regulator-name = "vcc-5v";
56 regulator-min-microvolt = <5000000>;
57 regulator-max-microvolt = <5000000>;
61 reg_vcc33_wifi: vcc33-wifi {
62 /* Always on 3.3V regulator for WiFi and BT */
63 compatible = "regulator-fixed";
64 regulator-name = "vcc33-wifi";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
68 vin-supply = <®_vcc5v>;
71 reg_vcc_wifi_io: vcc-wifi-io {
72 /* Always on 1.8V/300mA regulator for WiFi and BT IO */
73 compatible = "regulator-fixed";
74 regulator-name = "vcc-wifi-io";
75 regulator-min-microvolt = <1800000>;
76 regulator-max-microvolt = <1800000>;
78 vin-supply = <®_vcc33_wifi>;
81 wifi_pwrseq: wifi-pwrseq {
82 compatible = "mmc-pwrseq-simple";
84 clock-names = "ext_clock";
85 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
86 post-power-on-delay-ms = <200>;
91 cpu-supply = <®_dcdca>;
111 mali-supply = <®_dcdcc>;
120 hdmi_out_con: endpoint {
121 remote-endpoint = <&hdmi_con_in>;
126 vmmc-supply = <®_cldo1>;
127 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
133 vmmc-supply = <®_vcc33_wifi>;
134 vqmmc-supply = <®_vcc_wifi_io>;
135 mmc-pwrseq = <&wifi_pwrseq>;
142 compatible = "brcm,bcm4329-fmac";
143 interrupt-parent = <&r_pio>;
144 interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */
145 interrupt-names = "host-wake";
158 vcc-pc-supply = <®_bldo2>;
159 vcc-pd-supply = <®_cldo1>;
160 vcc-pg-supply = <®_vcc_wifi_io>;
167 compatible = "x-powers,axp805", "x-powers,axp806";
169 interrupt-parent = <&r_intc>;
170 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
171 interrupt-controller;
172 #interrupt-cells = <1>;
173 x-powers,self-working-mode;
174 vina-supply = <®_vcc5v>;
175 vinb-supply = <®_vcc5v>;
176 vinc-supply = <®_vcc5v>;
177 vind-supply = <®_vcc5v>;
178 vine-supply = <®_vcc5v>;
179 aldoin-supply = <®_vcc5v>;
180 bldoin-supply = <®_vcc5v>;
181 cldoin-supply = <®_vcc5v>;
186 regulator-min-microvolt = <3300000>;
187 regulator-max-microvolt = <3300000>;
188 regulator-name = "vcc-pl-led-ir";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 regulator-name = "vcc33-audio-tv-ephy-mac";
197 /* ALDO3 is shorted to CLDO1 */
200 regulator-min-microvolt = <3300000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <1800000>;
209 regulator-name = "vcc18-dram-bias-pll";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <1800000>;
216 regulator-name = "vcc-efuse-pcie-hdmi-pc";
229 regulator-min-microvolt = <3300000>;
230 regulator-max-microvolt = <3300000>;
231 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
244 regulator-min-microvolt = <800000>;
245 regulator-max-microvolt = <1160000>;
246 regulator-name = "vdd-cpu";
250 regulator-enable-ramp-delay = <32000>;
251 regulator-min-microvolt = <810000>;
252 regulator-max-microvolt = <1080000>;
253 regulator-name = "vdd-gpu";
258 regulator-min-microvolt = <960000>;
259 regulator-max-microvolt = <960000>;
260 regulator-name = "vdd-sys";
265 regulator-min-microvolt = <1200000>;
266 regulator-max-microvolt = <1200000>;
267 regulator-name = "vcc-dram";
278 pinctrl-names = "default";
279 pinctrl-0 = <&uart0_ph_pins>;
283 /* There's the BT part of the AP6256 connected to that UART */
285 pinctrl-names = "default";
286 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
291 compatible = "brcm,bcm4345c5";
294 device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
295 host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
296 shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
297 max-speed = <1500000>;
303 * This board doesn't have a controllable VBUS even though it
304 * does have an ID pin. Using it as anything but a USB host is
312 usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
313 usb0_vbus-supply = <®_vcc5v>;
314 usb3_vbus-supply = <®_vcc5v>;