1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (c) 2023 ARM Ltd.
6 #include "sun50i-a64.dtsi"
7 #include "sun50i-a64-cpu-opp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
12 model = "Remix Mini PC";
13 compatible = "jide,remix-mini-pc", "allwinner,sun50i-h64",
14 "allwinner,sun50i-a64";
17 ethernet1 = &rtl8723bs;
22 stdout-path = "serial0:115200n8";
26 compatible = "hdmi-connector";
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
36 reg_vcc5v: regulator-5v {
37 /* board wide 5V supply directly from the DC input */
38 compatible = "regulator-fixed";
39 regulator-name = "vcc-5v";
40 regulator-min-microvolt = <5000000>;
41 regulator-max-microvolt = <5000000>;
45 wifi_pwrseq: wifi_pwrseq {
46 compatible = "mmc-pwrseq-simple";
47 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
48 post-power-on-delay-ms = <200>;
57 cpvdd-supply = <®_eldo1>;
62 cpu-supply = <®_dcdc2>;
66 cpu-supply = <®_dcdc2>;
70 cpu-supply = <®_dcdc2>;
74 cpu-supply = <®_dcdc2>;
94 hvcc-supply = <®_dldo1>;
99 hdmi_out_con: endpoint {
100 remote-endpoint = <&hdmi_con_in>;
104 /* Connects to the AC200 chip */
106 pinctrl-names = "default";
107 pinctrl-0 = <&i2c0_pins>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&mmc0_pins>;
118 vmmc-supply = <®_dcdc1>;
119 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&mmc1_pins>;
128 vmmc-supply = <®_aldo1>;
129 vqmmc-supply = <®_dldo4>;
130 mmc-pwrseq = <&wifi_pwrseq>;
137 interrupt-parent = <&r_pio>;
138 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
139 interrupt-names = "host-wake";
144 pinctrl-names = "default";
145 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
146 vmmc-supply = <®_dcdc1>;
147 vqmmc-supply = <®_eldo1>;
165 vcc-pb-supply = <®_dcdc1>;
166 vcc-pc-supply = <®_dcdc1>;
167 vcc-pd-supply = <®_dcdc1>;
168 vcc-pe-supply = <®_dcdc1>;
169 vcc-pf-supply = <®_dcdc1>;
170 vcc-pg-supply = <®_dldo4>;
171 vcc-ph-supply = <®_dcdc1>;
180 * We cannot add that supply for now since it would create a circular
181 * dependency between pinctrl, the regulator and the RSB Bus.
183 * vcc-pl-supply = <®_aldo2>;
191 compatible = "x-powers,axp803";
193 interrupt-parent = <&r_intc>;
194 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>;
195 x-powers,drive-vbus-en;
197 vin1-supply = <®_vcc5v>;
198 vin2-supply = <®_vcc5v>;
199 vin3-supply = <®_vcc5v>;
200 vin5-supply = <®_vcc5v>;
201 vin6-supply = <®_vcc5v>;
202 aldoin-supply = <®_vcc5v>;
203 dldoin-supply = <®_vcc5v>;
204 eldoin-supply = <®_vcc5v>;
205 fldoin-supply = <®_vcc5v>;
206 drivevbus-supply = <®_vcc5v>;
207 ips-supply = <®_vcc5v>;
213 #include "axp803.dtsi"
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
223 regulator-name = "vcc-3v3";
228 regulator-min-microvolt = <1040000>;
229 regulator-max-microvolt = <1300000>;
230 regulator-name = "vdd-cpux";
233 /* DCDC3 is polyphased with DCDC2 */
237 regulator-min-microvolt = <1500000>;
238 regulator-max-microvolt = <1500000>;
239 regulator-name = "vcc-dram";
242 /* Deviates from the reset default of 1.1V. */
245 regulator-min-microvolt = <1200000>;
246 regulator-max-microvolt = <1200000>;
247 regulator-name = "vdd-sys";
251 regulator-min-microvolt = <3300000>;
252 regulator-max-microvolt = <3300000>;
253 regulator-name = "vcc-wifi";
257 /* Specifying R_PIO consumer would create circular dependency. */
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-name = "vcc-pl";
266 regulator-min-microvolt = <3000000>;
267 regulator-max-microvolt = <3000000>;
268 regulator-name = "vcc-pll-avcc";
271 /* AC200 power supply */
274 regulator-min-microvolt = <3300000>;
275 regulator-max-microvolt = <3300000>;
276 regulator-name = "vcc-ave-33";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
282 regulator-name = "vcc-wifi-io";
286 regulator-name = "usb0-vbus";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 regulator-name = "vcc-cpvdd-dram-emmc";
297 /* Supplies the arisc management core, needed by TF-A to power off cores. */
300 regulator-min-microvolt = <1100000>;
301 regulator-max-microvolt = <1100000>;
302 regulator-name = "vdd-cpus";
306 regulator-name = "vcc-rtc";
310 vcc-hdmi-supply = <®_dcdc1>;
314 simple-audio-card,aux-devs = <&codec_analog>;
315 simple-audio-card,widgets = "Microphone", "Microphone Jack",
316 "Headphone", "Headphone Jack";
317 simple-audio-card,routing =
320 "Headphone Jack", "HP",
323 "MIC2", "Microphone Jack";
327 /* On the (unpopulated) UART pads. */
329 pinctrl-names = "default";
330 pinctrl-0 = <&uart0_pb_pins>;
335 pinctrl-names = "default";
336 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
341 compatible = "realtek,rtl8723bs-bt";
342 enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
343 max-speed = <1500000>;
353 usb0_vbus-supply = <®_drivevbus>;
354 usb1_vbus-supply = <®_drivevbus>;