| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Copyright (c) 2022, Linaro Ltd. |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
/plugin/; |
| 8 |
|
| 9 |
#include <dt-bindings/clock/qcom,camcc-sdm845.h> |
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
|
| 12 |
&camss { |
| 13 |
vdda-phy-supply = <&vreg_l1a_0p875>; |
| 14 |
vdda-pll-supply = <&vreg_l26a_1p2>; |
| 15 |
|
| 16 |
status = "okay"; |
| 17 |
|
| 18 |
ports { |
| 19 |
port@0 { |
| 20 |
csiphy0_ep: endpoint { |
| 21 |
data-lanes = <0 1 2 3>; |
| 22 |
remote-endpoint = <&ov8856_ep>; |
| 23 |
}; |
| 24 |
}; |
| 25 |
}; |
| 26 |
}; |
| 27 |
|
| 28 |
&cci { |
| 29 |
status = "okay"; |
| 30 |
}; |
| 31 |
|
| 32 |
&cci_i2c0 { |
| 33 |
#address-cells = <1>; |
| 34 |
#size-cells = <0>; |
| 35 |
|
| 36 |
camera@10 { |
| 37 |
compatible = "ovti,ov8856"; |
| 38 |
reg = <0x10>; |
| 39 |
|
| 40 |
/* CAM0_RST_N */ |
| 41 |
reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; |
| 42 |
pinctrl-names = "default"; |
| 43 |
pinctrl-0 = <&cam0_default>; |
| 44 |
|
| 45 |
clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| 46 |
clock-names = "xvclk"; |
| 47 |
assigned-clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| 48 |
assigned-clock-rates = <19200000>; |
| 49 |
|
| 50 |
/* |
| 51 |
* The &vreg_s4a_1p8 trace is powered on as a, |
| 52 |
* so it is represented by a fixed regulator. |
| 53 |
* |
| 54 |
* The 2.8V vdda-supply and 1.2V vddd-supply regulators |
| 55 |
* both have to be enabled through the power management |
| 56 |
* gpios. |
| 57 |
*/ |
| 58 |
dovdd-supply = <&vreg_lvs1a_1p8>; |
| 59 |
avdd-supply = <&cam0_avdd_2v8>; |
| 60 |
dvdd-supply = <&cam0_dvdd_1v2>; |
| 61 |
|
| 62 |
port { |
| 63 |
ov8856_ep: endpoint { |
| 64 |
link-frequencies = /bits/ 64 |
| 65 |
<360000000 180000000>; |
| 66 |
data-lanes = <1 2 3 4>; |
| 67 |
remote-endpoint = <&csiphy0_ep>; |
| 68 |
}; |
| 69 |
}; |
| 70 |
}; |
| 71 |
}; |