You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.7 KiB
98 lines
2.7 KiB
/*
|
|
* Copyright (c) 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: camera-ir-led@0 {
|
|
cell-index = <0>;
|
|
reg = <0x00>;
|
|
compatible = "qcom,camera-ir-led";
|
|
pwms = <&pm6150l_pwm_1 0 0>;
|
|
enable-active-high;
|
|
pinctrl-names = "default", "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&irled_pwm>;
|
|
pinctrl-1 = <&cam_sensor_ir_cut_on>;
|
|
pinctrl-2 = <&cam_sensor_ir_cut_off>;
|
|
gpios = <&tlmm 73 0>,
|
|
<&tlmm 74 0>;
|
|
qcom,gpio-ir-p = <0>;
|
|
qcom,gpio-ir-m = <1>;
|
|
qcom,gpio-req-tbl-num = <0 1>;
|
|
qcom,gpio-req-tbl-flags = <0 0>;
|
|
qcom,gpio-req-tbl-label = "IR_CUT_FILTER_P",
|
|
"IR_CUT_FILTER_M";
|
|
gpio-no-mux = <0>;
|
|
status = "ok";
|
|
};
|
|
|
|
camera_ldo: gpio-regulator@0 {
|
|
compatible = "regulator-fixed";
|
|
reg = <0x00 0x00>;
|
|
regulator-name = "camera_ldo";
|
|
regulator-min-microvolt = <1200000>;
|
|
regulator-max-microvolt = <1200000>;
|
|
regulator-enable-ramp-delay = <135>;
|
|
enable-active-high;
|
|
gpio = <&pm6150l_gpios 3 0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cam_sensor_dvdd_en>;
|
|
vin-supply = <&pm6150l_s8>;
|
|
};
|
|
};
|
|
|
|
&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 = <90>;
|
|
sensor-position-pitch = <0>;
|
|
sensor-position-yaw = <180>;
|
|
cam_vio-supply = <&pm6150_l13>;
|
|
cam_vana-supply = <&pm6150l_l4>;
|
|
cam_vdig-supply = <&camera_ldo>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
ir-led-src = <&ir_led>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <1800000 2850000 1200000 0>;
|
|
rgltr-max-voltage = <1800000 2850000 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 28 0>,
|
|
<&tlmm 47 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 = <37125000>;
|
|
};
|
|
};
|
|
|