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.
425 lines
12 KiB
425 lines
12 KiB
/*
|
|
* 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 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
qcom,camera-flash@0 {
|
|
cell-index = <0>;
|
|
reg = <0x00 0x00>;
|
|
compatible = "qcom,camera-flash";
|
|
flash-source = <&pm8150l_flash0 &pm8150l_flash1>;
|
|
torch-source = <&pm8150l_torch0 &pm8150l_torch1>;
|
|
switch-source = <&pm8150l_switch2>;
|
|
status = "ok";
|
|
};
|
|
|
|
qcom,camera-flash@1 {
|
|
cell-index = <1>;
|
|
reg = <0x01 0x00>;
|
|
compatible = "qcom,camera-flash";
|
|
flash-source = <&pm8150l_flash0 &pm8150l_flash1>;
|
|
torch-source = <&pm8150l_torch0 &pm8150l_torch1>;
|
|
switch-source = <&pm8150l_switch2>;
|
|
status = "ok";
|
|
};
|
|
|
|
led_flash_front: qcom,camera-flash@2 {
|
|
cell-index = <2>;
|
|
reg = <0x02 0x00>;
|
|
compatible = "qcom,camera-flash";
|
|
wled-flash-support;
|
|
flash-source = <&wled_flash>;
|
|
torch-source = <&wled_torch>;
|
|
switch-source = <&wled_switch>;
|
|
status = "ok";
|
|
};
|
|
|
|
qcom,camera-flash@3 {
|
|
cell-index = <3>;
|
|
reg = <0x03 0x00>;
|
|
compatible = "qcom,camera-flash";
|
|
flash-source = <&pm8150l_flash1>;
|
|
torch-source = <&pm8150l_torch1>;
|
|
switch-source = <&pm8150l_switch0>;
|
|
status = "ok";
|
|
};
|
|
};
|
|
|
|
&cam_cci0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
qcom,cam-res-mgr {
|
|
compatible = "qcom,cam-res-mgr";
|
|
status = "ok";
|
|
};
|
|
|
|
qcom,actuator@0 {
|
|
cell-index = <0>;
|
|
reg = <0x0>;
|
|
compatible = "qcom,actuator";
|
|
cci-device = <0>;
|
|
cci-master = <0>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <2856000>;
|
|
rgltr-max-voltage = <2856000>;
|
|
rgltr-load-current = <0>;
|
|
};
|
|
|
|
qcom,actuator@1 {
|
|
cell-index = <1>;
|
|
reg = <0x1>;
|
|
compatible = "qcom,actuator";
|
|
cci-device = <0>;
|
|
cci-master = <1>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <2856000>;
|
|
rgltr-max-voltage = <2856000>;
|
|
rgltr-load-current = <0>;
|
|
};
|
|
|
|
qcom,actuator@2 {
|
|
cell-index = <2>;
|
|
reg = <0x2>;
|
|
compatible = "qcom,actuator";
|
|
cci-device = <0>;
|
|
cci-master = <1>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <2856000>;
|
|
rgltr-max-voltage = <2856000>;
|
|
rgltr-load-current = <0>;
|
|
};
|
|
|
|
qcom,ois@0 {
|
|
cell-index = <0>;
|
|
reg = <0x0>;
|
|
compatible = "qcom,ois";
|
|
cci-device = <0>;
|
|
cci-master = <0>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <2856000>;
|
|
rgltr-max-voltage = <2856000>;
|
|
rgltr-load-current = <0>;
|
|
status = "ok";
|
|
};
|
|
|
|
qcom,eeprom@0 {
|
|
cell-index = <0>;
|
|
reg = <0>;
|
|
compatible = "qcom,eeprom";
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_vana-supply = <&pm8009_l5>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <0 2800000 1200000 0 2856000>;
|
|
rgltr-max-voltage = <0 2800000 1200000 0 2856000>;
|
|
rgltr-load-current = <0 80000 1200000 0 0>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk0_active
|
|
&cam_sensor_active_rear>;
|
|
pinctrl-1 = <&cam_sensor_mclk0_suspend
|
|
&cam_sensor_suspend_rear>;
|
|
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-position = <0>;
|
|
sensor-mode = <0>;
|
|
cci-device = <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,eeprom@1 {
|
|
cell-index = <1>;
|
|
reg = <0x1>;
|
|
compatible = "qcom,eeprom";
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_vana-supply = <&pm8009_l6>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <0 2856000 1200000 0 2856000>;
|
|
rgltr-max-voltage = <0 2856000 1200000 0 2856000>;
|
|
rgltr-load-current = <0 80000 1200000 0 0>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk1_active
|
|
&cam_sensor_active_rear_aux>;
|
|
pinctrl-1 = <&cam_sensor_mclk1_suspend
|
|
&cam_sensor_suspend_rear_aux>;
|
|
gpios = <&tlmm 14 0>,
|
|
<&tlmm 30 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-device = <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,eeprom@2 {
|
|
cell-index = <2>;
|
|
reg = <0x2>;
|
|
compatible = "qcom,eeprom";
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_vana-supply = <&pm8009_l6>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
cam_vaf-supply = <&pm8009_s2>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_vaf";
|
|
rgltr-cntrl-support;
|
|
rgltr-min-voltage = <0 2856000 1200000 0 2856000>;
|
|
rgltr-max-voltage = <0 2856000 1200000 0 2856000>;
|
|
rgltr-load-current = <0 80000 1200000 0 0>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk2_active
|
|
&cam_sensor_active_front>;
|
|
pinctrl-1 = <&cam_sensor_mclk2_suspend
|
|
&cam_sensor_suspend_front>;
|
|
gpios = <&tlmm 15 0>,
|
|
<&tlmm 12 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-device = <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>;
|
|
ois-src = <&ois_rear>;
|
|
eeprom-src = <&eeprom_rear>;
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_bob-supply = <&pm8150l_bob>;
|
|
cam_vana-supply = <&pm8009_l5>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_bob";
|
|
rgltr-cntrl-support;
|
|
pwm-switch;
|
|
rgltr-min-voltage = <0 2800000 1200000 0 3008000>;
|
|
rgltr-max-voltage = <0 2800000 1200000 0 4000000>;
|
|
rgltr-load-current = <0 80000 1200000 0 2000000>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk0_active
|
|
&cam_sensor_active_rear>;
|
|
pinctrl-1 = <&cam_sensor_mclk0_suspend
|
|
&cam_sensor_suspend_rear>;
|
|
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-device = <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>;
|
|
actuator-src = <&actuator_rear_aux>;
|
|
led-flash-src = <&led_flash_rear_aux>;
|
|
eeprom-src = <&eeprom_rear_aux>;
|
|
cam_bob-supply = <&pm8150l_bob>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_vana-supply = <&pm8009_l6>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_bob";
|
|
rgltr-cntrl-support;
|
|
pwm-switch;
|
|
rgltr-min-voltage = <0 2856000 1200000 0 3008000>;
|
|
rgltr-max-voltage = <0 2856000 1200000 0 4000000>;
|
|
rgltr-load-current = <0 80000 1200000 0 2000000>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk1_active
|
|
&cam_sensor_active_rear_aux>;
|
|
pinctrl-1 = <&cam_sensor_mclk1_suspend
|
|
&cam_sensor_suspend_rear_aux>;
|
|
gpios = <&tlmm 14 0>,
|
|
<&tlmm 30 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-device = <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 = <90>;
|
|
sensor-position-pitch = <0>;
|
|
sensor-position-yaw = <0>;
|
|
eeprom-src = <&eeprom_front>;
|
|
actuator-src = <&actuator_front>;
|
|
led-flash-src = <&led_flash_front>;
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_bob-supply = <&pm8150l_bob>;
|
|
cam_vana-supply = <&pm8009_l6>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_bob";
|
|
rgltr-cntrl-support;
|
|
pwm-switch;
|
|
rgltr-min-voltage = <0 2856000 1200000 0 3008000>;
|
|
rgltr-max-voltage = <0 2856000 1200000 0 4000000>;
|
|
rgltr-load-current = <0 80000 1200000 0 2000000>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk2_active
|
|
&cam_sensor_active_front>;
|
|
pinctrl-1 = <&cam_sensor_mclk2_suspend
|
|
&cam_sensor_suspend_front>;
|
|
gpios = <&tlmm 15 0>,
|
|
<&tlmm 12 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-device = <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@3 {
|
|
cell-index = <3>;
|
|
compatible = "qcom,cam-sensor";
|
|
reg = <0x03>;
|
|
csiphy-sd-index = <3>;
|
|
sensor-position-roll = <270>;
|
|
sensor-position-pitch = <0>;
|
|
sensor-position-yaw = <0>;
|
|
led-flash-src = <&led_flash_iris>;
|
|
cam_vio-supply = <&pm8150l_l1>;
|
|
cam_bob-supply = <&pm8150l_bob>;
|
|
cam_vana-supply = <&pm8009_l5>;
|
|
cam_vdig-supply = <&pm8009_l2>;
|
|
cam_clk-supply = <&titan_top_gdsc>;
|
|
regulator-names = "cam_vio", "cam_vana", "cam_vdig",
|
|
"cam_clk", "cam_bob";
|
|
rgltr-cntrl-support;
|
|
pwm-switch;
|
|
rgltr-min-voltage = <0 2800000 1200000 0 3008000>;
|
|
rgltr-max-voltage = <0 2800000 1200000 0 4000000>;
|
|
rgltr-load-current = <0 80000 1200000 0 2000000>;
|
|
gpio-no-mux = <0>;
|
|
pinctrl-names = "cam_default", "cam_suspend";
|
|
pinctrl-0 = <&cam_sensor_mclk3_active
|
|
&cam_sensor_active_iris>;
|
|
pinctrl-1 = <&cam_sensor_mclk3_suspend
|
|
&cam_sensor_active_iris>;
|
|
gpios = <&tlmm 16 0>,
|
|
<&tlmm 23 0>;
|
|
gpio-reset = <1>;
|
|
gpio-req-tbl-num = <0 1>;
|
|
gpio-req-tbl-flags = <1 0>;
|
|
gpio-req-tbl-label = "CAMIF_MCLK3",
|
|
"CAM_RESET3";
|
|
sensor-mode = <0>;
|
|
cci-device = <0>;
|
|
cci-master = <1>;
|
|
status = "ok";
|
|
clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
|
|
clock-names = "cam_clk";
|
|
clock-cntl-level = "turbo";
|
|
clock-rates = <24000000>;
|
|
};
|
|
};
|
|
|