1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
6 #include "sun50i-a64.dtsi"
7 #include "sun50i-a64-cpu-opp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
12 model = "Olimex A64-Olinuxino";
13 compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64";
21 stdout-path = "serial0:115200n8";
25 compatible = "hdmi-connector";
29 hdmi_con_in: endpoint {
30 remote-endpoint = <&hdmi_out_con>;
35 reg_usb1_vbus: usb1-vbus {
36 compatible = "regulator-fixed";
37 regulator-name = "usb1-vbus";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
42 gpio = <&pio 6 9 GPIO_ACTIVE_HIGH>; /* PG9 */
46 wifi_pwrseq: wifi_pwrseq {
47 compatible = "mmc-pwrseq-simple";
48 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
53 cpu-supply = <®_dcdc2>;
57 cpu-supply = <®_dcdc2>;
61 cpu-supply = <®_dcdc2>;
65 cpu-supply = <®_dcdc2>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&rgmii_pins>;
84 phy-handle = <&ext_rgmii_phy>;
85 phy-supply = <®_dcdc1>;
86 allwinner,tx-delay-ps = <600>;
91 hvcc-supply = <®_dldo1>;
96 hdmi_out_con: endpoint {
97 remote-endpoint = <&hdmi_con_in>;
102 ext_rgmii_phy: ethernet-phy@1 {
103 compatible = "ethernet-phy-ieee802.3-c22";
109 pinctrl-names = "default";
110 pinctrl-0 = <&mmc0_pins>;
111 vmmc-supply = <®_dcdc1>;
112 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&mmc1_pins>;
121 vmmc-supply = <®_dcdc1>;
122 vqmmc-supply = <®_dldo4>;
123 mmc-pwrseq = <&wifi_pwrseq>;
130 interrupt-parent = <&r_pio>;
131 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
132 interrupt-names = "host-wake";
145 vcc-pc-supply = <®_dcdc1>;
146 vcc-pd-supply = <®_dcdc1>;
147 vcc-pe-supply = <®_aldo1>;
148 vcc-pg-supply = <®_dldo4>;
153 * FIXME: We can't add that supply for now since it would
154 * create a circular dependency between pinctrl, the regulator
157 * vcc-pl-supply = <®_aldo2>;
165 compatible = "x-powers,axp803";
167 interrupt-parent = <&r_intc>;
168 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
169 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
173 #include "axp803.dtsi"
179 &battery_power_supply {
185 regulator-min-microvolt = <2800000>;
186 regulator-max-microvolt = <2800000>;
187 regulator-name = "vcc-pe";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 regulator-name = "vcc-pl";
199 regulator-min-microvolt = <3000000>;
200 regulator-max-microvolt = <3000000>;
201 regulator-name = "vcc-pll-avcc";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-name = "vcc-3v3";
213 regulator-min-microvolt = <1040000>;
214 regulator-max-microvolt = <1300000>;
215 regulator-name = "vdd-cpux";
218 /* DCDC3 is polyphased with DCDC2 */
221 * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal
222 * 1.35V that the PMIC can drive.
226 regulator-min-microvolt = <1360000>;
227 regulator-max-microvolt = <1360000>;
228 regulator-name = "vcc-ddr3";
233 regulator-min-microvolt = <1100000>;
234 regulator-max-microvolt = <1100000>;
235 regulator-name = "vdd-sys";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
241 regulator-name = "vcc-hdmi";
245 regulator-min-microvolt = <3300000>;
246 regulator-max-microvolt = <3300000>;
247 regulator-name = "vcc-mipi";
251 regulator-min-microvolt = <2800000>;
252 regulator-max-microvolt = <2800000>;
253 regulator-name = "vcc-avdd-csi";
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
259 regulator-name = "vcc-wifi-io";
263 regulator-name = "usb0-vbus";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
270 regulator-name = "cpvdd";
274 regulator-min-microvolt = <1800000>;
275 regulator-max-microvolt = <1800000>;
276 regulator-name = "vcc-dvdd-csi";
280 regulator-min-microvolt = <1200000>;
281 regulator-max-microvolt = <1200000>;
282 regulator-name = "vcc-1v2-hsic";
286 * The A64 chip cannot work without this regulator off, although
287 * it seems to be only driving the AR100 core.
288 * Maybe we don't still know well about CPUs domain.
292 regulator-min-microvolt = <1100000>;
293 regulator-max-microvolt = <1100000>;
294 regulator-name = "vdd-cpus";
298 regulator-name = "vcc-rtc";
302 vcc-hdmi-supply = <®_dldo1>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&uart0_pb_pins>;
318 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
319 usb0_vbus-supply = <®_drivevbus>;
320 usb1_vbus-supply = <®_usb1_vbus>;