| /* |
| * Copyright (c) 2017, 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 = "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>; |
| vin-supply = <&pm660l_bob>; |
| }; |
| |
| cam_avdd_gpio_regulator: gpio-regulator@1 { |
| compatible = "regulator-fixed"; |
| reg = <0x01 0x00>; |
| regulator-name = "cam_avdd_gpio_regulator"; |
| regulator-min-microvolt = <2850000>; |
| regulator-max-microvolt = <2850000>; |
| regulator-enable-ramp-delay = <135>; |
| enable-active-high; |
| gpio = <&tlmm 100 0>; |
| vin-supply = <&pm660l_bob>; |
| }; |
| |
| cam_dvdd_gpio_regulator: gpio-regulator@2 { |
| compatible = "regulator-fixed"; |
| reg = <0x02 0x00>; |
| regulator-name = "cam_dvdd_gpio_regulator"; |
| regulator-min-microvolt = <1200000>; |
| regulator-max-microvolt = <1200000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&pm660l_gpios 4 0>; |
| vin-supply = <&pm660_s6>; |
| }; |
| |
| cam_iovdd_gpio_regulator: gpio-regulator@3 { |
| compatible = "regulator-fixed"; |
| reg = <0x03 0x00>; |
| regulator-name = "cam_iovdd_gpio_regulator"; |
| regulator-min-microvolt = <1800000>; |
| regulator-max-microvolt = <1800000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&tlmm 29 0>; |
| vin-supply = <&pm660_s4>; |
| }; |
| |
| cam_rear_avdd_gpio_regulator: gpio-regulator@4 { |
| compatible = "regulator-fixed"; |
| reg = <0x04 0x00>; |
| regulator-name = "cam_rear_avdd_gpio_regulator"; |
| regulator-min-microvolt = <2850000>; |
| regulator-max-microvolt = <2850000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&tlmm 8 0>; |
| vin-supply = <&pm660l_bob>; |
| }; |
| |
| cam_rear_dvdd_gpio_regulator: gpio-regulator@5 { |
| compatible = "regulator-fixed"; |
| reg = <0x05 0x00>; |
| regulator-name = "cam_rear_dvdd_gpio_regulator"; |
| regulator-min-microvolt = <1200000>; |
| regulator-max-microvolt = <1200000>; |
| regulator-enable-ramp-delay = <233>; |
| enable-active-high; |
| gpio = <&pm660l_gpios 3 0>; |
| vin-supply = <&pm660_s6>; |
| }; |
| }; |
| |
| &tlmm { |
| cam_sensor_rear_active: cam_sensor_rear_active { |
| /* RESET */ |
| mux { |
| pins = "gpio30"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio30"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| |
| cam_sensor_rear_suspend: cam_sensor_rear_suspend { |
| /* RESET */ |
| mux { |
| pins = "gpio30"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio30"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| |
| cam_sensor_rear2_active: cam_sensor_rear2_active { |
| /* RESET */ |
| mux { |
| pins = "gpio9"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio9"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| |
| cam_sensor_rear2_suspend: cam_sensor_rear2_suspend { |
| /* RESET */ |
| mux { |
| pins = "gpio9"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio9"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| |
| cam_sensor_front_active: cam_sensor_front_active { |
| /* RESET */ |
| mux { |
| pins = "gpio28"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio28"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| |
| cam_sensor_front_suspend: cam_sensor_front_suspend { |
| /* RESET */ |
| mux { |
| pins = "gpio28"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio28"; |
| bias-disable; /* No PULL */ |
| drive-strength = <2>; /* 2 MA */ |
| }; |
| }; |
| }; |
| |
| &cam_cci { |
| 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>; |
| }; |
| |
| eeprom_rear: qcom,eeprom@0 { |
| cell-index = <0>; |
| reg = <0>; |
| compatible = "qcom,eeprom"; |
| cam_vio-supply = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_rear_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_rear_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk0_active |
| &cam_sensor_rear_active>; |
| pinctrl-1 = <&cam_sensor_mclk0_suspend |
| &cam_sensor_rear_suspend>; |
| gpios = <&tlmm 13 0>, |
| <&tlmm 30 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-position = <0>; |
| sensor-mode = <0>; |
| cci-master = <0>; |
| status = "ok"; |
| 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 = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk1_active |
| &cam_sensor_front_active>; |
| pinctrl-1 = <&cam_sensor_mclk1_suspend |
| &cam_sensor_front_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 = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK1_CLK>; |
| 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 = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk2_active |
| &cam_sensor_rear2_active>; |
| pinctrl-1 = <&cam_sensor_mclk2_suspend |
| &cam_sensor_rear2_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-position = <1>; |
| sensor-mode = <0>; |
| cci-master = <1>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| qcom,cam-sensor@0 { |
| cell-index = <0>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x0>; |
| csiphy-sd-index = <0>; |
| sensor-position-roll = <90>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <180>; |
| led-flash-src = <&led_flash_rear>; |
| actuator-src = <&actuator_rear>; |
| eeprom-src = <&eeprom_rear>; |
| cam_vio-supply = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_rear_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_rear_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk0_active |
| &cam_sensor_rear_active>; |
| pinctrl-1 = <&cam_sensor_mclk0_suspend |
| &cam_sensor_rear_suspend>; |
| gpios = <&tlmm 13 0>, |
| <&tlmm 30 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 = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK0_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| qcom,cam-sensor@1 { |
| cell-index = <1>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x1>; |
| csiphy-sd-index = <1>; |
| sensor-position-roll = <90>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <180>; |
| led-flash-src = <&led_flash_rear>; |
| actuator-src = <&actuator_rear_aux>; |
| eeprom-src = <&eeprom_rear_aux>; |
| cam_vio-supply = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk1_active |
| &cam_sensor_front_active>; |
| pinctrl-1 = <&cam_sensor_mclk1_suspend |
| &cam_sensor_front_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-mode = <0>; |
| cci-master = <1>; |
| status = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK1_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| |
| qcom,cam-sensor@2 { |
| cell-index = <2>; |
| compatible = "qcom,cam-sensor"; |
| reg = <0x02>; |
| csiphy-sd-index = <2>; |
| sensor-position-roll = <270>; |
| sensor-position-pitch = <0>; |
| sensor-position-yaw = <0>; |
| eeprom-src = <&eeprom_front>; |
| actuator-src = <&actuator_front>; |
| cam_vio-supply = <&cam_iovdd_gpio_regulator>; |
| cam_vana-supply = <&cam_avdd_gpio_regulator>; |
| cam_vdig-supply = <&cam_dvdd_gpio_regulator>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <0 0 0 0>; |
| rgltr-max-voltage = <0 0 0 0>; |
| rgltr-load-current = <0 0 0 0>; |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_mclk2_active |
| &cam_sensor_rear2_active>; |
| pinctrl-1 = <&cam_sensor_mclk2_suspend |
| &cam_sensor_rear2_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 = "ok"; |
| clocks = <&clock_camcc CAM_CC_MCLK2_CLK>; |
| clock-names = "cam_clk"; |
| clock-cntl-level = "turbo"; |
| clock-rates = <24000000>; |
| }; |
| }; |
| |
| &pm660l_gpios { |
| gpio@c300 { /* GPIO4 -CAMERA SENSOR 1/2 VDIG*/ |
| qcom,mode = <1>; /* Output */ |
| qcom,pull = <5>; /* No Pull */ |
| qcom,vin-sel = <0>; /* VIN1 GPIO_LV */ |
| qcom,src-sel = <0>; /* GPIO */ |
| qcom,invert = <0>; /* Invert */ |
| qcom,master-en = <1>; /* Enable GPIO */ |
| status = "ok"; |
| }; |
| |
| gpio@c200 { /* GPIO3 -CAMERA SENSOR 0 VDIG*/ |
| qcom,mode = <1>; /* Output */ |
| qcom,pull = <5>; /* No Pull */ |
| qcom,vin-sel = <0>; /* VIN1 GPIO_LV */ |
| qcom,src-sel = <0>; /* GPIO */ |
| qcom,invert = <0>; /* Invert */ |
| qcom,master-en = <1>; /* Enable GPIO */ |
| status = "ok"; |
| }; |
| }; |