1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 Amarula Solutions B.V.
4 * Author: Jagan Teki <jagan@amarulasolutions.com>
9 #include "sun50i-a64.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
14 model = "Amarula A64-Relic";
15 compatible = "amarula,a64-relic", "allwinner,sun50i-a64";
22 stdout-path = "serial0:115200n8";
26 compatible = "i2c-gpio";
27 sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>;
28 scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>;
29 i2c-gpio,delay-us = <5>;
34 compatible = "ovti,ov5640";
36 pinctrl-names = "default";
37 pinctrl-0 = <&csi_mclk_pin>;
38 clocks = <&ccu CLK_CSI_MCLK>;
41 AVDD-supply = <®_aldo1>;
42 DOVDD-supply = <®_dldo3>;
43 DVDD-supply = <®_eldo3>;
44 reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */
45 powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */
49 remote-endpoint = <&csi_ep>;
51 hsync-active = <1>; /* Active high */
52 vsync-active = <0>; /* Active low */
53 data-active = <1>; /* Active high */
54 pclk-sample = <1>; /* Rising */
60 wifi_pwrseq: wifi-pwrseq {
61 compatible = "mmc-pwrseq-simple";
63 clock-names = "ext_clock";
64 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
73 remote-endpoint = <&ov5640_ep>;
75 hsync-active = <1>; /* Active high */
76 vsync-active = <0>; /* Active low */
77 data-active = <1>; /* Active high */
78 pclk-sample = <1>; /* Rising */
91 compatible = "st,stlm75";
104 compatible = "goodix,gt5663";
106 AVDD28-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */
107 interrupt-parent = <&pio>;
108 interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
109 irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
110 reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */
111 touchscreen-inverted-x;
112 touchscreen-inverted-y;
117 pinctrl-names = "default";
118 pinctrl-0 = <&mmc1_pins>;
119 vmmc-supply = <®_dcdc1>;
121 * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but
122 * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with
123 * 0Ohm register to vcc-io-wifi so eldo1 is used.
125 vqmmc-supply = <®_eldo1>;
126 mmc-pwrseq = <&wifi_pwrseq>;
133 compatible = "brcm,bcm4329-fmac";
134 interrupt-parent = <&r_pio>;
135 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */
136 interrupt-names = "host-wake";
141 pinctrl-names = "default";
142 pinctrl-0 = <&mmc2_pins>;
143 vmmc-supply = <®_dcdc1>;
158 compatible = "x-powers,axp803";
160 interrupt-parent = <&r_intc>;
161 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
162 x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
166 #include "axp803.dtsi"
170 regulator-min-microvolt = <2800000>;
171 regulator-max-microvolt = <2800000>;
172 regulator-name = "avdd-csi";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-name = "vcc-pl";
184 regulator-min-microvolt = <3000000>;
185 regulator-max-microvolt = <3000000>;
186 regulator-name = "vcc-pll-avcc";
191 regulator-min-microvolt = <3300000>;
192 regulator-max-microvolt = <3300000>;
193 regulator-name = "vcc-3v3";
198 regulator-min-microvolt = <1040000>;
199 regulator-max-microvolt = <1300000>;
200 regulator-name = "vdd-cpux";
203 /* DCDC3 is polyphased with DCDC2 */
207 regulator-min-microvolt = <1500000>;
208 regulator-max-microvolt = <1500000>;
209 regulator-name = "vcc-dram";
214 regulator-min-microvolt = <1100000>;
215 regulator-max-microvolt = <1100000>;
216 regulator-name = "vdd-sys";
220 regulator-min-microvolt = <3300000>;
221 regulator-max-microvolt = <3300000>;
222 regulator-name = "vcc-hdmi-dsi-sensor";
226 regulator-min-microvolt = <3300000>;
227 regulator-max-microvolt = <3300000>;
228 regulator-name = "vcc-mipi";
232 regulator-min-microvolt = <2800000>;
233 regulator-max-microvolt = <2800000>;
234 regulator-name = "dovdd-csi";
238 regulator-min-microvolt = <3300000>;
239 regulator-max-microvolt = <3300000>;
240 regulator-name = "vcc-wifi-io";
244 regulator-name = "usb0-vbus";
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <1800000>;
252 regulator-name = "cpvdd";
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 regulator-name = "dvdd-csi";
262 regulator-min-microvolt = <1200000>;
263 regulator-max-microvolt = <1200000>;
264 regulator-name = "vcc-1v2-hsic";
268 * The A64 chip cannot work without this regulator off, although
269 * it seems to be only driving the AR100 core.
270 * Maybe we don't still know well about CPUs domain.
274 regulator-min-microvolt = <1100000>;
275 regulator-max-microvolt = <1100000>;
276 regulator-name = "vdd-cpus";
280 regulator-min-microvolt = <2800000>;
281 regulator-max-microvolt = <2800000>;
282 regulator-name = "vcc-ctp";
287 regulator-name = "vcc-rtc";
291 pinctrl-names = "default";
292 pinctrl-0 = <&uart0_pb_pins>;
302 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
303 usb0_vbus-supply = <®_drivevbus>;