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 */
78 speaker_amp: audio-amplifier {
79 compatible = "simple-audio-amplifier";
81 * TODO This is actually a fixed regulator controlled by
82 * the GPIO line on the PMIC. This should be corrected
83 * once GPIO support is added for this PMIC.
85 VCC-supply = <®_ldo_io0>;
86 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
87 sound-name-prefix = "Speaker Amp";
97 cpvdd-supply = <®_eldo1>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&mmc0_pins>;
117 vmmc-supply = <®_dcdc1>;
118 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&mmc1_pins>;
127 vmmc-supply = <®_dldo4>;
128 vqmmc-supply = <®_eldo1>;
129 mmc-pwrseq = <&wifi_pwrseq>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
142 vmmc-supply = <®_dcdc1>;
143 vqmmc-supply = <®_eldo1>;
168 compatible = "x-powers,axp803";
170 interrupt-parent = <&r_intc>;
171 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
175 /* The ANX6345 eDP-bridge is on r_i2c */
177 clock-frequency = <100000>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&r_i2c_pl89_pins>;
183 #include "axp803.dtsi"
189 &battery_power_supply {
194 regulator-min-microvolt = <2800000>;
195 regulator-max-microvolt = <2800000>;
196 regulator-name = "vcc-csi";
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <3300000>;
203 regulator-name = "vcc-pl";
208 regulator-min-microvolt = <2700000>;
209 regulator-max-microvolt = <3300000>;
210 regulator-name = "vcc-pll-avcc";
214 regulator-name = "vcc-lcd";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
221 regulator-name = "vcc-3v3";
226 regulator-min-microvolt = <1000000>;
227 regulator-max-microvolt = <1300000>;
228 regulator-name = "vdd-cpux";
231 /* DCDC3 is polyphased with DCDC2 */
235 regulator-min-microvolt = <1200000>;
236 regulator-max-microvolt = <1200000>;
237 regulator-name = "vcc-dram";
242 regulator-min-microvolt = <1100000>;
243 regulator-max-microvolt = <1100000>;
244 regulator-name = "vdd-sys";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
250 regulator-name = "vcc-hdmi";
254 regulator-min-microvolt = <2500000>;
255 regulator-max-microvolt = <2500000>;
256 regulator-name = "vcc-edp";
260 regulator-min-microvolt = <3300000>;
261 regulator-max-microvolt = <3300000>;
262 regulator-name = "avdd-csi";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
268 regulator-name = "vcc-wifi";
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
275 regulator-name = "cpvdd";
279 regulator-min-microvolt = <1800000>;
280 regulator-max-microvolt = <1800000>;
281 regulator-name = "vdd-1v8-csi";
285 regulator-min-microvolt = <1200000>;
286 regulator-max-microvolt = <1200000>;
287 regulator-name = "vcc-1v2-hsic";
292 regulator-min-microvolt = <1100000>;
293 regulator-max-microvolt = <1100000>;
294 regulator-name = "vdd-cpus";
298 regulator-min-microvolt = <3300000>;
299 regulator-max-microvolt = <3300000>;
300 regulator-name = "vcc-usb";
305 regulator-name = "vcc-rtc";
309 vcc-hdmi-supply = <®_dldo1>;
314 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
315 simple-audio-card,widgets = "Microphone", "Internal Microphone Left",
316 "Microphone", "Internal Microphone Right",
317 "Headphone", "Headphone Jack",
318 "Speaker", "Internal Speaker";
319 simple-audio-card,routing =
320 "Left DAC", "AIF1 Slot 0 Left",
321 "Right DAC", "AIF1 Slot 0 Right",
322 "Speaker Amp INL", "LINEOUT",
323 "Speaker Amp INR", "LINEOUT",
324 "Internal Speaker", "Speaker Amp OUTL",
325 "Internal Speaker", "Speaker Amp OUTR",
326 "Headphone Jack", "HP",
327 "AIF1 Slot 0 Left ADC", "Left ADC",
328 "AIF1 Slot 0 Right ADC", "Right ADC",
329 "Internal Microphone Left", "MBIAS",
330 "MIC1", "Internal Microphone Left",
331 "Internal Microphone Right", "HBIAS",
332 "MIC2", "Internal Microphone Right";
336 pinctrl-names = "default";
337 pinctrl-0 = <&uart0_pb_pins>;
346 usb0_vbus-supply = <®_ldo_io0>;
347 usb1_vbus-supply = <®_ldo_io0>;