1 // SPDX-License-Identifier: (GPL-2.0+ OR X11)
3 * Copyright 2019 Icenowy Zheng <icenowy@aosc.io>
7 #include "sun8i-v3.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
12 model = "PineCube IP Camera";
13 compatible = "pine64,pinecube", "sochip,s3", "allwinner,sun8i-v3";
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-leds";
27 label = "pine64:ir:led1";
28 gpios = <&pio 1 10 GPIO_ACTIVE_LOW>; /* PB10 */
32 label = "pine64:ir:led2";
33 gpios = <&pio 1 12 GPIO_ACTIVE_LOW>; /* PB12 */
38 compatible = "regulator-fixed";
39 regulator-name = "vcc5v0";
40 regulator-min-microvolt = <5000000>;
41 regulator-max-microvolt = <5000000>;
44 reg_vcc_wifi: vcc-wifi {
45 compatible = "regulator-fixed";
46 regulator-name = "vcc-wifi";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
49 gpio = <&pio 1 2 GPIO_ACTIVE_LOW>; /* PB2 WIFI-EN */
50 vin-supply = <®_dcdc3>;
51 startup-delay-us = <200000>;
54 wifi_pwrseq: wifi_pwrseq {
55 compatible = "mmc-pwrseq-simple";
56 reset-gpios = <&pio 1 3 GPIO_ACTIVE_LOW>; /* PB3 WIFI-RST */
57 post-power-on-delay-ms = <200>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&csi1_8bit_pins>;
71 remote-endpoint = <&ov5640_ep>;
73 hsync-active = <1>; /* Active high */
74 vsync-active = <0>; /* Active low */
75 data-active = <1>; /* Active high */
76 pclk-sample = <1>; /* Rising */
82 phy-handle = <&int_mii_phy>;
91 compatible = "x-powers,axp203",
94 interrupt-parent = <&gic>;
95 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
97 #interrupt-cells = <1>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2c1_pe_pins>;
107 compatible = "ovti,ov5640";
109 pinctrl-names = "default";
110 pinctrl-0 = <&csi1_mclk_pin>;
111 clocks = <&ccu CLK_CSI1_MCLK>;
112 clock-names = "xclk";
114 AVDD-supply = <®_ldo3>;
115 DOVDD-supply = <®_ldo3>;
116 DVDD-supply = <®_ldo4>;
117 reset-gpios = <&pio 4 23 GPIO_ACTIVE_LOW>; /* PE23 */
118 powerdown-gpios = <&pio 4 24 GPIO_ACTIVE_HIGH>; /* PE24 */
121 ov5640_ep: endpoint {
122 remote-endpoint = <&csi1_ep>;
124 hsync-active = <1>; /* Active high */
125 vsync-active = <0>; /* Active low */
126 data-active = <1>; /* Active high */
127 pclk-sample = <1>; /* Rising */
134 vref-supply = <®_ldo2>;
139 linux,code = <KEY_SETUP>;
146 vmmc-supply = <®_dcdc3>;
148 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
153 vmmc-supply = <®_vcc_wifi>;
154 vqmmc-supply = <®_dcdc3>;
155 mmc-pwrseq = <&wifi_pwrseq>;
162 vcc-pd-supply = <®_dcdc3>;
163 vcc-pe-supply = <®_ldo3>;
166 #include "axp209.dtsi"
174 regulator-min-microvolt = <1250000>;
175 regulator-max-microvolt = <1250000>;
176 regulator-name = "vdd-sys-cpu-ephy";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 regulator-name = "vcc-3v3";
187 regulator-name = "vdd-rtc";
192 regulator-min-microvolt = <3000000>;
193 regulator-max-microvolt = <3000000>;
194 regulator-name = "avcc";
198 regulator-min-microvolt = <2800000>;
199 regulator-max-microvolt = <2800000>;
200 regulator-name = "avdd-dovdd-2v8-csi";
201 regulator-soft-start;
202 regulator-ramp-delay = <1600>;
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <1800000>;
208 regulator-name = "dvdd-1v8-csi";
215 #address-cells = <1>;
217 compatible = "winbond,w25q128", "jedec,spi-nor";
219 spi-max-frequency = <40000000>;
233 usb0_vbus-supply = <®_vcc5v0>;