1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/ { 8 vcc_mipicsi0: vcc-mipicsi0-regulator { 9 compatible = "regulator-fixed"; 10 gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; 11 pinctrl-names = "default"; 12 pinctrl-0 = <&mipicsi0_pwr>; 13 regulator-name = "vcc_mipicsi0"; 14 enable-active-high; 15 }; 16 17}; 18 19&csi2_dphy0 { 20 status = "okay"; 21 22 ports { 23 #address-cells = <1>; 24 #size-cells = <0>; 25 port@0 { 26 reg = <0>; 27 #address-cells = <1>; 28 #size-cells = <0>; 29 30 mipi_in_ucam0: endpoint@1 { 31 reg = <1>; 32 remote-endpoint = <&gc8034_out0>; 33 data-lanes = <1 2 3 4>; 34 }; 35 mipi_in_ucam1: endpoint@2 { 36 reg = <2>; 37 remote-endpoint = <&ov5695_out0>; 38 data-lanes = <1 2>; 39 }; 40 41 }; 42 port@1 { 43 reg = <1>; 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 csidcphy0_out: endpoint@0 { 48 reg = <0>; 49 remote-endpoint = <&mipi0_csi2_input>; 50 }; 51 }; 52 }; 53}; 54 55&i2c4 { 56 status = "okay"; 57 58 dw9714: dw9714@c { 59 compatible = "dongwoon,dw9714"; 60 status = "okay"; 61 reg = <0x0c>; 62 rockchip,vcm-start-current = <10>; 63 rockchip,vcm-rated-current = <85>; 64 rockchip,vcm-step-mode = <5>; 65 rockchip,camera-module-index = <0>; 66 rockchip,camera-module-facing = "back"; 67 }; 68 69 gc8034: gc8034@37 { 70 compatible = "galaxycore,gc8034"; 71 reg = <0x37>; 72 clocks = <&cru CLK_CAM0_OUT2IO>; 73 clock-names = "xvclk"; 74 pinctrl-names = "default"; 75 pinctrl-0 = <&camm0_clk0_out>; 76 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_LOW>; 77 pwdn-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>; 78 avdd-supply = <&vcc2v8_dvp>; 79 dovdd-supply = <&vcc1v8_dvp>; 80 dvdd-supply = <&vcc_mipicsi0>; 81 rockchip,camera-module-index = <0>; 82 rockchip,camera-module-facing = "back"; 83 rockchip,camera-module-name = "RK-CMK-8M-2-v1"; 84 rockchip,camera-module-lens-name = "CK8401"; 85 lens-focus = <&dw9714>; 86 port { 87 gc8034_out0: endpoint { 88 remote-endpoint = <&mipi_in_ucam0>; 89 data-lanes = <1 2 3 4>; 90 }; 91 }; 92 }; 93 ov5695: ov5695@36 { 94 compatible = "ovti,ov5695"; 95 reg = <0x36>; 96 clocks = <&cru CLK_CAM0_OUT2IO>; 97 clock-names = "xvclk"; 98 pinctrl-names = "default"; 99 pinctrl-0 = <&camm0_clk0_out>; 100 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; 101 pwdn-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; 102 avdd-supply = <&vcc2v8_dvp>; 103 dovdd-supply = <&vcc1v8_dvp>; 104 dvdd-supply = <&vcc_mipicsi0>; 105 rockchip,camera-module-index = <0>; 106 rockchip,camera-module-facing = "back"; 107 rockchip,camera-module-name = "TongJu"; 108 rockchip,camera-module-lens-name = "CHT842-MD"; 109 port { 110 ov5695_out0: endpoint { 111 remote-endpoint = <&mipi_in_ucam1>; 112 data-lanes = <1 2>; 113 }; 114 }; 115 }; 116 117}; 118 119&csi2_dphy0_hw { 120 status = "okay"; 121}; 122 123&mipi0_csi2 { 124 status = "okay"; 125 126 ports { 127 #address-cells = <1>; 128 #size-cells = <0>; 129 130 port@0 { 131 reg = <0>; 132 #address-cells = <1>; 133 #size-cells = <0>; 134 135 mipi0_csi2_input: endpoint@1 { 136 reg = <1>; 137 remote-endpoint = <&csidcphy0_out>; 138 }; 139 }; 140 141 port@1 { 142 reg = <1>; 143 #address-cells = <1>; 144 #size-cells = <0>; 145 146 mipi0_csi2_output: endpoint@0 { 147 reg = <0>; 148 remote-endpoint = <&cif_mipi_in0>; 149 }; 150 }; 151 }; 152}; 153 154&rkcif { 155 status = "okay"; 156}; 157 158&rkcif_mipi_lvds { 159 status = "okay"; 160 161 port { 162 cif_mipi_in0: endpoint { 163 remote-endpoint = <&mipi0_csi2_output>; 164 }; 165 }; 166}; 167 168&rkcif_mipi_lvds_sditf { 169 status = "okay"; 170 171 port { 172 mipi_lvds_sditf: endpoint { 173 remote-endpoint = <&isp_vir0>; 174 }; 175 }; 176}; 177 178&rkcif_mmu { 179 status = "okay"; 180}; 181 182&rkisp { 183 status = "okay"; 184}; 185 186&rkisp_mmu { 187 status = "okay"; 188}; 189 190&rkisp_vir0 { 191 status = "okay"; 192 193 port { 194 #address-cells = <1>; 195 #size-cells = <0>; 196 197 isp_vir0: endpoint@0 { 198 reg = <0>; 199 remote-endpoint = <&mipi_lvds_sditf>; 200 }; 201 }; 202}; 203 204&pinctrl { 205 cam { 206 mipicsi0_pwr: mipicsi0-pwr { 207 rockchip,pins = 208 /* camera power en */ 209 <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 210 }; 211 }; 212}; 213 214