|
147 | 147 | status = "okay"; |
148 | 148 | }; |
149 | 149 |
|
| 150 | +&camss { |
| 151 | + vdda-supply = <&pm8937_l2>; |
| 152 | + status = "okay"; |
| 153 | + |
| 154 | + ports { |
| 155 | + port@0 { |
| 156 | + reg = <0>; |
| 157 | + csiphy0_ep: endpoint { |
| 158 | + clock-lanes = <7>; |
| 159 | + data-lanes = <0 1 2 3>; |
| 160 | + remote-endpoint = <&rear_cam_ep>; |
| 161 | + }; |
| 162 | + }; |
| 163 | + port@1 { |
| 164 | + reg = <1>; |
| 165 | + csiphy1_ep: endpoint { |
| 166 | + clock-lanes = <7>; |
| 167 | + data-lanes = <0 1>; |
| 168 | + remote-endpoint = <&front_cam_ep>; |
| 169 | + }; |
| 170 | + }; |
| 171 | + }; |
| 172 | +}; |
| 173 | + |
| 174 | +&cci { |
| 175 | + pinctrl-names = "default"; |
| 176 | + pinctrl-0 = <&cci0_default>, |
| 177 | + <&cci1_default>, |
| 178 | + <&camss_mclk0_default>, |
| 179 | + <&camss_mclk1_default>; |
| 180 | + status = "okay"; |
| 181 | +}; |
| 182 | + |
| 183 | +&cci_i2c0 { |
| 184 | + focus_rear: vcm@c { |
| 185 | + compatible = "dongwoon,dw9718s"; |
| 186 | + reg = <0x0c>; |
| 187 | + vdd-supply = <&pm8937_l17>; |
| 188 | + }; |
| 189 | + |
| 190 | + camera@10 { |
| 191 | + compatible = "ovti,ov5675"; |
| 192 | + reg = <0x10>; |
| 193 | + |
| 194 | + clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; |
| 195 | + clock-rates = <19200000>; |
| 196 | + |
| 197 | + pinctrl-0 = <&cam_sensor_front_default>; |
| 198 | + pinctrl-names = "default"; |
| 199 | + |
| 200 | + reset-gpios = <&tlmm 40 GPIO_ACTIVE_LOW>; |
| 201 | + |
| 202 | + avdd-supply = <&pm8937_l22>; |
| 203 | + dvdd-supply = <&pm8937_l23>; |
| 204 | + dovdd-supply = <&pm8937_l6>; |
| 205 | + |
| 206 | + orientation = <0>; /* Front */ |
| 207 | + rotation = <90>; |
| 208 | + |
| 209 | + /* flash-leds = <&flash_front>; NOTYET: spmi-flash-led-v1 needs v4l2 support */ |
| 210 | + |
| 211 | + port { |
| 212 | + front_cam_ep: endpoint { |
| 213 | + data-lanes = <0 1>; |
| 214 | + link-frequencies = /bits/ 64 <450000000>; |
| 215 | + remote-endpoint = <&csiphy1_ep>; |
| 216 | + }; |
| 217 | + }; |
| 218 | + }; |
| 219 | + |
| 220 | + camera@2d { |
| 221 | + compatible = "samsung,s5k3l8"; |
| 222 | + reg = <0x2d>; |
| 223 | + |
| 224 | + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; |
| 225 | + clock-frequency = <24000000>; |
| 226 | + |
| 227 | + pinctrl-0 = <&cam_sensor_rear_default>; |
| 228 | + pinctrl-names = "default"; |
| 229 | + |
| 230 | + reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; |
| 231 | + |
| 232 | + avdd-supply = <&pm8937_l22>; |
| 233 | + dvdd-supply = <&pm8937_l23>; |
| 234 | + vio-supply = <&pm8937_l6>; |
| 235 | + aux-supply = <&pm8937_l17>; |
| 236 | + |
| 237 | + orientation = <1>; /* Rear */ |
| 238 | + rotation = <270>; |
| 239 | + |
| 240 | + lens-focus = <&focus_rear>; |
| 241 | + /* flash-leds = <&flash_rear>; NOTYET: spmi-flash-led-v1 needs v4l2 support */ |
| 242 | + |
| 243 | + port { |
| 244 | + rear_cam_ep: endpoint { |
| 245 | + data-lanes = <0 1 2 3>; |
| 246 | + remote-endpoint = <&csiphy0_ep>; |
| 247 | + }; |
| 248 | + }; |
| 249 | + }; |
| 250 | +}; |
| 251 | + |
150 | 252 | &blsp1_i2c2 { |
151 | 253 | clock-frequency = <400000>; |
152 | 254 | status = "okay"; |
|
453 | 555 | &tlmm { |
454 | 556 | gpio-reserved-ranges = <20 4>; |
455 | 557 |
|
| 558 | + cam_sensor_rear_default: cam-sensor-rear-default-state { |
| 559 | + pins = "gpio35"; |
| 560 | + function = "gpio"; |
| 561 | + drive-strength = <2>; |
| 562 | + bias-disable; |
| 563 | + }; |
| 564 | + |
| 565 | + cam_sensor_front_default: cam-sensor-front-default-state { |
| 566 | + pins = "gpio40"; |
| 567 | + function = "gpio"; |
| 568 | + drive-strength = <2>; |
| 569 | + bias-disable; |
| 570 | + }; |
| 571 | + |
456 | 572 | gpio_keys_default: gpio-keys-default-state { |
457 | 573 | pins = "gpio91"; |
458 | 574 | function = "gpio"; |
|
0 commit comments