1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2020 Rockchip Electronics Co., Ltd. 4 */ 5/dts-v1/; 6#include "rv1109.dtsi" 7#include "rv1126-evb-v12.dtsi" 8/ { 9 model = "Rockchip RV1109 V12 FACIAL GATE Board"; 10 compatible = "rockchip,rv1109-evb-ddr3-v12-facial-gate", "rockchip,rv1109"; 11 12 chosen { 13 bootargs = "earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait snd_aloop.index=7"; 14 }; 15 16 pwmleds { 17 compatible = "pwm-leds"; 18 19 pwmi_ir { 20 label = "PWM-IR"; 21 pwms = <&pwm11 0 25000 0>; 22 max-brightness = <255>; 23 }; 24 }; 25 26 vcc1v2_dvdd: vcc1v2-dvdd { 27 compatible = "regulator-fixed"; 28 regulator-name = "vcc1v2_dvdd"; 29 regulator-min-microvolt = <1200000>; 30 regulator-max-microvolt = <1200000>; 31 }; 32 33 vcc2v8_avdd: vcc2v8-avdd { 34 compatible = "regulator-fixed"; 35 regulator-name = "vcc2v8_avdd"; 36 regulator-min-microvolt = <2800000>; 37 regulator-max-microvolt = <2800000>; 38 }; 39}; 40 41&csi_dphy0 { 42 status = "okay"; 43 ports { 44 port@0 { 45 mipi_in_ucam0: endpoint@1 { 46 remote-endpoint = <&ucam_out0>; 47 data-lanes = <1 2>; 48 }; 49 }; 50 port@1 { 51 csidphy0_out: endpoint@0 { 52 remote-endpoint = <&mipi_csi2_input>; 53 data-lanes = <1 2>; 54 }; 55 }; 56 }; 57}; 58 59&csi_dphy1 { 60 status = "okay"; 61 ports { 62 port@0 { 63 csi_dphy1_input: endpoint@1 { 64 remote-endpoint = <&ucam_out1>; 65 data-lanes = <1 2>; 66 }; 67 }; 68 port@1 { 69 csi_dphy1_output: endpoint@0 { 70 remote-endpoint = <&isp_in>; 71 data-lanes = <1 2>; 72 }; 73 }; 74 }; 75}; 76 77&i2c1 { 78 /delete-node/ ar0230@10; 79 /delete-node/ ov4689@36; 80 /delete-node/ os04a10@36; 81 ov2718: ov2718@10 { 82 compatible = "ovti,ov2718"; 83 reg = <0x10>; 84 clocks = <&cru CLK_MIPICSI_OUT>; 85 clock-names = "xvclk"; 86 power-domains = <&power RV1126_PD_VI>; 87 pinctrl-names = "rockchip,camera_default"; 88 pinctrl-0 = <&mipicsi_clk1>; 89 avdd-supply = <&vcc_avdd>; 90 dovdd-supply = <&vcc_dovdd>; 91 dvdd-supply = <&vcc_dvdd>; 92 pwd-gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; 93 reset-gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>; 94 rockchip,camera-module-index = <1>; 95 rockchip,camera-module-facing = "front"; 96 rockchip,camera-module-name = "YT-RV1109-3-V1"; 97 rockchip,camera-module-lens-name = "M43-4IR-2MP-F2"; 98 ir-cut = <&cam_ircut0>; 99 port { 100 ucam_out1: endpoint { 101 remote-endpoint = <&csi_dphy1_input>; 102 data-lanes = <1 2>; 103 }; 104 }; 105 }; 106 107 gc2053: gc2053@37 { 108 compatible = "galaxycore,gc2053"; 109 reg = <0x37>; 110 111 clocks = <&cru CLK_MIPICSI_OUT>; 112 clock-names = "xvclk"; 113 114 power-domains = <&power RV1126_PD_VI>; 115 pinctrl-names = "rockchip,camera_default"; 116 pinctrl-0 = <&mipicsi_clk0>; 117 power-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; 118 pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_LOW>; 119 reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>; 120 121 avdd-supply = <&vcc2v8_avdd>; 122 dovdd-supply = <&vcc_dovdd>; 123 dvdd-supply = <&vcc1v2_dvdd>; 124 125 rockchip,camera-module-index = <0>; 126 rockchip,camera-module-facing = "front"; 127 rockchip,camera-module-name = "YT-RV1109-2-V1"; 128 rockchip,camera-module-lens-name = "40IR-2MP-F20"; 129 port { 130 ucam_out0: endpoint { 131 remote-endpoint = <&mipi_in_ucam0>; 132 data-lanes = <1 2>; 133 }; 134 }; 135 }; 136}; 137 138/* isp cma buffer don't fiddle with it, dual camera(1920 * 1080) need 92M buffer */ 139&isp_reserved { 140 size = <0x5c00000>; 141}; 142 143&mipi_csi2 { 144 status = "okay"; 145 ports { 146 port@0 { 147 mipi_csi2_input: endpoint@1 { 148 remote-endpoint = <&csidphy0_out>; 149 data-lanes = <1 2>; 150 }; 151 }; 152 153 port@1 { 154 mipi_csi2_output: endpoint@0 { 155 remote-endpoint = <&cif_mipi_in>; 156 data-lanes = <1 2>; 157 }; 158 }; 159 }; 160}; 161 162&pwm11 { 163 status = "okay"; 164 pinctrl-names = "active"; 165 pinctrl-0 = <&pwm11m1_pins_pull_down>; 166}; 167 168&rk809 { 169 regulators { 170 vcc_dvdd: LDO_REG6 { 171 regulator-min-microvolt = <1300000>; 172 regulator-max-microvolt = <1300000>; 173 }; 174 175 vcc_avdd: LDO_REG7 { 176 regulator-min-microvolt = <3300000>; 177 regulator-max-microvolt = <3300000>; 178 }; 179 }; 180}; 181 182&rkcif_mipi_lvds { 183 status = "okay"; 184 port { 185 cif_mipi_in: endpoint { 186 remote-endpoint = <&mipi_csi2_output>; 187 data-lanes = <1 2>; 188 }; 189 }; 190}; 191 192&rkcif_mipi_lvds_sditf { 193 status = "okay"; 194 195 port { 196 cif_sditf: endpoint { 197 remote-endpoint = <&isp_virt1_in>; 198 data-lanes = <1 2 3 4>; 199 }; 200 }; 201}; 202 203&rkisp_vir0 { 204 ports { 205 port@0 { 206 isp_in: endpoint@0 { 207 remote-endpoint = <&csi_dphy1_output>; 208 }; 209 }; 210 }; 211}; 212 213&rkisp_vir1 { 214 status = "okay"; 215 ports { 216 port@0 { 217 reg = <0>; 218 #address-cells = <1>; 219 #size-cells = <0>; 220 221 isp_virt1_in: endpoint@0 { 222 reg = <0>; 223 remote-endpoint = <&cif_sditf>; 224 }; 225 }; 226 }; 227}; 228 229&rkispp_vir1 { 230 status = "okay"; 231}; 232 233&rkispp { 234 status = "okay"; 235 /* the max input w h and fps of mulit sensor */ 236 max-input = <1920 1080 30>; 237}; 238