|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | +/* |
| 3 | + * Copyright (c) 2024 Rockchip Electronics Co., Ltd. |
| 4 | + * |
| 5 | + * Version Sensor I2C_ADDR Lanes |
| 6 | + * v1.0.0 imx415 0x1a lane0~1(dphy1) |
| 7 | + * imx415 0x1a lane2~3(dphy2) |
| 8 | + */ |
| 9 | + |
| 10 | +&csi2_dcphy0 { |
| 11 | + status = "okay"; |
| 12 | + |
| 13 | + ports { |
| 14 | + #address-cells = <1>; |
| 15 | + #size-cells = <0>; |
| 16 | + |
| 17 | + port@0 { |
| 18 | + reg = <0>; |
| 19 | + #address-cells = <1>; |
| 20 | + #size-cells = <0>; |
| 21 | + |
| 22 | + csi_dphy_input1: endpoint@1 { |
| 23 | + reg = <1>; |
| 24 | + remote-endpoint = <&imx415_out0>; |
| 25 | + data-lanes = <1 2 3 4>; |
| 26 | + }; |
| 27 | + }; |
| 28 | + |
| 29 | + port@1 { |
| 30 | + reg = <1>; |
| 31 | + #address-cells = <1>; |
| 32 | + #size-cells = <0>; |
| 33 | + |
| 34 | + csi_dphy_output: endpoint@0 { |
| 35 | + reg = <0>; |
| 36 | + remote-endpoint = <&mipi1_csi2_input>; |
| 37 | + }; |
| 38 | + }; |
| 39 | + }; |
| 40 | +}; |
| 41 | + |
| 42 | +&csi2_dphy1 { |
| 43 | + status = "okay"; |
| 44 | + |
| 45 | + ports { |
| 46 | + #address-cells = <1>; |
| 47 | + #size-cells = <0>; |
| 48 | + |
| 49 | + port@0 { |
| 50 | + reg = <0>; |
| 51 | + #address-cells = <1>; |
| 52 | + #size-cells = <0>; |
| 53 | + |
| 54 | + csi_dphy_input2: endpoint@3 { |
| 55 | + reg = <3>; |
| 56 | + remote-endpoint = <&imx415_out1>; |
| 57 | + data-lanes = <1 2 3 4>; |
| 58 | + }; |
| 59 | + }; |
| 60 | + |
| 61 | + port@1 { |
| 62 | + reg = <1>; |
| 63 | + #address-cells = <1>; |
| 64 | + #size-cells = <0>; |
| 65 | + |
| 66 | + csi_dphy_output1: endpoint@0 { |
| 67 | + reg = <0>; |
| 68 | + remote-endpoint = <&mipi3_csi2_input>; |
| 69 | + }; |
| 70 | + }; |
| 71 | + }; |
| 72 | +}; |
| 73 | + |
| 74 | + |
| 75 | +&i2c4 { |
| 76 | + status = "okay"; |
| 77 | + pinctrl-0 = <&i2c4m3_xfer>; |
| 78 | + |
| 79 | + imx415_0: imx415@1a { |
| 80 | + compatible = "sony,imx415"; |
| 81 | + reg = <0x1a>; |
| 82 | + clocks = <&cru CLK_MIPI_CAMERAOUT_M0>; |
| 83 | + clock-names = "xvclk"; |
| 84 | + pinctrl-names = "default"; |
| 85 | + pinctrl-0 = <&cam_clk0m0_clk0>; |
| 86 | + power-domains = <&power RK3576_PD_VI>; |
| 87 | + avdd-supply = <&vcc_mipidcphy0>; |
| 88 | + // reset-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>; |
| 89 | + rockchip,camera-module-index = <0>; |
| 90 | + rockchip,camera-module-facing = "back"; |
| 91 | + rockchip,camera-module-name = "CMK-OT2022-PX1"; |
| 92 | + rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20"; |
| 93 | + port { |
| 94 | + imx415_out0: endpoint { |
| 95 | + remote-endpoint = <&csi_dphy_input1>; |
| 96 | + data-lanes = <1 2 3 4>; |
| 97 | + }; |
| 98 | + }; |
| 99 | + }; |
| 100 | +}; |
| 101 | + |
| 102 | +&i2c5 { |
| 103 | + status = "okay"; |
| 104 | + pinctrl-0 = <&i2c5m3_xfer>; |
| 105 | + |
| 106 | + imx415_1: imx415@1a { |
| 107 | + compatible = "sony,imx415"; |
| 108 | + reg = <0x1a>; |
| 109 | + clocks = <&cru CLK_MIPI_CAMERAOUT_M1>; |
| 110 | + clock-names = "xvclk"; |
| 111 | + pinctrl-names = "default"; |
| 112 | + pinctrl-0 = <&cam_clk1m0_clk1>; |
| 113 | + power-domains = <&power RK3576_PD_VI>; |
| 114 | + avdd-supply = <&vcc_mipicsi0>; |
| 115 | + // reset-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>; |
| 116 | + rockchip,camera-module-index = <1>; |
| 117 | + rockchip,camera-module-facing = "back"; |
| 118 | + rockchip,camera-module-name = "CMK-OT2022-PX1"; |
| 119 | + rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20"; |
| 120 | + port { |
| 121 | + imx415_out1: endpoint { |
| 122 | + remote-endpoint = <&csi_dphy_input2>; |
| 123 | + data-lanes = <1 2 3 4>; |
| 124 | + }; |
| 125 | + }; |
| 126 | + }; |
| 127 | +}; |
| 128 | + |
| 129 | +&mipi0_csi2 { |
| 130 | + status = "okay"; |
| 131 | + |
| 132 | + ports { |
| 133 | + #address-cells = <1>; |
| 134 | + #size-cells = <0>; |
| 135 | + |
| 136 | + port@0 { |
| 137 | + reg = <0>; |
| 138 | + #address-cells = <1>; |
| 139 | + #size-cells = <0>; |
| 140 | + |
| 141 | + mipi1_csi2_input: endpoint@1 { |
| 142 | + reg = <1>; |
| 143 | + remote-endpoint = <&csi_dphy_output>; |
| 144 | + }; |
| 145 | + }; |
| 146 | + |
| 147 | + port@1 { |
| 148 | + reg = <1>; |
| 149 | + #address-cells = <1>; |
| 150 | + #size-cells = <0>; |
| 151 | + |
| 152 | + mipi1_csi2_output: endpoint@0 { |
| 153 | + reg = <0>; |
| 154 | + remote-endpoint = <&cif_mipi_in>; |
| 155 | + }; |
| 156 | + }; |
| 157 | + }; |
| 158 | +}; |
| 159 | + |
| 160 | +&mipi1_csi2 { |
| 161 | + status = "okay"; |
| 162 | + |
| 163 | + ports { |
| 164 | + #address-cells = <1>; |
| 165 | + #size-cells = <0>; |
| 166 | + |
| 167 | + port@0 { |
| 168 | + reg = <0>; |
| 169 | + #address-cells = <1>; |
| 170 | + #size-cells = <0>; |
| 171 | + |
| 172 | + mipi3_csi2_input: endpoint@1 { |
| 173 | + reg = <1>; |
| 174 | + remote-endpoint = <&csi_dphy_output1>; |
| 175 | + }; |
| 176 | + }; |
| 177 | + |
| 178 | + port@1 { |
| 179 | + reg = <1>; |
| 180 | + #address-cells = <1>; |
| 181 | + #size-cells = <0>; |
| 182 | + |
| 183 | + mipi3_csi2_output: endpoint@0 { |
| 184 | + reg = <0>; |
| 185 | + remote-endpoint = <&cif_mipi_in1>; |
| 186 | + }; |
| 187 | + }; |
| 188 | + }; |
| 189 | +}; |
| 190 | + |
| 191 | +&rkcif { |
| 192 | + status = "okay"; |
| 193 | +}; |
| 194 | + |
| 195 | +&rkcif_mipi_lvds { |
| 196 | + status = "okay"; |
| 197 | + |
| 198 | + port { |
| 199 | + /* MIPI CSI-2 endpoint */ |
| 200 | + cif_mipi_in: endpoint { |
| 201 | + remote-endpoint = <&mipi1_csi2_output>; |
| 202 | + }; |
| 203 | + }; |
| 204 | +}; |
| 205 | + |
| 206 | +&rkcif_mipi_lvds_sditf { |
| 207 | + status = "okay"; |
| 208 | + |
| 209 | + port { |
| 210 | + /* MIPI CSI-2 endpoint */ |
| 211 | + mipi_lvds_sditf: endpoint { |
| 212 | + remote-endpoint = <&isp_vir0>; |
| 213 | + }; |
| 214 | + }; |
| 215 | +}; |
| 216 | + |
| 217 | +&rkcif_mipi_lvds1 { |
| 218 | + status = "okay"; |
| 219 | + |
| 220 | + port { |
| 221 | + /* MIPI CSI-2 endpoint */ |
| 222 | + cif_mipi_in1: endpoint { |
| 223 | + remote-endpoint = <&mipi3_csi2_output>; |
| 224 | + }; |
| 225 | + }; |
| 226 | +}; |
| 227 | + |
| 228 | +&rkcif_mipi_lvds1_sditf { |
| 229 | + status = "okay"; |
| 230 | + |
| 231 | + port { |
| 232 | + mipi1_lvds_sditf: endpoint { |
| 233 | + remote-endpoint = <&isp_vir1>; |
| 234 | + }; |
| 235 | + }; |
| 236 | +}; |
| 237 | + |
| 238 | +&rkcif_mmu { |
| 239 | + status = "okay"; |
| 240 | +}; |
| 241 | + |
| 242 | +&rkisp { |
| 243 | + status = "okay"; |
| 244 | +}; |
| 245 | + |
| 246 | +&rkisp_mmu { |
| 247 | + status = "okay"; |
| 248 | +}; |
| 249 | + |
| 250 | +&rkisp_vir0 { |
| 251 | + status = "okay"; |
| 252 | + |
| 253 | + port@0 { |
| 254 | + #address-cells = <1>; |
| 255 | + #size-cells = <0>; |
| 256 | + |
| 257 | + isp_vir0: endpoint@0 { |
| 258 | + reg = <0>; |
| 259 | + remote-endpoint = <&mipi_lvds_sditf>; |
| 260 | + }; |
| 261 | + }; |
| 262 | +}; |
| 263 | + |
| 264 | +&rkisp_vir1 { |
| 265 | + status = "okay"; |
| 266 | + |
| 267 | + port { |
| 268 | + #address-cells = <1>; |
| 269 | + #size-cells = <0>; |
| 270 | + |
| 271 | + isp_vir1: endpoint@0 { |
| 272 | + reg = <0>; |
| 273 | + remote-endpoint = <&mipi1_lvds_sditf>; |
| 274 | + }; |
| 275 | + }; |
| 276 | +}; |
| 277 | + |
| 278 | +&rkvpss { |
| 279 | + status = "okay"; |
| 280 | +}; |
| 281 | + |
| 282 | +&rkvpss_mmu { |
| 283 | + status = "okay"; |
| 284 | +}; |
| 285 | + |
| 286 | +&rkvpss_vir0 { |
| 287 | + status = "okay"; |
| 288 | +}; |
| 289 | + |
| 290 | +&rkvpss_vir1 { |
| 291 | + status = "okay"; |
| 292 | +}; |
0 commit comments