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>;
162 vcc-pa-supply = <®_dcdc1>;
163 vcc-pb-supply = <®_dcdc1>;
164 vcc-pc-supply = <®_dcdc1>;
165 vcc-pd-supply = <®_dcdc1>;
166 vcc-pe-supply = <®_aldo1>;
167 vcc-pf-supply = <®_dcdc1>;
168 vcc-pg-supply = <®_dldo4>;
169 vcc-ph-supply = <®_dcdc1>;
176 compatible = "x-powers,axp803";
178 interrupt-parent = <&r_intc>;
179 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
180 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
184 /* VCC-PL is powered by aldo2 but we cannot add it as the RSB */
185 /* interface used to talk to the PMIC in on the PL pins */
187 /* vcc-pl-supply = <®_aldo2>; */
190 #include "axp803.dtsi"
196 &battery_power_supply {
202 regulator-min-microvolt = <2800000>;
203 regulator-max-microvolt = <2800000>;
204 regulator-name = "vcc-pe";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-name = "vcc-pl";
216 regulator-min-microvolt = <3000000>;
217 regulator-max-microvolt = <3000000>;
218 regulator-name = "vcc-pll-avcc";
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
225 regulator-name = "vcc-3v3";
230 regulator-min-microvolt = <1040000>;
231 regulator-max-microvolt = <1300000>;
232 regulator-name = "vdd-cpux";
235 /* DCDC3 is polyphased with DCDC2 */
238 * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal
239 * 1.35V that the PMIC can drive.
243 regulator-min-microvolt = <1360000>;
244 regulator-max-microvolt = <1360000>;
245 regulator-name = "vcc-ddr3";
250 regulator-min-microvolt = <1100000>;
251 regulator-max-microvolt = <1100000>;
252 regulator-name = "vdd-sys";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-hdmi";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-name = "vcc-mipi";
268 regulator-min-microvolt = <2800000>;
269 regulator-max-microvolt = <2800000>;
270 regulator-name = "vcc-avdd-csi";
274 regulator-min-microvolt = <3300000>;
275 regulator-max-microvolt = <3300000>;
276 regulator-name = "vcc-wifi-io";
280 regulator-name = "usb0-vbus";
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <1800000>;
287 regulator-name = "cpvdd";
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-name = "vcc-dvdd-csi";
297 regulator-min-microvolt = <1200000>;
298 regulator-max-microvolt = <1200000>;
299 regulator-name = "vcc-1v2-hsic";
303 * The A64 chip cannot work without this regulator off, although
304 * it seems to be only driving the AR100 core.
305 * Maybe we don't still know well about CPUs domain.
309 regulator-min-microvolt = <1100000>;
310 regulator-max-microvolt = <1100000>;
311 regulator-name = "vdd-cpus";
315 regulator-name = "vcc-rtc";
319 vcc-hdmi-supply = <®_dldo1>;
323 pinctrl-names = "default";
324 pinctrl-0 = <&uart0_pb_pins>;
335 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
336 usb0_vbus-supply = <®_drivevbus>;
337 usb1_vbus-supply = <®_usb1_vbus>;