From: David Heidelberg <[email protected]>

Main rear camera uses Dongwoon DW9714V actuator. Add regulator and
actuator node.

Signed-off-by: David Heidelberg <[email protected]>
---
 arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 61 +++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts 
b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
index e31c784eff3de..6d0254e205850 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
@@ -81,16 +81,42 @@ ramoops: ramoops@b0000000 {
        battery: battery {
                compatible = "simple-battery";
 
                charge-full-design-microamp-hours = <3850000>;
                voltage-min-design-microvolt = <3600000>;
                voltage-max-design-microvolt = <4400000>;
        };
 
+       /* SGM2036-2.8YUDH4G/TR */
+       cam_bus_2p8: cam-bus-2p8-regulator {
+               compatible = "regulator-fixed";
+
+               regulator-name = "cam_bus_2p8";
+               regulator-min-microvolt = <2800000>;
+               regulator-max-microvolt = <2800000>;
+               regulator-enable-ramp-delay = <100>;
+
+               gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+
+               pinctrl-0 = <&cam_bus_avdd_default_state>;
+               pinctrl-1 = <&cam_bus_avdd_sleep_state>;
+               pinctrl-names = "default", "sleep";
+
+               vin-supply = <&vreg_bob>;
+
+               /*
+                * TODO: This node represent bus supply to the cam i2c module.
+                * Others DT do in similar fashion, but should be addressed
+                * by the bus-supply in the future
+                */
+               regulator-always-on;
+       };
+
        vph_pwr: vph-pwr-regulator {
                compatible = "regulator-fixed";
                regulator-name = "vph_pwr";
                regulator-min-microvolt = <3700000>;
                regulator-max-microvolt = <3700000>;
        };
 
        vreg_s4a_1p8: pm8998-smps4 {
@@ -447,16 +473,36 @@ vreg_s3c_0p6: smps3 {
 };
 
 &cdsp_pas {
        firmware-name = "qcom/sdm845/SHIFT/axolotl/cdsp.mbn";
 
        status = "okay";
 };
 
+&camss {
+       vdda-phy-supply = <&vreg_l1a_0p875>;
+       vdda-pll-supply = <&vdda_mipi_csi_1p25>;
+
+       status = "okay";
+};
+
+&cci {
+       status = "okay";
+};
+
+&cci_i2c0 {
+       rear_camera_actuator: actuator@c {
+               compatible = "dongwoon,dw9714v", "dongwoon,dw9714a", 
"dongwoon,dw9714";
+               reg = <0x0c>;
+
+               vcc-supply = <&vreg_lvs1a_1p8>;
+       };
+};
+
 &gcc {
        protected-clocks = <GCC_QSPI_CORE_CLK>,
                           <GCC_QSPI_CORE_CLK_SRC>,
                           <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
                           <GCC_LPASS_Q6_AXI_CLK>,
                           <GCC_LPASS_SWAY_CLK>;
 };
 
@@ -699,16 +745,31 @@ &slpi_pas {
        firmware-name = "qcom/sdm845/SHIFT/axolotl/slpi.mbn";
 
        status = "okay";
 };
 
 &tlmm {
        gpio-reserved-ranges = <0 4>, <81 4>;
 
+       cam_bus_avdd_default_state: cam-bus-avdd-default-state {
+               pins = "gpio8";
+               function = "gpio";
+               bias-disable;
+               drive-strength = <2>;
+       };
+
+       cam_bus_avdd_sleep_state: cam-bus-avdd-sleep-state {
+               pins = "gpio8";
+               function = "gpio";
+               bias-disable;
+               drive-strength = <2>;
+               output-low;
+       };
+
        sdc2_default_state: sdc2-default-state {
                clk-pins {
                        pins = "sdc2_clk";
                        drive-strength = <16>;
                        bias-disable;
                };
 
                cmd-pins {

-- 
2.53.0



Reply via email to