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>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&mmc0_pins>;
116 vmmc-supply = <®_dcdc1>;
117 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&mmc1_pins>;
126 vmmc-supply = <®_dldo4>;
127 vqmmc-supply = <®_eldo1>;
128 mmc-pwrseq = <&wifi_pwrseq>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&mmc2_pins>, <&mmc2_ds_pin>;
141 vmmc-supply = <®_dcdc1>;
142 vqmmc-supply = <®_eldo1>;
143 max-frequency = <200000000>;
167 compatible = "x-powers,axp803";
169 interrupt-parent = <&r_intc>;
170 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
174 /* The ANX6345 eDP-bridge is on r_i2c */
176 clock-frequency = <100000>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&r_i2c_pl89_pins>;
182 #include "axp803.dtsi"
188 &battery_power_supply {
193 regulator-min-microvolt = <2800000>;
194 regulator-max-microvolt = <2800000>;
195 regulator-name = "vcc-csi";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <3300000>;
202 regulator-name = "vcc-pl";
207 regulator-min-microvolt = <2700000>;
208 regulator-max-microvolt = <3300000>;
209 regulator-name = "vcc-pll-avcc";
213 regulator-name = "vcc-lcd";
218 regulator-min-microvolt = <3300000>;
219 regulator-max-microvolt = <3300000>;
220 regulator-name = "vcc-3v3";
225 regulator-min-microvolt = <1000000>;
226 regulator-max-microvolt = <1300000>;
227 regulator-name = "vdd-cpux";
230 /* DCDC3 is polyphased with DCDC2 */
234 regulator-min-microvolt = <1200000>;
235 regulator-max-microvolt = <1200000>;
236 regulator-name = "vcc-dram";
241 regulator-min-microvolt = <1100000>;
242 regulator-max-microvolt = <1100000>;
243 regulator-name = "vdd-sys";
247 regulator-min-microvolt = <3300000>;
248 regulator-max-microvolt = <3300000>;
249 regulator-name = "vcc-hdmi";
253 regulator-min-microvolt = <2500000>;
254 regulator-max-microvolt = <2500000>;
255 regulator-name = "vcc-edp";
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-name = "avdd-csi";
265 regulator-min-microvolt = <3300000>;
266 regulator-max-microvolt = <3300000>;
267 regulator-name = "vcc-wifi";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
274 regulator-name = "cpvdd";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
280 regulator-name = "vdd-1v8-csi";
284 regulator-min-microvolt = <1200000>;
285 regulator-max-microvolt = <1200000>;
286 regulator-name = "vcc-1v2-hsic";
291 regulator-min-microvolt = <1100000>;
292 regulator-max-microvolt = <1100000>;
293 regulator-name = "vdd-cpus";
297 regulator-min-microvolt = <3300000>;
298 regulator-max-microvolt = <3300000>;
299 regulator-name = "vcc-usb";
304 regulator-name = "vcc-rtc";
308 vcc-hdmi-supply = <®_dldo1>;
313 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
314 simple-audio-card,widgets = "Microphone", "Internal Microphone Left",
315 "Microphone", "Internal Microphone Right",
316 "Headphone", "Headphone Jack",
317 "Speaker", "Internal Speaker";
318 simple-audio-card,routing =
319 "Left DAC", "AIF1 Slot 0 Left",
320 "Right DAC", "AIF1 Slot 0 Right",
321 "Speaker Amp INL", "LINEOUT",
322 "Speaker Amp INR", "LINEOUT",
323 "Internal Speaker", "Speaker Amp OUTL",
324 "Internal Speaker", "Speaker Amp OUTR",
325 "Headphone Jack", "HP",
326 "AIF1 Slot 0 Left ADC", "Left ADC",
327 "AIF1 Slot 0 Right ADC", "Right ADC",
328 "Internal Microphone Left", "MBIAS",
329 "MIC1", "Internal Microphone Left",
330 "Internal Microphone Right", "HBIAS",
331 "MIC2", "Internal Microphone Right";
335 pinctrl-names = "default";
336 pinctrl-0 = <&uart0_pb_pins>;
345 usb0_vbus-supply = <®_ldo_io0>;
346 usb1_vbus-supply = <®_ldo_io0>;