| /* |
| * Copyright (c) 2018-2019, 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 { |
| ir_led: qcom,camera-ir-led@0 { |
| cell-index = <0>; |
| reg = <0x00>; |
| compatible = "qcom,camera-ir-led"; |
| enable-active-high; |
| |
| gpio-no-mux = <0>; |
| pinctrl-names = "cam_default", "cam_suspend"; |
| pinctrl-0 = <&cam_sensor_ir_led_on>; |
| pinctrl-1 = <&cam_sensor_ir_led_off>; |
| gpios = <&tlmm 22 0>, |
| <&tlmm 141 0>, |
| <&tlmm 142 0>, |
| <&tlmm 107 0>, |
| <&tlmm 110 0>; |
| gpio-req-tbl-num = <0 1 2 3 4>; |
| gpio-req-tbl-flags = <0 0 0 0 0>; |
| gpio-req-tbl-label = "CAM_IR_LED", |
| "CAM_IR_LED_CUR0", |
| "CAM_IR_LED_CUR1", |
| "CAM_IR_CUT1", |
| "CAM_IR_CUT2"; |
| status = "ok"; |
| }; |
| }; |
| |
| &cam_cci { |
| qcom,cam-res-mgr { |
| compatible = "qcom,cam-res-mgr"; |
| status = "ok"; |
| }; |
| |
| 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>; |
| ir-led-src = <&ir_led>; |
| cam_vio-supply = <&pm660_l11>; |
| cam_vana-supply = <&pm660_l15>; |
| cam_vdig-supply = <&pm660_l5>; |
| cam_clk-supply = <&titan_top_gdsc>; |
| regulator-names = "cam_vio", "cam_vana", "cam_vdig", |
| "cam_clk"; |
| rgltr-cntrl-support; |
| rgltr-min-voltage = <1800000 2900000 1200000 0>; |
| rgltr-max-voltage = <1800000 2900000 1200000 0>; |
| rgltr-load-current = <0 80000 105000 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>; |
| }; |
| }; |