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;
26 compatible = "regulator-fixed";
27 regulator-name = "bl-3v3";
28 regulator-min-microvolt = <3300000>;
29 regulator-max-microvolt = <3300000>;
30 gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
34 backlight: backlight {
35 compatible = "pwm-backlight";
36 pwms = <&pwm 0 50000 0>;
37 brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>;
38 default-brightness-level = <2>;
39 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
40 power-supply = <&vdd_bl>;
44 stdout-path = "serial0:115200n8";
47 panel-supply = <®_dc1sw>;
48 dvdd25-supply = <®_dldo2>;
49 dvdd12-supply = <®_fldo1>;
54 compatible = "gpio-keys";
58 gpios = <&r_pio 0 12 GPIO_ACTIVE_LOW>; /* PL12 */
59 linux,input-type = <EV_SW>;
60 linux,code = <SW_LID>;
67 compatible = "regulator-fixed";
68 regulator-name = "vcc3v3";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
73 wifi_pwrseq: wifi_pwrseq {
74 compatible = "mmc-pwrseq-simple";
75 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
90 pinctrl-names = "default";
91 pinctrl-0 = <&mmc0_pins>;
92 vmmc-supply = <®_dcdc1>;
93 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&mmc1_pins>;
102 vmmc-supply = <®_dldo4>;
103 vqmmc-supply = <®_eldo1>;
104 mmc-pwrseq = <&wifi_pwrseq>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
117 vmmc-supply = <®_dcdc1>;
118 vqmmc-supply = <®_eldo1>;
144 compatible = "x-powers,axp803";
146 interrupt-parent = <&r_intc>;
147 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
151 /* The ANX6345 eDP-bridge is on r_i2c */
153 clock-frequency = <100000>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&r_i2c_pl89_pins>;
159 #include "axp803.dtsi"
162 regulator-min-microvolt = <2800000>;
163 regulator-max-microvolt = <2800000>;
164 regulator-name = "vcc-csi";
169 regulator-min-microvolt = <1800000>;
170 regulator-max-microvolt = <3300000>;
171 regulator-name = "vcc-pl";
176 regulator-min-microvolt = <2700000>;
177 regulator-max-microvolt = <3300000>;
178 regulator-name = "vcc-pll-avcc";
182 regulator-name = "vcc-lcd";
187 regulator-min-microvolt = <3300000>;
188 regulator-max-microvolt = <3300000>;
189 regulator-name = "vcc-3v3";
194 regulator-min-microvolt = <1000000>;
195 regulator-max-microvolt = <1300000>;
196 regulator-name = "vdd-cpux";
199 /* DCDC3 is polyphased with DCDC2 */
203 regulator-min-microvolt = <1200000>;
204 regulator-max-microvolt = <1200000>;
205 regulator-name = "vcc-dram";
210 regulator-min-microvolt = <1100000>;
211 regulator-max-microvolt = <1100000>;
212 regulator-name = "vdd-sys";
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
218 regulator-name = "vcc-hdmi";
222 regulator-min-microvolt = <2500000>;
223 regulator-max-microvolt = <2500000>;
224 regulator-name = "vcc-edp";
228 regulator-min-microvolt = <3300000>;
229 regulator-max-microvolt = <3300000>;
230 regulator-name = "avdd-csi";
234 regulator-min-microvolt = <3300000>;
235 regulator-max-microvolt = <3300000>;
236 regulator-name = "vcc-wifi";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
243 regulator-name = "cpvdd";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1800000>;
249 regulator-name = "vdd-1v8-csi";
253 regulator-min-microvolt = <1200000>;
254 regulator-max-microvolt = <1200000>;
255 regulator-name = "vcc-1v2-hsic";
260 regulator-min-microvolt = <1100000>;
261 regulator-max-microvolt = <1100000>;
262 regulator-name = "vdd-cpus";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
268 regulator-name = "vcc-usb";
273 regulator-name = "vcc-rtc";
277 vcc-hdmi-supply = <®_dldo1>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&uart0_pb_pins>;
291 usb0_vbus-supply = <®_ldo_io0>;
292 usb1_vbus-supply = <®_ldo_io0>;