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 */
83 speaker_amp: audio-amplifier {
84 compatible = "simple-audio-amplifier";
85 enable-gpios = <&r_pio 0 12 GPIO_ACTIVE_HIGH>; /* PL12 */
86 sound-name-prefix = "Speaker Amp";
95 cpvdd-supply = <®_eldo1>;
108 /* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline)
109 * driver for this chip at the moment, the bootloader initializes it.
110 * However it can be accessed with the i2c-dev driver from user space.
113 clock-frequency = <100000>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&mmc0_pins>;
120 vmmc-supply = <®_dcdc1>;
121 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&mmc1_pins>;
130 vmmc-supply = <®_aldo2>;
131 vqmmc-supply = <®_dldo4>;
132 mmc-pwrseq = <&wifi_pwrseq>;
139 interrupt-parent = <&r_pio>;
140 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
141 interrupt-names = "host-wake";
146 pinctrl-names = "default";
147 pinctrl-0 = <&mmc2_pins>;
148 vmmc-supply = <®_dcdc1>;
149 vqmmc-supply = <®_dcdc1>;
168 compatible = "x-powers,axp803";
170 interrupt-parent = <&r_intc>;
171 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
176 #include "axp803.dtsi"
182 &battery_power_supply {
188 regulator-min-microvolt = <2800000>;
189 regulator-max-microvolt = <2800000>;
190 regulator-name = "vcc-pe";
195 regulator-min-microvolt = <3300000>;
196 regulator-max-microvolt = <3300000>;
197 regulator-name = "vcc-pl";
202 regulator-min-microvolt = <3000000>;
203 regulator-max-microvolt = <3000000>;
204 regulator-name = "vcc-pll-avcc";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 regulator-name = "vcc-3v3";
216 regulator-min-microvolt = <1040000>;
217 regulator-max-microvolt = <1300000>;
218 regulator-name = "vdd-cpux";
221 /* DCDC3 is polyphased with DCDC2 */
225 regulator-min-microvolt = <1500000>;
226 regulator-max-microvolt = <1500000>;
227 regulator-name = "vcc-ddr3";
232 regulator-min-microvolt = <1100000>;
233 regulator-max-microvolt = <1100000>;
234 regulator-name = "vdd-sys";
238 regulator-min-microvolt = <3300000>;
239 regulator-max-microvolt = <3300000>;
240 regulator-name = "vcc-hdmi";
244 regulator-min-microvolt = <2500000>;
245 regulator-max-microvolt = <2500000>;
246 regulator-name = "vcc-pd";
250 regulator-min-microvolt = <1200000>;
251 regulator-max-microvolt = <1200000>;
252 regulator-name = "vdd-edp";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-wifi-io";
262 regulator-min-microvolt = <1800000>;
263 regulator-max-microvolt = <1800000>;
264 regulator-name = "cpvdd";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
270 regulator-name = "vcc-dvdd-csi";
274 regulator-min-microvolt = <1200000>;
275 regulator-max-microvolt = <1200000>;
276 regulator-name = "vcc-1v2-hsic";
280 * The A64 chip cannot work with this regulator off, although
281 * it seems to be only driving the AR100 core.
282 * Maybe we don't still know well about CPUs domain.
286 regulator-min-microvolt = <1100000>;
287 regulator-max-microvolt = <1100000>;
288 regulator-name = "vdd-cpus";
292 regulator-name = "vcc-rtc";
296 vcc-hdmi-supply = <®_dldo1>;
300 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
301 simple-audio-card,widgets = "Headphone", "Headphone Jack",
302 "Microphone", "Headset Microphone",
303 "Microphone", "Internal Microphone",
304 "Speaker", "Internal Speaker";
305 simple-audio-card,routing =
306 "Left DAC", "AIF1 Slot 0 Left",
307 "Right DAC", "AIF1 Slot 0 Right",
308 "AIF1 Slot 0 Left ADC", "Left ADC",
309 "AIF1 Slot 0 Right ADC", "Right ADC",
310 "Headphone Jack", "HP",
311 "Speaker Amp INL", "LINEOUT",
312 "Speaker Amp INR", "LINEOUT",
313 "Internal Speaker", "Speaker Amp OUTL",
314 "Internal Speaker", "Speaker Amp OUTR",
315 "Internal Microphone", "MBIAS",
316 "MIC1", "Internal Microphone",
317 "Headset Microphone", "HBIAS",
318 "MIC2", "Headset Microphone";
323 pinctrl-names = "default";
324 pinctrl-0 = <&uart0_pb_pins>;
329 usb1_vbus-supply = <®_usb1_vbus>;