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>;
92 interrupt-parent = <&nmi_intc>;
93 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&i2c1_pe_pins>;
103 compatible = "ovti,ov5640";
105 pinctrl-names = "default";
106 pinctrl-0 = <&csi1_mclk_pin>;
107 clocks = <&ccu CLK_CSI1_MCLK>;
108 clock-names = "xclk";
110 AVDD-supply = <®_ldo3>;
111 DOVDD-supply = <®_ldo3>;
112 DVDD-supply = <®_ldo4>;
113 reset-gpios = <&pio 4 23 GPIO_ACTIVE_LOW>; /* PE23 */
114 powerdown-gpios = <&pio 4 24 GPIO_ACTIVE_HIGH>; /* PE24 */
117 ov5640_ep: endpoint {
118 remote-endpoint = <&csi1_ep>;
120 hsync-active = <1>; /* Active high */
121 vsync-active = <0>; /* Active low */
122 data-active = <1>; /* Active high */
123 pclk-sample = <1>; /* Rising */
130 vref-supply = <®_ldo2>;
135 linux,code = <KEY_SETUP>;
142 vmmc-supply = <®_dcdc3>;
144 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
149 vmmc-supply = <®_vcc_wifi>;
150 vqmmc-supply = <®_dcdc3>;
151 mmc-pwrseq = <&wifi_pwrseq>;
158 vcc-pd-supply = <®_dcdc3>;
159 vcc-pe-supply = <®_ldo3>;
162 #include "axp209.dtsi"
170 regulator-min-microvolt = <1250000>;
171 regulator-max-microvolt = <1250000>;
172 regulator-name = "vdd-sys-cpu-ephy";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-name = "vcc-3v3";
183 regulator-name = "vdd-rtc";
188 regulator-min-microvolt = <3000000>;
189 regulator-max-microvolt = <3000000>;
190 regulator-name = "avcc";
194 regulator-min-microvolt = <2800000>;
195 regulator-max-microvolt = <2800000>;
196 regulator-name = "avdd-dovdd-2v8-csi";
197 regulator-soft-start;
198 regulator-ramp-delay = <1600>;
202 regulator-min-microvolt = <1800000>;
203 regulator-max-microvolt = <1800000>;
204 regulator-name = "dvdd-1v8-csi";
211 #address-cells = <1>;
213 compatible = "winbond,w25q128", "jedec,spi-nor";
215 spi-max-frequency = <40000000>;
229 usb0_vbus-supply = <®_vcc5v0>;