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>;
45 compatible = "gpio-leds";
48 label = "teres-i:green:capslock";
49 gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
53 label = "teres-i:green:numlock";
54 gpios = <&pio 2 4 GPIO_ACTIVE_HIGH>; /* PC4 */
58 reg_usb1_vbus: usb1-vbus {
59 compatible = "regulator-fixed";
60 regulator-name = "usb1-vbus";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
64 gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
68 wifi_pwrseq: wifi_pwrseq {
69 compatible = "mmc-pwrseq-simple";
70 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
79 /* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline)
80 * driver for this chip at the moment, the bootloader initializes it.
81 * However it can be accessed with the i2c-dev driver from user space.
84 clock-frequency = <100000>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&i2c0_pins>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&mmc0_pins>;
93 vmmc-supply = <®_dcdc1>;
94 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&mmc1_pins>;
103 vmmc-supply = <®_aldo2>;
104 vqmmc-supply = <®_dldo4>;
105 mmc-pwrseq = <&wifi_pwrseq>;
112 interrupt-parent = <&r_pio>;
113 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
114 interrupt-names = "host-wake";
119 pinctrl-names = "default";
120 pinctrl-0 = <&mmc2_pins>;
121 vmmc-supply = <®_dcdc1>;
122 vqmmc-supply = <®_dcdc1>;
137 compatible = "x-powers,axp803";
139 interrupt-parent = <&r_intc>;
140 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
145 #include "axp803.dtsi"
149 regulator-min-microvolt = <2800000>;
150 regulator-max-microvolt = <2800000>;
151 regulator-name = "vcc-pe";
156 regulator-min-microvolt = <3300000>;
157 regulator-max-microvolt = <3300000>;
158 regulator-name = "vcc-pl";
163 regulator-min-microvolt = <3000000>;
164 regulator-max-microvolt = <3000000>;
165 regulator-name = "vcc-pll-avcc";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 regulator-name = "vcc-3v3";
177 regulator-min-microvolt = <1040000>;
178 regulator-max-microvolt = <1300000>;
179 regulator-name = "vdd-cpux";
182 /* DCDC3 is polyphased with DCDC2 */
186 regulator-min-microvolt = <1500000>;
187 regulator-max-microvolt = <1500000>;
188 regulator-name = "vcc-ddr3";
193 regulator-min-microvolt = <1100000>;
194 regulator-max-microvolt = <1100000>;
195 regulator-name = "vdd-sys";
199 regulator-min-microvolt = <3300000>;
200 regulator-max-microvolt = <3300000>;
201 regulator-name = "vcc-hdmi";
205 regulator-min-microvolt = <2500000>;
206 regulator-max-microvolt = <2500000>;
207 regulator-name = "vcc-pd";
211 regulator-min-microvolt = <1200000>;
212 regulator-max-microvolt = <1200000>;
213 regulator-name = "eDP12";
217 regulator-min-microvolt = <3300000>;
218 regulator-max-microvolt = <3300000>;
219 regulator-name = "vcc-wifi-io";
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <1800000>;
225 regulator-name = "cpvdd";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 regulator-name = "vcc-dvdd-csi";
235 regulator-min-microvolt = <1200000>;
236 regulator-max-microvolt = <1200000>;
237 regulator-name = "vcc-1v2-hsic";
241 * The A64 chip cannot work without this regulator off, although
242 * it seems to be only driving the AR100 core.
243 * Maybe we don't still know well about CPUs domain.
247 regulator-min-microvolt = <1100000>;
248 regulator-max-microvolt = <1100000>;
249 regulator-name = "vdd-cpus";
253 regulator-name = "vcc-rtc";
257 pinctrl-names = "default";
258 pinctrl-0 = <&uart0_pins_a>;
263 usb1_vbus-supply = <®_usb1_vbus>;