1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.xyz>
4 * Copyright (C) 2018 Vasily Khoruzhick <anarsoul@gmail.com>
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>
18 compatible = "pine64,pinebook", "allwinner,sun50i-a64";
22 ethernet0 = &rtl8723cs;
25 backlight: backlight {
26 compatible = "pwm-backlight";
27 pwms = <&pwm 0 50000 0>;
28 brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>;
29 default-brightness-level = <2>;
30 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
34 stdout-path = "serial0:115200n8";
37 panel-supply = <®_dc1sw>;
38 dvdd25-supply = <®_dldo2>;
39 dvdd12-supply = <®_fldo1>;
44 compatible = "gpio-keys";
48 gpios = <&r_pio 0 12 GPIO_ACTIVE_LOW>; /* PL12 */
49 linux,input-type = <EV_SW>;
50 linux,code = <SW_LID>;
57 compatible = "regulator-fixed";
58 regulator-name = "vcc3v3";
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
63 wifi_pwrseq: wifi_pwrseq {
64 compatible = "mmc-pwrseq-simple";
65 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
80 pinctrl-names = "default";
81 pinctrl-0 = <&mmc0_pins>;
82 vmmc-supply = <®_dcdc1>;
83 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&mmc1_pins>;
93 vmmc-supply = <®_dldo4>;
94 vqmmc-supply = <®_eldo1>;
95 mmc-pwrseq = <&wifi_pwrseq>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&mmc2_pins>;
108 vmmc-supply = <®_dcdc1>;
109 vqmmc-supply = <®_eldo1>;
135 compatible = "x-powers,axp803";
137 interrupt-parent = <&r_intc>;
138 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
142 /* The ANX6345 eDP-bridge is on r_i2c */
144 clock-frequency = <100000>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&r_i2c_pins_a>;
150 #include "axp803.dtsi"
153 regulator-min-microvolt = <2800000>;
154 regulator-max-microvolt = <2800000>;
155 regulator-name = "vcc-csi";
160 regulator-min-microvolt = <1800000>;
161 regulator-max-microvolt = <3300000>;
162 regulator-name = "vcc-pl";
167 regulator-min-microvolt = <2700000>;
168 regulator-max-microvolt = <3300000>;
169 regulator-name = "vcc-pll-avcc";
173 regulator-name = "vcc-lcd";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
180 regulator-name = "vcc-3v3";
185 regulator-min-microvolt = <1000000>;
186 regulator-max-microvolt = <1300000>;
187 regulator-name = "vdd-cpux";
190 /* DCDC3 is polyphased with DCDC2 */
194 regulator-min-microvolt = <1200000>;
195 regulator-max-microvolt = <1200000>;
196 regulator-name = "vcc-dram";
201 regulator-min-microvolt = <1100000>;
202 regulator-max-microvolt = <1100000>;
203 regulator-name = "vdd-sys";
207 regulator-min-microvolt = <3300000>;
208 regulator-max-microvolt = <3300000>;
209 regulator-name = "vcc-hdmi";
213 regulator-min-microvolt = <2500000>;
214 regulator-max-microvolt = <2500000>;
215 regulator-name = "vcc-edp";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
221 regulator-name = "avdd-csi";
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
227 regulator-name = "vcc-wifi";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 regulator-name = "cpvdd";
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <1800000>;
240 regulator-name = "vdd-1v8-csi";
244 regulator-min-microvolt = <1200000>;
245 regulator-max-microvolt = <1200000>;
246 regulator-name = "vcc-1v2-hsic";
251 regulator-min-microvolt = <1100000>;
252 regulator-max-microvolt = <1100000>;
253 regulator-name = "vdd-cpus";
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
259 regulator-name = "vcc-usb";
264 regulator-name = "vcc-rtc";
268 vcc-hdmi-supply = <®_dldo1>;
272 pinctrl-names = "default";
273 pinctrl-0 = <&uart0_pins_a>;
282 usb0_vbus-supply = <®_ldo_io0>;
283 usb1_vbus-supply = <®_ldo_io0>;