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 */
78 pinctrl-names = "default";
79 pinctrl-0 = <&mmc0_pins>;
80 vmmc-supply = <®_dcdc1>;
81 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&mmc1_pins>;
91 vmmc-supply = <®_dldo4>;
92 vqmmc-supply = <®_eldo1>;
93 mmc-pwrseq = <&wifi_pwrseq>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&mmc2_pins>;
106 vmmc-supply = <®_dcdc1>;
107 vqmmc-supply = <®_eldo1>;
108 max-frequency = <200000000>;
132 compatible = "x-powers,axp803";
134 interrupt-parent = <&r_intc>;
135 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
139 /* The ANX6345 eDP-bridge is on r_i2c */
141 clock-frequency = <100000>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&r_i2c_pins_a>;
147 #include "axp803.dtsi"
150 regulator-min-microvolt = <2800000>;
151 regulator-max-microvolt = <2800000>;
152 regulator-name = "vcc-csi";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <3300000>;
159 regulator-name = "vcc-pl";
164 regulator-min-microvolt = <2700000>;
165 regulator-max-microvolt = <3300000>;
166 regulator-name = "vcc-pll-avcc";
170 regulator-name = "vcc-lcd";
175 regulator-min-microvolt = <3300000>;
176 regulator-max-microvolt = <3300000>;
177 regulator-name = "vcc-3v3";
182 regulator-min-microvolt = <1000000>;
183 regulator-max-microvolt = <1300000>;
184 regulator-name = "vdd-cpux";
187 /* DCDC3 is polyphased with DCDC2 */
191 regulator-min-microvolt = <1200000>;
192 regulator-max-microvolt = <1200000>;
193 regulator-name = "vcc-dram";
198 regulator-min-microvolt = <1100000>;
199 regulator-max-microvolt = <1100000>;
200 regulator-name = "vdd-sys";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
206 regulator-name = "vcc-hdmi";
210 regulator-min-microvolt = <2500000>;
211 regulator-max-microvolt = <2500000>;
212 regulator-name = "vcc-edp";
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
218 regulator-name = "avdd-csi";
222 regulator-min-microvolt = <3300000>;
223 regulator-max-microvolt = <3300000>;
224 regulator-name = "vcc-wifi";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 regulator-name = "cpvdd";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
237 regulator-name = "vdd-1v8-csi";
241 regulator-min-microvolt = <1200000>;
242 regulator-max-microvolt = <1200000>;
243 regulator-name = "vcc-1v2-hsic";
248 regulator-min-microvolt = <1100000>;
249 regulator-max-microvolt = <1100000>;
250 regulator-name = "vdd-cpus";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
256 regulator-name = "vcc-usb";
261 regulator-name = "vcc-rtc";
265 vcc-hdmi-supply = <®_dldo1>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&uart0_pins_a>;
279 usb0_vbus-supply = <®_ldo_io0>;
280 usb1_vbus-supply = <®_ldo_io0>;