Skip to content

Commit 12e1653

Browse files
0xB0Djiegan0107
authored andcommitted
FROMLIST: arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add ov02c10 RGB sensor on CSIPHY4
Add in the RGB sensor on CSIPHY4. Link: https://lore.kernel.org/all/20260326-x1e-camss-csi2-phy-dtsi-v3-10-1d5a9306116a@linaro.org/ Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
1 parent f377748 commit 12e1653

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <dt-bindings/gpio/gpio.h>
99
#include <dt-bindings/input/gpio-keys.h>
10+
#include <dt-bindings/phy/phy.h>
1011
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
1112

1213
#include "hamoa.dtsi"
@@ -863,6 +864,66 @@
863864
firmware-name = "qcom/x1e80100/LENOVO/83ED/qcdxkmsuc8380.mbn";
864865
};
865866

867+
&camss {
868+
status = "okay";
869+
870+
ports {
871+
/*
872+
* port0 => csiphy0
873+
* port1 => csiphy1
874+
* port2 => csiphy2
875+
* port3 => csiphy4
876+
*/
877+
port@3 {
878+
camss_csiphy4_inep0: endpoint@0 {
879+
clock-lanes = <7>;
880+
data-lanes = <0 1>;
881+
remote-endpoint = <&ov02c10_ep>;
882+
};
883+
};
884+
};
885+
};
886+
887+
&cci1 {
888+
status = "okay";
889+
};
890+
891+
&cci1_i2c1 {
892+
camera@36 {
893+
compatible = "ovti,ov02c10";
894+
reg = <0x36>;
895+
896+
reset-gpios = <&tlmm 237 GPIO_ACTIVE_LOW>;
897+
pinctrl-names = "default";
898+
pinctrl-0 = <&cam_rgb_default>;
899+
900+
clocks = <&camcc CAM_CC_MCLK4_CLK>;
901+
assigned-clocks = <&camcc CAM_CC_MCLK4_CLK>;
902+
assigned-clock-rates = <19200000>;
903+
904+
orientation = <0>; /* front facing */
905+
906+
avdd-supply = <&vreg_l7b_2p8>;
907+
dvdd-supply = <&vreg_l1m_1p2>;
908+
dovdd-supply = <&vreg_l3m_1p8>;
909+
910+
port {
911+
ov02c10_ep: endpoint {
912+
data-lanes = <1 2>;
913+
link-frequencies = /bits/ 64 <400000000>;
914+
remote-endpoint = <&camss_csiphy4_inep0>;
915+
};
916+
};
917+
};
918+
};
919+
920+
&csiphy4 {
921+
vdda-0p9-supply = <&vreg_l2c_0p8>;
922+
vdda-1p2-supply = <&vreg_l1c_1p2>;
923+
924+
status = "okay";
925+
};
926+
866927
&i2c0 {
867928
clock-frequency = <400000>;
868929

@@ -1410,6 +1471,22 @@
14101471
<44 4>, /* SPI (TPM) */
14111472
<238 1>; /* UFS Reset */
14121473

1474+
cam_rgb_default: cam-rgb-default-state {
1475+
mclk-pins {
1476+
pins = "gpio100";
1477+
function = "cam_aon";
1478+
drive-strength = <16>;
1479+
bias-disable;
1480+
};
1481+
1482+
reset-n-pins {
1483+
pins = "gpio237";
1484+
function = "gpio";
1485+
drive-strength = <2>;
1486+
bias-disable;
1487+
};
1488+
};
1489+
14131490
edp_reg_en: edp-reg-en-state {
14141491
pins = "gpio70";
14151492
function = "gpio";

0 commit comments

Comments
 (0)