| /* |
| * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| &soc { |
| led_flash_rear: qcom,camera-flash@0 { |
| cell-index = <0>; |
| reg = <0x00 0x00>; |
| compatible = "qcom,camera-flash"; |
| flash-source = <&pm660l_flash0 &pm660l_flash1>; |
| torch-source = <&pm660l_torch0 &pm660l_torch1>; |
| switch-source = <&pm660l_switch0>; |
| status = "disabled"; |
| }; |
| |
| led_flash_rear_aux: qcom,camera-flash@1 { |
| cell-index = <1>; |
| reg = <0x01 0x00>; |
| compatible = "qcom,camera-flash"; |
| flash-source = <&pm660l_flash0 &pm660l_flash1>; |
| torch-source = <&pm660l_torch0 &pm660l_torch1>; |
| switch-source = <&pm660l_switch0>; |
| status = "disabled"; |
| }; |
| |
| led_flash_front: qcom,camera-flash@2 { |
| cell-index = <2>; |
| reg = <0x02 0x00>; |
| compatible = "qcom,camera-flash"; |
| flash-source = <&pm660l_flash2>; |
| torch-source = <&pm660l_torch2>; |
| switch-source = <&pm660l_switch1>; |
| gpios = <&tlmm 0 0>, |
| <&tlmm 1 0>, |
| <&tlmm 23 0>; |
| gpio-req-tbl-num = <0 1 2>; |
| gpio-req-tbl-flags = <0 0 0>; |
| gpio-req-tbl-label = "TCKING_LED_3V3_EN", |
| "TCKING_LED_1V2_EN", |
| "TCKing_LED_EN"; |
| gpio-req-tbl-delay = <20 20 20>; |
| status = "ok"; |
| }; |
| |
| actuator_regulator: gpio-regulator@0 { |
| compatible = "regulator-fixed"; |
| reg = <0x00 0x00>; |
| regulator-name = "actuator_regulator"; |
| regulator-min-microvolt = <2800000>; |
| regulator-max-microvolt = <2800000>; |
| regulator-enable-ramp-delay = <100>; |
| enable-active-high; |
| gpio = <&tlmm 27 0>; |
| status = "disabled"; |
| }; |
| |
| camera_ldo: gpio-regulator@2 { |
| compatible = "regulator-fixed"; |
| reg = <0x02 0x00>; |
| regulator-name = "camera_ldo"; |
| regulator-min-microvolt = <1352000>; |
| regulator-max-microvolt = <1352000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&pm660l_gpios 3 0>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&camera_dvdd_en_default>; |
| vin-supply = <&pm660_s6>; |
| status = "disabled"; |
| }; |
| |
| camera_rear_ldo: gpio-regulator@1 { |
| compatible = "regulator-fixed"; |
| reg = <0x01 0x00>; |
| regulator-name = "camera_rear_ldo"; |
| regulator-min-microvolt = <1352000>; |
| regulator-max-microvolt = <1352000>; |
| regulator-enable-ramp-delay = <135>; |
| enable-active-high; |
| gpio = <&pm660l_gpios 4 0>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&camera_rear_dvdd_en_default>; |
| vin-supply = <&pm660_s6>; |
| status = "disabled"; |
| }; |
| |
| camera_vio_ldo: gpio-regulator@3 { |
| compatible = "regulator-fixed"; |
| reg = <0x03 0x00>; |
| regulator-name = "camera_vio_ldo"; |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <1800000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&tlmm 29 0>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&cam_sensor_rear_vio>; |
| vin-supply = <&pm660_s4>; |
| status = "disabled"; |
| }; |
| |
| camera_vana_ldo: gpio-regulator@4 { |
| compatible = "regulator-fixed"; |
| reg = <0x04 0x00>; |
| regulator-name = "camera_vana_ldo"; |
| regulator-min-microvolt = <2850000>; |
| regulator-max-microvolt = <2850000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&tlmm 8 0>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&cam_sensor_rear_vana>; |
| vin-supply = <&pm660l_bob>; |
| status = "disabled"; |
| }; |
| }; |
| |
| &cam_cci { |
| qcom,cam-res-mgr { |
| compatible = "qcom,cam-res-mgr"; |
| status = "ok"; |
| shared-gpios = <30 8 29 12>; |
| pinctrl-names = "cam_res_mgr_default", "cam_res_mgr_suspend"; |
| pinctrl-0 = <&cam_sensor_rear_active>; |
| pinctrl-1 = <&cam_sensor_rear_suspend>; |
| |
| }; |
| |
| actuator_rear: qcom,actuator@0 { |
| cell-index = <0>; |
| reg = <0x0>; |
| compatible = "qcom,actuator"; |
| cci-master = <0>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <2800000>; |
| rgltr-max-voltage = <2800000>; |
| rgltr-load-current = <0>; |
| }; |
| |
| actuator_rear_aux: qcom,actuator@1 { |
| cell-index = <1>; |
| reg = <0x1>; |
| compatible = "qcom,actuator"; |
| cci-master = <1>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <2800000>; |
| rgltr-max-voltage = <2800000>; |
| rgltr-load-current = <0>; |
| }; |
| |
| actuator_front: qcom,actuator@2 { |
| cell-index = <2>; |
| reg = <0x2>; |
| compatible = "qcom,actuator"; |
| cci-master = <1>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <2800000>; |
| rgltr-max-voltage = <2800000>; |
| rgltr-load-current = <0>; |
| }; |
| |
| ois_rear: qcom,ois@0 { |
| cell-index = <0>; |
| reg = <0x0>; |
| compatible = "qcom,ois"; |
| cci-master = <0>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <2800000>; |
| rgltr-max-voltage = <2800000>; |
| rgltr-load-current = <0>; |
| status = "disabled"; |
| }; |
| |
| eeprom_rear: qcom,eeprom@0 { |
| cell-index = <0>; |
| reg = <0>; |
| compatible = "qcom,eeprom"; |
| cam_vio-supply = <&camera_vio_ldo>; |
| cam_vana-supply = <&camera_vana_ldo>; |
| cam_vdig-supply = <&camera_rear_ldo>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk", "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2850000 1352000 0 2800000>; |
| rgltr-max-voltage = <1800000 2850000 1352000 0 2800000>; |
| rgltr-load-current = <0 80000 105000 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk0_active |
| &cam_sensor_rear2_active>; |
| pinctrl-1 = <&cam_sensor_mclk0_suspend |
| &cam_sensor_rear2_suspend>; |
| gpios = <&tlmm 13 0>, |
| <&tlmm 28 0>; |
| gpio-reset = <1>; |
| gpio-req-tbl-num = <0 1>; |
| gpio-req-tbl-flags = <1 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK0", |
| "CAM_RESET0"; |
| sensor-mode = <0>; |
| cci-master = <0>; |
| status = "disabled"; |
| clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| eeprom_rear_aux: qcom,eeprom@1 { |
| cell-index = <1>; |
| reg = <0x1>; |
| compatible = "qcom,eeprom"; |
| cam_vio-supply = <&camera_vio_ldo>; |
| cam_vana-supply = <&camera_vana_ldo>; |
| cam_vdig-supply = <&camera_ldo>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vdig", "cam_vio", "cam_vana", |
| "cam_clk", "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1352000 1800000 2850000 0 2800000>; |
| rgltr-max-voltage = <1352000 1800000 2850000 0 2800000>; |
| rgltr-load-current = <105000 0 80000 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk1_active |
| &cam_sensor_rear2_active>; |
| pinctrl-1 = <&cam_sensor_mclk1_suspend |
| &cam_sensor_rear2_suspend>; |
| gpios = <&tlmm 14 0>, |
| <&tlmm 28 0>; |
| gpio-reset = <1>; |
| gpio-req-tbl-num = <0 1>; |
| gpio-req-tbl-flags = <1 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK1", |
| "CAM_RESET1"; |
| sensor-position = <0>; |
| sensor-mode = <0>; |
| cci-master = <1>; |
| status = "disabled"; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| eeprom_front: qcom,eeprom@2 { |
| cell-index = <2>; |
| reg = <0x2>; |
| compatible = "qcom,eeprom"; |
| cam_vio-supply = <&camera_vio_ldo>; |
| cam_vana-supply = <&camera_vana_ldo>; |
| cam_vdig-supply = <&camera_ldo>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| cam_vaf-supply = <&actuator_regulator>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk", "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2850000 1352000 0 2800000>; |
| rgltr-max-voltage = <1800000 2850000 1352000 0 2800000>; |
| rgltr-load-current = <0 80000 105000 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk2_active |
| &cam_sensor_front_active>; |
| pinctrl-1 = <&cam_sensor_mclk2_suspend |
| &cam_sensor_front_suspend>; |
| gpios = <&tlmm 15 0>, |
| <&tlmm 9 0>; |
| gpio-reset = <1>; |
| gpio-req-tbl-num = <0 1>; |
| gpio-req-tbl-flags = <1 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK2", |
| "CAM_RESET2"; |
| sensor-mode = <0>; |
| cci-master = <1>; |
| status = "disabled"; |
| clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| /* RGB R RGB R- MCLK0(GPIO13), RESET(GPIO 27) CCI1*/ |
| qcom,cam-sensor@0 { |
| cell-index = <0>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x0>; |
| csiphy-sd-index = <0>; |
| sensor-position-roll = <270>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <180>; |
| cam_vio-supply = <&pm660_l14>; |
| cam_vana-supply = <&pm660l_l3>; |
| cam_vdig-supply = <&pm660_l7>; |
| cam_vaf-supply = <&pm660_l12>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig","cam_clk", |
| "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2800000 1200000 0 1800000>; |
| rgltr-max-voltage = <1800000 2800000 1200000 0 1800000>; |
| rgltr-load-current = <150000 600000 1200000 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk0_active |
| &cam_sensor_rgbr_active>; |
| pinctrl-1 = <&cam_sensor_mclk0_suspend |
| &cam_sensor_rgbr_suspend>; |
| gpios = <&tlmm 13 0>, |
| <&tlmm 27 0>, |
| <&tlmm 30 0>, |
| <&tlmm 8 0>, |
| <&tlmm 29 0>, |
| <&tlmm 12 0>; |
| gpio-reset = <1>; |
| gpio-vana = <2>; |
| gpio-vio = <3>; |
| gpio-vdig = <4>; |
| gpio-vaf = <5>; |
| gpio-req-tbl-num = <0 1 2 3 4 5>; |
| gpio-req-tbl-flags = <1 0 0 0 0 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK", |
| "CAM_RESET", |
| "CAM_VANA", |
| "CAM_VIO", |
| "CAM_VDIG", |
| "CAM_VAF"; |
| sensor-mode = <0>; |
| cci-master = <1>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| /* 6211(GPIO 107 high), MCLK3(GPIO 16), RESET(GPIO 25), GPIO 107(SEL),*/ |
| /* GPIO 23(Strobe), LED_1V2_EN(GPIO 0), LED_3V3-EN(GPIO 1) */ |
| /* EYE T CCI1 */ |
| qcom,cam-sensor@1 { |
| cell-index = <1>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x1>; |
| csiphy-sd-index = <1>; |
| sensor-position-roll = <270>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <180>; |
| led-flash-src = <&led_flash_front>; |
| cam_vio-supply = <&pm660_l14>; |
| cam_vana-supply = <&pm660l_l3>; |
| cam_vdig-supply = <&pm660_l12>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2800000 1800000 0>; |
| rgltr-max-voltage = <1800000 2800000 1800000 0>; |
| rgltr-load-current = <300000 600000 300000 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk3_active |
| &cam_sensor_eyet_active>; |
| pinctrl-1 = <&cam_sensor_mclk3_suspend |
| &cam_sensor_eyet_suspend>; |
| gpios = <&tlmm 16 0>, |
| <&tlmm 25 0>, |
| <&tlmm 11 0>, |
| <&tlmm 12 0>, |
| <&tlmm 107 0>; |
| gpio-reset = <1>; |
| gpio-vana = <2>; |
| gpio-vdig = <3>; |
| gpio-vio = <4>; |
| gpio-req-tbl-num = <0 1 2 3 4>; |
| gpio-req-tbl-flags = <1 0 0 0 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK3", |
| "CAM_RESET3", |
| "CAM_VANA3", |
| "CAM_VIO3", |
| "CAM_VDIG3"; |
| sensor-mode = <0>; |
| cci-master = <1>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK3_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| /* 9282 CCI0 */ |
| qcom,cam-sensor@4 { |
| cell-index = <4>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x04>; |
| csiphy-sd-index = <2>; |
| sensor-position-roll = <270>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <0>; |
| cam_vio-supply = <&pm660_l14>; |
| cam_vana-supply = <&pm660l_l3>; |
| cam_vdig-supply = <&pm660_l7>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2800000 1200000 0>; |
| rgltr-max-voltage = <1800000 2800000 1200000 0>; |
| rgltr-load-current = <150000 600000 1200000 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk2_active |
| &cam_sensor_6dof_active>; |
| pinctrl-1 = <&cam_sensor_mclk2_suspend |
| &cam_sensor_6dof_suspend>; |
| gpios = <&tlmm 15 0>, |
| <&tlmm 24 0>, |
| <&tlmm 145 0>, |
| <&tlmm 144 0>, |
| <&tlmm 143 0>; |
| gpio-reset = <1>; |
| gpio-vana = <2>; |
| gpio-vdig = <3>; |
| gpio-vio = <4>; |
| gpio-req-tbl-num = <0 1 2 3 4>; |
| gpio-req-tbl-flags = <1 0 0 0 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK2", |
| "CAM_RESET2", |
| "CAM_VANA2", |
| "CAM_VDIG2", |
| "CAM_VIO2"; |
| sensor-mode = <0>; |
| cci-master = <0>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| /*RGB L(Default)- MCLK1(GPIO14), RESET(GPIO 28), CCI0*/ |
| qcom,cam-sensor@3 { |
| cell-index = <3>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x03>; |
| csiphy-sd-index = <1>; |
| sensor-position-roll = <270>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <0>; |
| cam_vio-supply = <&pm660_l14>; |
| cam_vana-supply = <&pm660l_l3>; |
| cam_vdig-supply = <&pm660_l7>; |
| cam_vaf-supply = <&pm660_l12>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk", "cam_vaf"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2800000 1200000 0 1800000>; |
| rgltr-max-voltage = <1800000 2800000 1200000 0 1800000>; |
| rgltr-load-current = <150000 600000 1200000 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk1_active |
| &cam_sensor_rgbl_active>; |
| pinctrl-1 = <&cam_sensor_mclk1_suspend |
| &cam_sensor_rgbl_suspend>; |
| gpios = <&tlmm 14 0>, |
| <&tlmm 28 0>, |
| <&tlmm 30 0>, |
| <&tlmm 8 0>, |
| <&tlmm 29 0>, |
| <&tlmm 12 0>; |
| gpio-reset = <1>; |
| gpio-vana = <2>; |
| gpio-vio = <3>; |
| gpio-vdig = <4>; |
| gpio-vaf = <5>; |
| gpio-req-tbl-num = <0 1 2 3 4 5>; |
| gpio-req-tbl-flags = <1 0 0 0 0 0>; |
| gpio-req-tbl-label = "CAMIF_MCLK1", |
| "CAM_RESET1", |
| "CAM_VANA1", |
| "CAM_VIO1", |
| "CAM_VDIG1", |
| "CAM_VCAF1"; |
| sensor-mode = <0>; |
| cci-master = <0>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK1_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| }; |