1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.xyz>
9 #include "sun50i-a64.dtsi"
10 #include "sun50i-a64-cpu-opp.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/pwm/pwm.h>
17 model = "PineTab, Development Sample";
18 compatible = "pine64,pinetab", "allwinner,sun50i-a64";
22 ethernet0 = &rtl8723cs;
25 backlight: backlight {
26 compatible = "pwm-backlight";
27 pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
28 brightness-levels = <0 16 18 20 22 24 26 29 32 35 38 42 46 51 56 62 68 75 83 91 100>;
29 default-brightness-level = <15>;
30 enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
31 power-supply = <&vdd_bl>;
35 stdout-path = "serial0:115200n8";
39 compatible = "i2c-gpio";
40 sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */
41 scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */
42 i2c-gpio,delay-us = <5>;
48 compatible = "ovti,ov5640";
50 pinctrl-names = "default";
51 pinctrl-0 = <&csi_mclk_pin>;
52 clocks = <&ccu CLK_CSI_MCLK>;
55 AVDD-supply = <®_dldo3>;
56 DOVDD-supply = <®_aldo1>;
57 DVDD-supply = <®_eldo3>;
58 reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */
59 powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */
63 remote-endpoint = <&csi_ep>;
65 hsync-active = <1>; /* Active high */
66 vsync-active = <0>; /* Active low */
67 data-active = <1>; /* Active high */
68 pclk-sample = <1>; /* Rising */
74 speaker_amp: audio-amplifier {
75 compatible = "simple-audio-amplifier";
76 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
77 sound-name-prefix = "Speaker Amp";
81 compatible = "regulator-fixed";
82 regulator-name = "bl-3v3";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
89 wifi_pwrseq: wifi_pwrseq {
90 compatible = "mmc-pwrseq-simple";
91 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
92 post-power-on-delay-ms = <200>;
101 cpvdd-supply = <®_eldo1>;
106 cpu-supply = <®_dcdc2>;
110 cpu-supply = <®_dcdc2>;
114 cpu-supply = <®_dcdc2>;
118 cpu-supply = <®_dcdc2>;
126 remote-endpoint = <&ov5640_ep>;
128 hsync-active = <1>; /* Active high */
129 vsync-active = <0>; /* Active low */
130 data-active = <1>; /* Active high */
131 pclk-sample = <1>; /* Rising */
149 vcc-dsi-supply = <®_dldo1>;
153 compatible = "feixin,k101-im2ba02";
155 avdd-supply = <®_dc1sw>;
156 dvdd-supply = <®_dc1sw>;
157 cvdd-supply = <®_ldo_io1>;
158 reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
159 backlight = <&backlight>;
175 compatible = "goodix,gt9271";
177 interrupt-parent = <&pio>;
178 interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
179 irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
180 reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
181 AVDD28-supply = <®_ldo_io1>;
192 /* TODO: add Bochs BMA223 accelerometer here */
196 vref-supply = <®_aldo3>;
201 linux,code = <KEY_VOLUMEUP>;
207 label = "Volume Down";
208 linux,code = <KEY_VOLUMEDOWN>;
219 pinctrl-names = "default";
220 pinctrl-0 = <&mmc0_pins>;
221 vmmc-supply = <®_dcdc1>;
222 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&mmc1_pins>;
231 vmmc-supply = <®_dldo4>;
232 vqmmc-supply = <®_eldo1>;
233 mmc-pwrseq = <&wifi_pwrseq>;
244 pinctrl-names = "default";
245 pinctrl-0 = <&mmc2_pins>;
246 vmmc-supply = <®_dcdc1>;
247 vqmmc-supply = <®_dcdc1>;
266 compatible = "x-powers,axp803";
268 interrupt-parent = <&r_intc>;
269 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
270 x-powers,drive-vbus-en;
274 #include "axp803.dtsi"
280 &battery_power_supply {
285 regulator-min-microvolt = <2800000>;
286 regulator-max-microvolt = <2800000>;
287 regulator-name = "dovdd-csi";
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <3300000>;
294 regulator-name = "vcc-pl";
299 regulator-min-microvolt = <2700000>;
300 regulator-max-microvolt = <3300000>;
301 regulator-name = "vcc-pll-avcc";
305 regulator-name = "vcc-lcd";
310 regulator-min-microvolt = <3300000>;
311 regulator-max-microvolt = <3300000>;
312 regulator-name = "vcc-3v3";
317 regulator-min-microvolt = <1000000>;
318 regulator-max-microvolt = <1300000>;
319 regulator-name = "vdd-cpux";
322 /* DCDC3 is polyphased with DCDC2 */
326 regulator-min-microvolt = <1200000>;
327 regulator-max-microvolt = <1200000>;
328 regulator-name = "vcc-dram";
333 regulator-min-microvolt = <1100000>;
334 regulator-max-microvolt = <1100000>;
335 regulator-name = "vdd-sys";
340 regulator-min-microvolt = <3300000>;
341 regulator-max-microvolt = <3300000>;
342 regulator-name = "vcc-hdmi-dsi-sensor";
346 regulator-min-microvolt = <2800000>;
347 regulator-max-microvolt = <2800000>;
348 regulator-name = "avdd-csi";
352 regulator-min-microvolt = <3300000>;
353 regulator-max-microvolt = <3300000>;
354 regulator-name = "vcc-wifi";
358 regulator-name = "usb0-vbus";
364 regulator-min-microvolt = <1800000>;
365 regulator-max-microvolt = <1800000>;
366 regulator-name = "cpvdd";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
372 regulator-name = "vcca-1v8";
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <1800000>;
378 regulator-name = "dvdd-1v8-csi";
382 regulator-min-microvolt = <1200000>;
383 regulator-max-microvolt = <1200000>;
384 regulator-name = "vcc-1v2-hsic";
389 regulator-min-microvolt = <1100000>;
390 regulator-max-microvolt = <1100000>;
391 regulator-name = "vdd-cpus";
395 regulator-min-microvolt = <3300000>;
396 regulator-max-microvolt = <3300000>;
397 regulator-name = "vcc-usb";
402 regulator-min-microvolt = <3300000>;
403 regulator-max-microvolt = <3300000>;
404 regulator-enable-ramp-delay = <3500000>;
405 regulator-name = "vcc-touchscreen";
410 regulator-name = "vcc-rtc";
415 simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
416 simple-audio-card,widgets = "Microphone", "Internal Microphone Left",
417 "Microphone", "Internal Microphone Right",
418 "Headphone", "Headphone Jack",
419 "Speaker", "Internal Speaker";
420 simple-audio-card,routing =
423 "Speaker Amp INL", "LINEOUT",
424 "Speaker Amp INR", "LINEOUT",
425 "Internal Speaker", "Speaker Amp OUTL",
426 "Internal Speaker", "Speaker Amp OUTR",
427 "Headphone Jack", "HP",
430 "Internal Microphone Left", "MBIAS",
431 "MIC1", "Internal Microphone Left",
432 "Internal Microphone Right", "HBIAS",
433 "MIC2", "Internal Microphone Right";
437 pinctrl-names = "default";
438 pinctrl-0 = <&uart0_pb_pins>;
452 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
453 usb0_vbus_power-supply = <&usb_power_supply>;
454 usb0_vbus-supply = <®_drivevbus>;
455 usb1_vbus-supply = <®_ldo_io0>;