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>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&mmc0_pins>;
118 vmmc-supply = <®_dcdc1>;
119 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&mmc1_pins>;
128 vmmc-supply = <®_dldo4>;
129 vqmmc-supply = <®_eldo1>;
130 mmc-pwrseq = <&wifi_pwrseq>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
143 vmmc-supply = <®_dcdc1>;
144 vqmmc-supply = <®_eldo1>;
170 compatible = "x-powers,axp803";
172 interrupt-parent = <&r_intc>;
173 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
177 /* The ANX6345 eDP-bridge is on r_i2c */
179 clock-frequency = <100000>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&r_i2c_pl89_pins>;
185 #include "axp803.dtsi"
191 &battery_power_supply {
196 regulator-min-microvolt = <2800000>;
197 regulator-max-microvolt = <2800000>;
198 regulator-name = "vcc-csi";
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <3300000>;
205 regulator-name = "vcc-pl";
210 regulator-min-microvolt = <2700000>;
211 regulator-max-microvolt = <3300000>;
212 regulator-name = "vcc-pll-avcc";
216 regulator-name = "vcc-lcd";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
223 regulator-name = "vcc-3v3";
228 regulator-min-microvolt = <1000000>;
229 regulator-max-microvolt = <1300000>;
230 regulator-name = "vdd-cpux";
233 /* DCDC3 is polyphased with DCDC2 */
237 regulator-min-microvolt = <1200000>;
238 regulator-max-microvolt = <1200000>;
239 regulator-name = "vcc-dram";
244 regulator-min-microvolt = <1100000>;
245 regulator-max-microvolt = <1100000>;
246 regulator-name = "vdd-sys";
250 regulator-min-microvolt = <3300000>;
251 regulator-max-microvolt = <3300000>;
252 regulator-name = "vcc-hdmi";
256 regulator-min-microvolt = <2500000>;
257 regulator-max-microvolt = <2500000>;
258 regulator-name = "vcc-edp";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-name = "avdd-csi";
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
270 regulator-name = "vcc-wifi";
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <1800000>;
277 regulator-name = "cpvdd";
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 regulator-name = "vdd-1v8-csi";
287 regulator-min-microvolt = <1200000>;
288 regulator-max-microvolt = <1200000>;
289 regulator-name = "vcc-1v2-hsic";
294 regulator-min-microvolt = <1100000>;
295 regulator-max-microvolt = <1100000>;
296 regulator-name = "vdd-cpus";
300 regulator-min-microvolt = <3300000>;
301 regulator-max-microvolt = <3300000>;
302 regulator-name = "vcc-usb";
307 regulator-name = "vcc-rtc";
311 vcc-hdmi-supply = <®_dldo1>;
316 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
317 simple-audio-card,widgets = "Microphone", "Internal Microphone Left",
318 "Microphone", "Internal Microphone Right",
319 "Headphone", "Headphone Jack",
320 "Speaker", "Internal Speaker";
321 simple-audio-card,routing =
322 "Left DAC", "AIF1 Slot 0 Left",
323 "Right DAC", "AIF1 Slot 0 Right",
324 "Speaker Amp INL", "LINEOUT",
325 "Speaker Amp INR", "LINEOUT",
326 "Internal Speaker", "Speaker Amp OUTL",
327 "Internal Speaker", "Speaker Amp OUTR",
328 "Headphone Jack", "HP",
329 "AIF1 Slot 0 Left ADC", "Left ADC",
330 "AIF1 Slot 0 Right ADC", "Right ADC",
331 "Internal Microphone Left", "MBIAS",
332 "MIC1", "Internal Microphone Left",
333 "Internal Microphone Right", "HBIAS",
334 "MIC2", "Internal Microphone Right";
338 pinctrl-names = "default";
339 pinctrl-0 = <&uart0_pb_pins>;
348 usb0_vbus-supply = <®_ldo_io0>;
349 usb1_vbus-supply = <®_ldo_io0>;