|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 4 | + */ |
| 5 | + |
| 6 | +#include <dt-bindings/camera/msm-camera.h> |
| 7 | + |
| 8 | +&cam_cci { |
| 9 | + /*cam0-imx577*/ |
| 10 | + tl_slot0: qcom,cam-sensor0 { |
| 11 | + compatible = "qcom,cam-sensor"; |
| 12 | + csiphy-sd-index = <0>; |
| 13 | + sensor-position-roll = <0>; |
| 14 | + sensor-position-pitch = <0>; |
| 15 | + sensor-position-yaw = <180>; |
| 16 | + eeprom-src = <&eeprom_cam0>; |
| 17 | + cam_vio-supply = <&vreg_s4a>; |
| 18 | + regulator-names = "cam_vio"; |
| 19 | + power-domains = <&camcc TITAN_TOP_GDSC>; |
| 20 | + rgltr-cntrl-support; |
| 21 | + pwm-switch; |
| 22 | + rgltr-min-voltage = <1800000>; |
| 23 | + rgltr-max-voltage = <1800000>; |
| 24 | + rgltr-load-current = <120000>; |
| 25 | + gpio-no-mux = <0>; |
| 26 | + pinctrl-0 = <&cam_sensor_mclk3_active |
| 27 | + &cam_sensor_active_rst0>; |
| 28 | + pinctrl-1 = <&cam_sensor_mclk3_suspend |
| 29 | + &cam_sensor_suspend_rst0>; |
| 30 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 31 | + gpios = <&tlmm 28 0>, |
| 32 | + <&tlmm 75 0>; |
| 33 | + gpio-reset = <1>; |
| 34 | + gpio-req-tbl-num = <0 1>; |
| 35 | + gpio-req-tbl-flags = <1 0>; |
| 36 | + gpio-req-tbl-label = "CAM_MCLK0", "CAMIF_RESET0"; |
| 37 | + cci-master = <0>; |
| 38 | + clocks = <&camcc CAM_CC_MCLK0_CLK>; |
| 39 | + clock-names = "cam_clk"; |
| 40 | + clock-cntl-level = "nominal"; |
| 41 | + clock-rates = <24000000>; |
| 42 | + cell-index = <0>; |
| 43 | + status = "okay"; |
| 44 | + }; |
| 45 | + |
| 46 | + /*cam1-imx577*/ |
| 47 | + t1_slot1: qcom,cam-sensor1 { |
| 48 | + compatible = "qcom,cam-sensor"; |
| 49 | + csiphy-sd-index = <1>; |
| 50 | + sensor-position-roll = <0>; |
| 51 | + sensor-position-pitch = <0>; |
| 52 | + sensor-position-yaw = <180>; |
| 53 | + eeprom-src = <&eeprom_cam1>; |
| 54 | + cam_vio-supply = <&vreg_s4a>; |
| 55 | + regulator-names = "cam_vio"; |
| 56 | + power-domains = <&camcc TITAN_TOP_GDSC>; |
| 57 | + rgltr-cntrl-support; |
| 58 | + pwm-switch; |
| 59 | + rgltr-min-voltage = <1800000>; |
| 60 | + rgltr-max-voltage = <1800000>; |
| 61 | + rgltr-load-current = <120000>; |
| 62 | + gpio-no-mux = <0>; |
| 63 | + pinctrl-0 = <&cam_sensor_mclk2_active |
| 64 | + &cam_sensor_active_rst1>; |
| 65 | + pinctrl-1 = <&cam_sensor_mclk2_suspend |
| 66 | + &cam_sensor_suspend_rst1>; |
| 67 | + gpios = <&tlmm 30 0>, |
| 68 | + <&tlmm 29 0>; |
| 69 | + gpio-reset = <1>; |
| 70 | + gpio-req-tbl-num = <0 1>; |
| 71 | + gpio-req-tbl-flags = <1 0>; |
| 72 | + gpio-req-tbl-label = "CAM_MCLK1", "CAMIF_RESET1"; |
| 73 | + cci-master = <1>; |
| 74 | + clocks = <&camcc CAM_CC_MCLK1_CLK>; |
| 75 | + clock-names = "cam_clk"; |
| 76 | + clock-cntl-level = "nominal"; |
| 77 | + clock-rates = <24000000>; |
| 78 | + cell-index = <1>; |
| 79 | + status = "okay"; |
| 80 | + }; |
| 81 | + |
| 82 | + /*cam0-imx577-eeprom*/ |
| 83 | + eeprom_cam0: qcom,eeprom0 { |
| 84 | + compatible = "qcom,eeprom"; |
| 85 | + cam_vio-supply = <&vreg_s4a>; |
| 86 | + regulator-names = "cam_vio"; |
| 87 | + power-domains = <&camcc TITAN_TOP_GDSC>; |
| 88 | + rgltr-cntrl-support; |
| 89 | + pwm-switch; |
| 90 | + rgltr-min-voltage = <1800000>; |
| 91 | + rgltr-max-voltage = <1800000>; |
| 92 | + rgltr-load-current = <120000>; |
| 93 | + gpio-no-mux = <0>; |
| 94 | + pinctrl-0 = <&cam_sensor_mclk3_active |
| 95 | + &cam_sensor_active_rst0>; |
| 96 | + pinctrl-1 = <&cam_sensor_mclk3_suspend |
| 97 | + &cam_sensor_suspend_rst0>; |
| 98 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 99 | + gpios = <&tlmm 28 0>, |
| 100 | + <&tlmm 75 0>; |
| 101 | + gpio-reset = <1>; |
| 102 | + gpio-req-tbl-num = <0 1>; |
| 103 | + gpio-req-tbl-flags = <1 0>; |
| 104 | + gpio-req-tbl-label = "CAM_MCLK0", "CAMIF_RESET0"; |
| 105 | + cci-master = <0>; |
| 106 | + clocks = <&camcc CAM_CC_MCLK0_CLK>; |
| 107 | + clock-names = "cam_clk"; |
| 108 | + clock-cntl-level = "nominal"; |
| 109 | + clock-rates = <24000000>; |
| 110 | + cell-index = <0>; |
| 111 | + status = "okay"; |
| 112 | + }; |
| 113 | + |
| 114 | + /*cam1-imx577-eeprom*/ |
| 115 | + eeprom_cam1: qcom,eeprom1 { |
| 116 | + compatible = "qcom,eeprom"; |
| 117 | + cam_vio-supply = <&vreg_s4a>; |
| 118 | + regulator-names = "cam_vio"; |
| 119 | + power-domains = <&camcc TITAN_TOP_GDSC>; |
| 120 | + rgltr-cntrl-support; |
| 121 | + pwm-switch; |
| 122 | + rgltr-min-voltage = <1800000>; |
| 123 | + rgltr-max-voltage = <1800000>; |
| 124 | + rgltr-load-current = <120000>; |
| 125 | + gpio-no-mux = <0>; |
| 126 | + pinctrl-0 = <&cam_sensor_mclk2_active |
| 127 | + &cam_sensor_active_rst1>; |
| 128 | + pinctrl-1 = <&cam_sensor_mclk2_suspend |
| 129 | + &cam_sensor_suspend_rst1>; |
| 130 | + pinctrl-names = "cam_default", "cam_suspend"; |
| 131 | + gpios = <&tlmm 30 0>, |
| 132 | + <&tlmm 29 0>; |
| 133 | + gpio-reset = <1>; |
| 134 | + gpio-req-tbl-num = <0 1>; |
| 135 | + gpio-req-tbl-flags = <1 0>; |
| 136 | + gpio-req-tbl-label = "CAM_MCLK1", "CAMIF_RESET1"; |
| 137 | + cci-master = <1>; |
| 138 | + clocks = <&camcc CAM_CC_MCLK1_CLK>; |
| 139 | + clock-names = "cam_clk"; |
| 140 | + clock-cntl-level = "nominal"; |
| 141 | + clock-rates = <24000000>; |
| 142 | + cell-index = <1>; |
| 143 | + status = "okay"; |
| 144 | + }; |
| 145 | +}; |
| 146 | + |
| 147 | +&soc { |
| 148 | + qcom,cam-res-mgr { |
| 149 | + compatible = "qcom,cam-res-mgr"; |
| 150 | + status = "ok"; |
| 151 | + }; |
| 152 | +}; |
0 commit comments