2 * Copyright (C) Harald Geyer <harald@ccbib.org>
3 * based on sun50i-a64-olinuxino.dts by Jagan Teki <jteki@openedev.com>
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
10 #include "sun50i-a64.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/pwm/pwm.h>
17 model = "Olimex A64 Teres-I";
18 compatible = "olimex,a64-teres-i", "allwinner,sun50i-a64";
25 stdout-path = "serial0:115200n8";
28 eDP25-supply = <®_dldo2>;
29 eDP12-supply = <®_dldo3>;
34 compatible = "gpio-keys";
38 gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */
39 linux,input-type = <EV_SW>;
40 linux,code = <SW_LID>;
46 compatible = "gpio-leds";
49 label = "teres-i:green:capslock";
50 gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
54 label = "teres-i:green:numlock";
55 gpios = <&pio 2 4 GPIO_ACTIVE_HIGH>; /* PC4 */
59 reg_usb1_vbus: usb1-vbus {
60 compatible = "regulator-fixed";
61 regulator-name = "usb1-vbus";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
65 gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
69 wifi_pwrseq: wifi_pwrseq {
70 compatible = "mmc-pwrseq-simple";
71 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
80 /* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline)
81 * driver for this chip at the moment, the bootloader initializes it.
82 * However it can be accessed with the i2c-dev driver from user space.
85 clock-frequency = <100000>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&i2c0_pins>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&mmc0_pins>;
94 vmmc-supply = <®_dcdc1>;
95 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&mmc1_pins>;
104 vmmc-supply = <®_aldo2>;
105 vqmmc-supply = <®_dldo4>;
106 mmc-pwrseq = <&wifi_pwrseq>;
113 interrupt-parent = <&r_pio>;
114 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
115 interrupt-names = "host-wake";
120 pinctrl-names = "default";
121 pinctrl-0 = <&mmc2_pins>;
122 vmmc-supply = <®_dcdc1>;
123 vqmmc-supply = <®_dcdc1>;
138 compatible = "x-powers,axp803";
140 interrupt-parent = <&r_intc>;
141 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
146 #include "axp803.dtsi"
150 regulator-min-microvolt = <2800000>;
151 regulator-max-microvolt = <2800000>;
152 regulator-name = "vcc-pe";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
159 regulator-name = "vcc-pl";
164 regulator-min-microvolt = <3000000>;
165 regulator-max-microvolt = <3000000>;
166 regulator-name = "vcc-pll-avcc";
171 regulator-min-microvolt = <3300000>;
172 regulator-max-microvolt = <3300000>;
173 regulator-name = "vcc-3v3";
178 regulator-min-microvolt = <1040000>;
179 regulator-max-microvolt = <1300000>;
180 regulator-name = "vdd-cpux";
183 /* DCDC3 is polyphased with DCDC2 */
187 regulator-min-microvolt = <1500000>;
188 regulator-max-microvolt = <1500000>;
189 regulator-name = "vcc-ddr3";
194 regulator-min-microvolt = <1100000>;
195 regulator-max-microvolt = <1100000>;
196 regulator-name = "vdd-sys";
200 regulator-min-microvolt = <3300000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc-hdmi";
206 regulator-min-microvolt = <2500000>;
207 regulator-max-microvolt = <2500000>;
208 regulator-name = "vcc-pd";
212 regulator-min-microvolt = <1200000>;
213 regulator-max-microvolt = <1200000>;
214 regulator-name = "vdd-edp";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
220 regulator-name = "vcc-wifi-io";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <1800000>;
226 regulator-name = "cpvdd";
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <1800000>;
232 regulator-name = "vcc-dvdd-csi";
236 regulator-min-microvolt = <1200000>;
237 regulator-max-microvolt = <1200000>;
238 regulator-name = "vcc-1v2-hsic";
242 * The A64 chip cannot work without this regulator off, although
243 * it seems to be only driving the AR100 core.
244 * Maybe we don't still know well about CPUs domain.
248 regulator-min-microvolt = <1100000>;
249 regulator-max-microvolt = <1100000>;
250 regulator-name = "vdd-cpus";
254 regulator-name = "vcc-rtc";
258 vcc-hdmi-supply = <®_dldo1>;
262 pinctrl-names = "default";
263 pinctrl-0 = <&uart0_pins_a>;
268 usb1_vbus-supply = <®_usb1_vbus>;