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>;
35 ext_osc32k: ext_osc32k_clk {
37 compatible = "fixed-clock";
38 clock-frequency = <32768>;
39 clock-output-names = "ext_osc32k";
43 compatible = "gpio-leds";
46 label = "orangepi:red:power";
47 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
52 label = "orangepi:green:status";
53 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
58 /* board wide 5V supply directly from the DC jack */
59 compatible = "regulator-fixed";
60 regulator-name = "vcc-5v";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
66 reg_vcc33_wifi: vcc33-wifi {
67 /* Always on 3.3V regulator for WiFi and BT */
68 compatible = "regulator-fixed";
69 regulator-name = "vcc33-wifi";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
73 vin-supply = <®_vcc5v>;
76 reg_vcc_wifi_io: vcc-wifi-io {
77 /* Always on 1.8V/300mA regulator for WiFi and BT IO */
78 compatible = "regulator-fixed";
79 regulator-name = "vcc-wifi-io";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <1800000>;
83 vin-supply = <®_vcc33_wifi>;
86 wifi_pwrseq: wifi-pwrseq {
87 compatible = "mmc-pwrseq-simple";
89 clock-names = "ext_clock";
90 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
91 post-power-on-delay-ms = <200>;
96 cpu-supply = <®_dcdca>;
116 mali-supply = <®_dcdcc>;
125 hdmi_out_con: endpoint {
126 remote-endpoint = <&hdmi_con_in>;
131 vmmc-supply = <®_cldo1>;
132 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
138 vmmc-supply = <®_vcc33_wifi>;
139 vqmmc-supply = <®_vcc_wifi_io>;
140 mmc-pwrseq = <&wifi_pwrseq>;
147 compatible = "brcm,bcm4329-fmac";
148 interrupt-parent = <&r_pio>;
149 interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */
150 interrupt-names = "host-wake";
155 vmmc-supply = <®_cldo1>;
156 vqmmc-supply = <®_bldo2>;
172 vcc-pc-supply = <®_bldo2>;
173 vcc-pd-supply = <®_cldo1>;
174 vcc-pg-supply = <®_vcc_wifi_io>;
181 compatible = "x-powers,axp805", "x-powers,axp806";
183 interrupt-parent = <&r_intc>;
184 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
185 interrupt-controller;
186 #interrupt-cells = <1>;
187 x-powers,self-working-mode;
188 vina-supply = <®_vcc5v>;
189 vinb-supply = <®_vcc5v>;
190 vinc-supply = <®_vcc5v>;
191 vind-supply = <®_vcc5v>;
192 vine-supply = <®_vcc5v>;
193 aldoin-supply = <®_vcc5v>;
194 bldoin-supply = <®_vcc5v>;
195 cldoin-supply = <®_vcc5v>;
200 regulator-min-microvolt = <3300000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc-pl-led-ir";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-name = "vcc33-audio-tv-ephy-mac";
211 /* ALDO3 is shorted to CLDO1 */
214 regulator-min-microvolt = <3300000>;
215 regulator-max-microvolt = <3300000>;
216 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <1800000>;
223 regulator-name = "vcc18-dram-bias-pll";
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <1800000>;
230 regulator-name = "vcc-efuse-pcie-hdmi-pc";
243 regulator-min-microvolt = <3300000>;
244 regulator-max-microvolt = <3300000>;
245 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
258 regulator-min-microvolt = <800000>;
259 regulator-max-microvolt = <1160000>;
260 regulator-name = "vdd-cpu";
264 regulator-enable-ramp-delay = <32000>;
265 regulator-min-microvolt = <810000>;
266 regulator-max-microvolt = <1080000>;
267 regulator-name = "vdd-gpu";
272 regulator-min-microvolt = <960000>;
273 regulator-max-microvolt = <960000>;
274 regulator-name = "vdd-sys";
279 regulator-min-microvolt = <1200000>;
280 regulator-max-microvolt = <1200000>;
281 regulator-name = "vcc-dram";
296 clocks = <&ext_osc32k>;
300 pinctrl-names = "default";
301 pinctrl-0 = <&uart0_ph_pins>;
305 /* There's the BT part of the AP6256 connected to that UART */
307 pinctrl-names = "default";
308 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
313 compatible = "brcm,bcm4345c5";
316 device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
317 host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
318 shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
319 max-speed = <1500000>;
325 * This board doesn't have a controllable VBUS even though it
326 * does have an ID pin. Using it as anything but a USB host is
334 usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
335 usb0_vbus-supply = <®_vcc5v>;
336 usb3_vbus-supply = <®_vcc5v>;