1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 Amarula Solutions B.V.
4 * Author: Jagan Teki <jagan@amarulasolutions.com>
9 #include "sun50i-a64.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
14 model = "Amarula A64-Relic";
15 compatible = "amarula,a64-relic", "allwinner,sun50i-a64";
22 stdout-path = "serial0:115200n8";
25 wifi_pwrseq: wifi-pwrseq {
26 compatible = "mmc-pwrseq-simple";
28 clock-names = "ext_clock";
29 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
38 pinctrl-names = "default";
39 pinctrl-0 = <&mmc1_pins>;
40 vmmc-supply = <®_dcdc1>;
42 * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but
43 * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with
44 * 0Ohm register to vcc-io-wifi so eldo1 is used.
46 vqmmc-supply = <®_eldo1>;
47 mmc-pwrseq = <&wifi_pwrseq>;
54 compatible = "brcm,bcm4329-fmac";
55 interrupt-parent = <&r_pio>;
56 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */
57 interrupt-names = "host-wake";
62 pinctrl-names = "default";
63 pinctrl-0 = <&mmc2_pins>;
64 vmmc-supply = <®_dcdc1>;
79 compatible = "x-powers,axp803";
81 interrupt-parent = <&r_intc>;
82 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
83 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
87 #include "axp803.dtsi"
91 regulator-min-microvolt = <2800000>;
92 regulator-max-microvolt = <2800000>;
93 regulator-name = "avdd-csi";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <3300000>;
100 regulator-name = "vcc-pl";
105 regulator-min-microvolt = <3000000>;
106 regulator-max-microvolt = <3000000>;
107 regulator-name = "vcc-pll-avcc";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
114 regulator-name = "vcc-3v3";
119 regulator-min-microvolt = <1040000>;
120 regulator-max-microvolt = <1300000>;
121 regulator-name = "vdd-cpux";
124 /* DCDC3 is polyphased with DCDC2 */
128 regulator-min-microvolt = <1500000>;
129 regulator-max-microvolt = <1500000>;
130 regulator-name = "vcc-dram";
135 regulator-min-microvolt = <1100000>;
136 regulator-max-microvolt = <1100000>;
137 regulator-name = "vdd-sys";
141 regulator-min-microvolt = <3300000>;
142 regulator-max-microvolt = <3300000>;
143 regulator-name = "vcc-hdmi-dsi-sensor";
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
149 regulator-name = "vcc-mipi";
153 regulator-min-microvolt = <2800000>;
154 regulator-max-microvolt = <2800000>;
155 regulator-name = "dovdd-csi";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161 regulator-name = "vcc-wifi-io";
165 regulator-name = "usb0-vbus";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <1800000>;
173 regulator-name = "cpvdd";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <1800000>;
179 regulator-name = "dvdd-csi";
183 regulator-min-microvolt = <1200000>;
184 regulator-max-microvolt = <1200000>;
185 regulator-name = "vcc-1v2-hsic";
189 * The A64 chip cannot work without this regulator off, although
190 * it seems to be only driving the AR100 core.
191 * Maybe we don't still know well about CPUs domain.
195 regulator-min-microvolt = <1100000>;
196 regulator-max-microvolt = <1100000>;
197 regulator-name = "vdd-cpus";
201 regulator-name = "vcc-rtc";
205 pinctrl-names = "default";
206 pinctrl-0 = <&uart0_pins_a>;
216 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
217 usb0_vbus-supply = <®_drivevbus>;