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 = "gpio-leds";
28 label = "orangepi:red:power";
29 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
34 label = "orangepi:green:status";
35 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
40 /* board wide 5V supply directly from the DC jack */
41 compatible = "regulator-fixed";
42 regulator-name = "vcc-5v";
43 regulator-min-microvolt = <5000000>;
44 regulator-max-microvolt = <5000000>;
50 cpu-supply = <®_dcdca>;
62 vmmc-supply = <®_cldo1>;
63 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
77 vcc-pc-supply = <®_bldo2>;
78 vcc-pd-supply = <®_cldo1>;
85 compatible = "x-powers,axp805", "x-powers,axp806";
87 interrupt-parent = <&r_intc>;
88 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
90 #interrupt-cells = <1>;
91 x-powers,self-working-mode;
92 vina-supply = <®_vcc5v>;
93 vinb-supply = <®_vcc5v>;
94 vinc-supply = <®_vcc5v>;
95 vind-supply = <®_vcc5v>;
96 vine-supply = <®_vcc5v>;
97 aldoin-supply = <®_vcc5v>;
98 bldoin-supply = <®_vcc5v>;
99 cldoin-supply = <®_vcc5v>;
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106 regulator-name = "vcc-pl-led-ir";
110 regulator-min-microvolt = <3300000>;
111 regulator-max-microvolt = <3300000>;
112 regulator-name = "vcc33-audio-tv-ephy-mac";
115 /* ALDO3 is shorted to CLDO1 */
118 regulator-min-microvolt = <3300000>;
119 regulator-max-microvolt = <3300000>;
120 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
125 regulator-min-microvolt = <1800000>;
126 regulator-max-microvolt = <1800000>;
127 regulator-name = "vcc18-dram-bias-pll";
132 regulator-min-microvolt = <1800000>;
133 regulator-max-microvolt = <1800000>;
134 regulator-name = "vcc-efuse-pcie-hdmi-pc";
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
149 regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
162 regulator-min-microvolt = <800000>;
163 regulator-max-microvolt = <1160000>;
164 regulator-name = "vdd-cpu";
168 regulator-min-microvolt = <810000>;
169 regulator-max-microvolt = <1080000>;
170 regulator-name = "vdd-gpu";
175 regulator-min-microvolt = <960000>;
176 regulator-max-microvolt = <960000>;
177 regulator-name = "vdd-sys";
182 regulator-min-microvolt = <1200000>;
183 regulator-max-microvolt = <1200000>;
184 regulator-name = "vcc-dram";
195 pinctrl-names = "default";
196 pinctrl-0 = <&uart0_ph_pins>;
202 * This board doesn't have a controllable VBUS even though it
203 * does have an ID pin. Using it as anything but a USB host is
211 usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
212 usb0_vbus-supply = <®_vcc5v>;
213 usb3_vbus-supply = <®_vcc5v>;