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>;
68 remote-endpoint = <&ov5640_ep>;
70 hsync-active = <1>; /* Active high */
71 vsync-active = <0>; /* Active low */
72 data-active = <1>; /* Active high */
73 pclk-sample = <1>; /* Rising */
79 phy-handle = <&int_mii_phy>;
89 interrupt-parent = <&nmi_intc>;
90 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&i2c1_pe_pins>;
100 compatible = "ovti,ov5640";
102 pinctrl-names = "default";
103 pinctrl-0 = <&csi1_mclk_pin>;
104 clocks = <&ccu CLK_CSI1_MCLK>;
105 clock-names = "xclk";
107 AVDD-supply = <®_ldo3>;
108 DOVDD-supply = <®_ldo3>;
109 DVDD-supply = <®_ldo4>;
110 reset-gpios = <&pio 4 23 GPIO_ACTIVE_LOW>; /* PE23 */
111 powerdown-gpios = <&pio 4 24 GPIO_ACTIVE_HIGH>; /* PE24 */
114 ov5640_ep: endpoint {
115 remote-endpoint = <&csi1_ep>;
117 hsync-active = <1>; /* Active high */
118 vsync-active = <0>; /* Active low */
119 data-active = <1>; /* Active high */
120 pclk-sample = <1>; /* Rising */
127 vref-supply = <®_ldo2>;
132 linux,code = <KEY_SETUP>;
139 vmmc-supply = <®_dcdc3>;
141 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
146 vmmc-supply = <®_vcc_wifi>;
147 vqmmc-supply = <®_dcdc3>;
148 mmc-pwrseq = <&wifi_pwrseq>;
155 vcc-pd-supply = <®_dcdc3>;
156 vcc-pe-supply = <®_ldo3>;
159 #include "axp209.dtsi"
167 regulator-min-microvolt = <1250000>;
168 regulator-max-microvolt = <1250000>;
169 regulator-name = "vdd-sys-cpu-ephy";
174 regulator-min-microvolt = <3300000>;
175 regulator-max-microvolt = <3300000>;
176 regulator-name = "vcc-3v3";
180 regulator-name = "vdd-rtc";
185 regulator-min-microvolt = <3000000>;
186 regulator-max-microvolt = <3000000>;
187 regulator-name = "avcc";
191 regulator-min-microvolt = <2800000>;
192 regulator-max-microvolt = <2800000>;
193 regulator-name = "avdd-dovdd-2v8-csi";
194 regulator-soft-start;
195 regulator-ramp-delay = <1600>;
199 regulator-min-microvolt = <1800000>;
200 regulator-max-microvolt = <1800000>;
201 regulator-name = "dvdd-1v8-csi";
208 #address-cells = <1>;
210 compatible = "winbond,w25q128", "jedec,spi-nor";
212 spi-max-frequency = <40000000>;
226 usb0_vbus-supply = <®_vcc5v0>;