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";
24 backlight: backlight {
25 compatible = "pwm-backlight";
26 pwms = <&pwm 0 50000 0>;
27 power-supply = <®_dcdc1>;
28 brightness-levels = <0 5 7 10 14 20 28 40 56 80 112>;
29 default-brightness-level = <5>;
30 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
34 stdout-path = "serial0:115200n8";
37 eDP25-supply = <®_dldo2>;
38 eDP12-supply = <®_dldo3>;
43 compatible = "gpio-keys";
47 gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */
48 linux,input-type = <EV_SW>;
49 linux,code = <SW_LID>;
55 compatible = "gpio-leds";
58 label = "teres-i:green:capslock";
59 gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
63 label = "teres-i:green:numlock";
64 gpios = <&pio 2 4 GPIO_ACTIVE_HIGH>; /* PC4 */
68 reg_usb1_vbus: usb1-vbus {
69 compatible = "regulator-fixed";
70 regulator-name = "usb1-vbus";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
74 gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
78 wifi_pwrseq: wifi_pwrseq {
79 compatible = "mmc-pwrseq-simple";
80 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
89 /* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline)
90 * driver for this chip at the moment, the bootloader initializes it.
91 * However it can be accessed with the i2c-dev driver from user space.
94 clock-frequency = <100000>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&i2c0_pins>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&mmc0_pins>;
103 vmmc-supply = <®_dcdc1>;
104 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&mmc1_pins>;
113 vmmc-supply = <®_aldo2>;
114 vqmmc-supply = <®_dldo4>;
115 mmc-pwrseq = <&wifi_pwrseq>;
122 interrupt-parent = <&r_pio>;
123 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
124 interrupt-names = "host-wake";
129 pinctrl-names = "default";
130 pinctrl-0 = <&mmc2_pins>;
131 vmmc-supply = <®_dcdc1>;
132 vqmmc-supply = <®_dcdc1>;
151 compatible = "x-powers,axp803";
153 interrupt-parent = <&r_intc>;
154 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
159 #include "axp803.dtsi"
165 &battery_power_supply {
171 regulator-min-microvolt = <2800000>;
172 regulator-max-microvolt = <2800000>;
173 regulator-name = "vcc-pe";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
180 regulator-name = "vcc-pl";
185 regulator-min-microvolt = <3000000>;
186 regulator-max-microvolt = <3000000>;
187 regulator-name = "vcc-pll-avcc";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 regulator-name = "vcc-3v3";
199 regulator-min-microvolt = <1040000>;
200 regulator-max-microvolt = <1300000>;
201 regulator-name = "vdd-cpux";
204 /* DCDC3 is polyphased with DCDC2 */
208 regulator-min-microvolt = <1500000>;
209 regulator-max-microvolt = <1500000>;
210 regulator-name = "vcc-ddr3";
215 regulator-min-microvolt = <1100000>;
216 regulator-max-microvolt = <1100000>;
217 regulator-name = "vdd-sys";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
223 regulator-name = "vcc-hdmi";
227 regulator-min-microvolt = <2500000>;
228 regulator-max-microvolt = <2500000>;
229 regulator-name = "vcc-pd";
233 regulator-min-microvolt = <1200000>;
234 regulator-max-microvolt = <1200000>;
235 regulator-name = "vdd-edp";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
241 regulator-name = "vcc-wifi-io";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-name = "cpvdd";
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
253 regulator-name = "vcc-dvdd-csi";
257 regulator-min-microvolt = <1200000>;
258 regulator-max-microvolt = <1200000>;
259 regulator-name = "vcc-1v2-hsic";
263 * The A64 chip cannot work with this regulator off, although
264 * it seems to be only driving the AR100 core.
265 * Maybe we don't still know well about CPUs domain.
269 regulator-min-microvolt = <1100000>;
270 regulator-max-microvolt = <1100000>;
271 regulator-name = "vdd-cpus";
275 regulator-name = "vcc-rtc";
279 vcc-hdmi-supply = <®_dldo1>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&uart0_pb_pins>;
289 usb1_vbus-supply = <®_usb1_vbus>;