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_LOW>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&mmc1_pins>;
92 vmmc-supply = <®_dldo4>;
93 vqmmc-supply = <®_eldo1>;
94 mmc-pwrseq = <&wifi_pwrseq>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
107 vmmc-supply = <®_dcdc1>;
108 vqmmc-supply = <®_eldo1>;
134 compatible = "x-powers,axp803";
136 interrupt-parent = <&r_intc>;
137 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
141 /* The ANX6345 eDP-bridge is on r_i2c */
143 clock-frequency = <100000>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&r_i2c_pl89_pins>;
149 #include "axp803.dtsi"
152 regulator-min-microvolt = <2800000>;
153 regulator-max-microvolt = <2800000>;
154 regulator-name = "vcc-csi";
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <3300000>;
161 regulator-name = "vcc-pl";
166 regulator-min-microvolt = <2700000>;
167 regulator-max-microvolt = <3300000>;
168 regulator-name = "vcc-pll-avcc";
172 regulator-name = "vcc-lcd";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-name = "vcc-3v3";
184 regulator-min-microvolt = <1000000>;
185 regulator-max-microvolt = <1300000>;
186 regulator-name = "vdd-cpux";
189 /* DCDC3 is polyphased with DCDC2 */
193 regulator-min-microvolt = <1200000>;
194 regulator-max-microvolt = <1200000>;
195 regulator-name = "vcc-dram";
200 regulator-min-microvolt = <1100000>;
201 regulator-max-microvolt = <1100000>;
202 regulator-name = "vdd-sys";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-name = "vcc-hdmi";
212 regulator-min-microvolt = <2500000>;
213 regulator-max-microvolt = <2500000>;
214 regulator-name = "vcc-edp";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
220 regulator-name = "avdd-csi";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
226 regulator-name = "vcc-wifi";
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
233 regulator-name = "cpvdd";
237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <1800000>;
239 regulator-name = "vdd-1v8-csi";
243 regulator-min-microvolt = <1200000>;
244 regulator-max-microvolt = <1200000>;
245 regulator-name = "vcc-1v2-hsic";
250 regulator-min-microvolt = <1100000>;
251 regulator-max-microvolt = <1100000>;
252 regulator-name = "vdd-cpus";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 regulator-name = "vcc-usb";
263 regulator-name = "vcc-rtc";
267 vcc-hdmi-supply = <®_dldo1>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&uart0_pb_pins>;
281 usb0_vbus-supply = <®_ldo_io0>;
282 usb1_vbus-supply = <®_ldo_io0>;