camera: Add support for Xiaomi 12S Pro (unicorn|L2S)
Change-Id: I098ff2de228a5fb92bdf06e26ad1766d4b6c80a5
This commit is contained in:
@@ -13,7 +13,8 @@ dtbo-$(CONFIG_ARCH_DIWALI) += diwali-camera-sensor-qrd.dtbo
|
||||
dtbo-$(CONFIG_ARCH_CAPE) += cape-camera.dtbo
|
||||
dtbo-$(CONFIG_ARCH_CAPE) += cape-camera-sensor-mtp.dtbo \
|
||||
cape-camera-sensor-cdp.dtbo \
|
||||
cape-camera-sensor-qrd.dtbo
|
||||
cape-camera-sensor-qrd.dtbo \
|
||||
unicorn-sm8475-camera-sensor.dtbo
|
||||
|
||||
dtbo-$(CONFIG_ARCH_CAPE) += ukee-camera-sensor-mtp.dtbo \
|
||||
ukee-camera-sensor-cdp.dtbo \
|
||||
|
||||
17
qcom/camera/unicorn-sm8475-camera-sensor.dts
Normal file
17
qcom/camera/unicorn-sm8475-camera-sensor.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/clock/qcom,gcc-waipio.h>
|
||||
#include <dt-bindings/clock/qcom,camcc-waipio.h>
|
||||
#include <dt-bindings/interconnect/qcom,waipio.h>
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
|
||||
|
||||
#include "unicorn-sm8475-camera-sensor.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. 8475 unicorn";
|
||||
compatible = "qcom,cape", "qcom,capep";
|
||||
qcom,msm-id = <530 0x10000>, <531 0x10000>, <540 0x10000>;
|
||||
qcom,board-id = <0x10008 0>;
|
||||
xiaomi,miboard-id = <0x8 0>;
|
||||
};
|
||||
925
qcom/camera/unicorn-sm8475-camera-sensor.dtsi
Normal file
925
qcom/camera/unicorn-sm8475-camera-sensor.dtsi
Normal file
@@ -0,0 +1,925 @@
|
||||
#include <dt-bindings/clock/qcom,camcc-waipio.h>
|
||||
#include <dt-bindings/msm-camera.h>
|
||||
|
||||
&cci0_active {
|
||||
config {
|
||||
pins = "gpio110","gpio111";
|
||||
bias-pull-up; /* PULL UP*/
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci0_suspend {
|
||||
config {
|
||||
pins = "gpio110","gpio111";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci1_active {
|
||||
config {
|
||||
pins = "gpio112","gpio113";
|
||||
bias-pull-up; /* PULL UP*/
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci1_suspend {
|
||||
config {
|
||||
pins = "gpio112","gpio113";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci2_active {
|
||||
config {
|
||||
pins = "gpio114","gpio115";
|
||||
bias-pull-up; /* PULL UP*/
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci2_suspend {
|
||||
config {
|
||||
pins = "gpio114","gpio115";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
&cci3_active {
|
||||
config {
|
||||
pins = "gpio208","gpio209";
|
||||
bias-pull-up; /* PULL UP*/
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
qcom,apps;
|
||||
};
|
||||
};
|
||||
|
||||
&cci3_suspend {
|
||||
config {
|
||||
pins = "gpio208","gpio209";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
qcom,remote;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&tlmm {
|
||||
cam_sensor_active_rst0: cam_sensor_active_rst0 {
|
||||
/* RESET REAR */
|
||||
mux {
|
||||
pins = "gpio126";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio126";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_suspend_rst0: cam_sensor_suspend_rst0 {
|
||||
/* RESET REAR */
|
||||
mux {
|
||||
pins = "gpio126";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio126";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_active_rst5: cam_sensor_active_rst5 {
|
||||
/* RESET 5 */
|
||||
mux {
|
||||
pins = "gpio127";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio127";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_suspend_rst5: cam_sensor_suspend_rst5 {
|
||||
/* RESET 5 */
|
||||
mux {
|
||||
pins = "gpio127";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio127";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_front_vdig_active: cam_sensor_front_vdig_active {
|
||||
/* FRONT DVDD */
|
||||
mux {
|
||||
pins = "gpio44";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio44";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_front_vdig_suspend: cam_sensor_front_vdig_suspend {
|
||||
/* FRONT DVDD */
|
||||
mux {
|
||||
pins = "gpio44";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio44";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_front_avdd_active: cam_sensor_front_avdd_active {
|
||||
/* FRONT AVDD */
|
||||
mux {
|
||||
pins = "gpio64";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio64";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_front_avdd_suspend: cam_sensor_front_avdd_suspend {
|
||||
/* FRONT AVDD */
|
||||
mux {
|
||||
pins = "gpio64";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio64";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_active_rst7: cam_sensor_active_rst7 {
|
||||
/* RESET REARAUX */
|
||||
mux {
|
||||
pins = "gpio128";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio128";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_suspend_rst7: cam_sensor_suspend_rst7 {
|
||||
/* RESET REARAUX */
|
||||
mux {
|
||||
pins = "gpio128";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio128";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_ultra_avdd_active: cam_sensor_ultra_avdd_active {
|
||||
/* SENSOR MACRO AVDD ENABLE */
|
||||
mux {
|
||||
pins = "gpio6";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_ultra_avdd_suspend: cam_sensor_ultra_avdd_suspend {
|
||||
/* SENSOR MACRO AVDD DISABLE */
|
||||
mux {
|
||||
pins = "gpio6";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_tele_avdd_active: cam_sensor_tele_avdd_active {
|
||||
/* SENSOR MACRO AVDD ENABLE */
|
||||
mux {
|
||||
pins = "gpio71";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio71";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_tele_avdd_suspend: cam_sensor_tele_avdd_suspend {
|
||||
/* SENSOR MACRO AVDD DISABLE */
|
||||
mux {
|
||||
pins = "gpio71";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio71";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_active_wide: cam_sensor_active_wide {
|
||||
mux {
|
||||
pins = "gpio70", "gpio2";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio70", "gpio2";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_suspend_wide: cam_sensor_suspend_wide {
|
||||
mux {
|
||||
pins = "gpio70", "gpio2";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio70", "gpio2";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
//tele
|
||||
cam_sensor_mclk0_active: cam_sensor_mclk0_active {
|
||||
/* MCLK0 */
|
||||
mux {
|
||||
pins = "gpio100";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio100";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_mclk0_suspend: cam_sensor_mclk0_suspend {
|
||||
/* MCLK0 */
|
||||
mux {
|
||||
pins = "gpio100";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio100";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
//ultra
|
||||
cam_sensor_mclk1_active: cam_sensor_mclk1_active {
|
||||
/* MCLK1 */
|
||||
mux {
|
||||
pins = "gpio101";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio101";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_mclk1_suspend: cam_sensor_mclk1_suspend {
|
||||
/* MCLK1 */
|
||||
mux {
|
||||
pins = "gpio101";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio101";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
//wide
|
||||
cam_sensor_mclk2_active: cam_sensor_mclk2_active {
|
||||
/* MCLK2 */
|
||||
mux {
|
||||
pins = "gpio102";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio102";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_mclk2_suspend: cam_sensor_mclk2_suspend {
|
||||
/* MCLK2 */
|
||||
mux {
|
||||
pins = "gpio102";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio102";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
//front
|
||||
cam_sensor_mclk5_active: cam_sensor_mclk5_active {
|
||||
/* MCLK5 */
|
||||
mux {
|
||||
pins = "gpio105";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio105";
|
||||
bias-disable; /* No PULL */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
cam_sensor_mclk5_suspend: cam_sensor_mclk5_suspend {
|
||||
/* MCLK5 */
|
||||
mux {
|
||||
pins = "gpio105";
|
||||
function = "cam_mclk";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio105";
|
||||
bias-pull-down; /* PULL DOWN */
|
||||
drive-strength = <4>; /* 4 MA */
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&pm8350c_switch0 {
|
||||
qcom,led-mask = <1>; /* Channels 1 & 4 */
|
||||
qcom,symmetry-en;
|
||||
};
|
||||
|
||||
&cam_csiphy2{
|
||||
compatible = "qcom,csiphy-v2.1.3-xiaomi-l2s", "qcom,csiphy";
|
||||
};
|
||||
|
||||
&soc {
|
||||
led_flash_wide: qcom,camera-flash@1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,camera-flash";
|
||||
flash-source = <&pm8350c_flash0>;
|
||||
torch-source = <&pm8350c_torch0>;
|
||||
switch-source = <&pm8350c_switch0>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
led_flash_ultra: qcom,camera-flash@2 {
|
||||
cell-index = <2>;
|
||||
compatible = "qcom,camera-flash";
|
||||
flash-source = <&pm8350c_flash0>;
|
||||
torch-source = <&pm8350c_torch0>;
|
||||
switch-source = <&pm8350c_switch0>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
led_flash_tele: qcom,camera-flash@3 {
|
||||
cell-index = <3>;
|
||||
compatible = "qcom,camera-flash";
|
||||
flash-source = <&pm8350c_flash0>;
|
||||
torch-source = <&pm8350c_torch0>;
|
||||
switch-source = <&pm8350c_switch0>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
|
||||
camera_front_vdig_ldo: gpio-regulator@1 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x01 0x00>;
|
||||
regulator-name = "camera_front_vdig_ldo";
|
||||
regulator-min-microvolt = <1104000>;
|
||||
regulator-max-microvolt = <1104000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 44 0>;
|
||||
pinctrl-names = "front_vdig_active", "front_vdig_suspend";
|
||||
pinctrl-0 = <&cam_sensor_front_vdig_active
|
||||
&cam_sensor_front_vdig_suspend>;
|
||||
vin-supply = <&S12B>;
|
||||
};
|
||||
|
||||
camera_front_avdd_ldo: gpio-regulator@2 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x02 0x00>;
|
||||
regulator-name = "camera_front_avdd_ldo";
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 64 0>;
|
||||
pinctrl-names = "front_avdd_active", "front_avdd_suspend";
|
||||
pinctrl-0 = <&cam_sensor_front_avdd_active
|
||||
&cam_sensor_front_avdd_suspend>;
|
||||
};
|
||||
|
||||
CAMERA_ULTRA_AVDD: gpio-regulator@3 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x03 0x00>;
|
||||
regulator-name = "CAMERA_ULTRA_AVDD";
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 6 0>;
|
||||
pinctrl-names = "ultra_avdd_active", "ultra_avdd_suspend";
|
||||
pinctrl-0 = <&cam_sensor_ultra_avdd_active
|
||||
&cam_sensor_ultra_avdd_suspend>;
|
||||
vin-supply = <&BOB>;
|
||||
};
|
||||
|
||||
CAMERA_TELE_AVDD: gpio-regulator@4 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x04 0x00>;
|
||||
regulator-name = "CAMERA_TELE_AVDD";
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 71 0>;
|
||||
pinctrl-names = "tele_avdd_active", "tele_avdd_suspend";
|
||||
pinctrl-0 = <&cam_sensor_tele_avdd_active
|
||||
&cam_sensor_tele_avdd_suspend>;
|
||||
vin-supply = <&BOB>;
|
||||
};
|
||||
|
||||
camera_wide_avdd_ldo: gpio-regulator@5 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x05 0x00>;
|
||||
regulator-name = "camera_wide_avdd_ldo";
|
||||
regulator-min-microvolt = <1860000>;
|
||||
regulator-max-microvolt = <1860000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 70 0>;
|
||||
//vin-supply = <&S1C>;
|
||||
};
|
||||
|
||||
camera_wide_dvdd_ldo: gpio-regulator@6 {
|
||||
compatible = "regulator-fixed";
|
||||
reg = <0x06 0x00>;
|
||||
regulator-name = "camera_wide_dvdd_ldo";
|
||||
regulator-min-microvolt = <1250000>;
|
||||
regulator-max-microvolt = <1250000>;
|
||||
regulator-enable-ramp-delay = <100>;
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 2 0>;
|
||||
vin-supply = <&S12B>;
|
||||
};
|
||||
|
||||
qcom,cam-res-mgr {
|
||||
compatible = "qcom,cam-res-mgr";
|
||||
gpios-shared-pinctrl = <427 371 303 403>;
|
||||
shared-pctrl-gpio-names = "cam_wide", "cam_wide", "cam_wide", "cam_wide";
|
||||
pinctrl-names = "cam_wide_active", "cam_wide_suspend";
|
||||
pinctrl-0 = <&cam_sensor_active_rst0
|
||||
&cam_sensor_active_wide
|
||||
&cam_sensor_mclk2_active>;
|
||||
pinctrl-1 = <&cam_sensor_suspend_rst0
|
||||
&cam_sensor_suspend_wide
|
||||
&cam_sensor_mclk2_suspend>;
|
||||
status = "ok";
|
||||
};
|
||||
};
|
||||
|
||||
&cam_cci0
|
||||
{
|
||||
ois_wide: qcom,ois0 {
|
||||
cell-index = <0>;
|
||||
reg = <0x0>;
|
||||
compatible = "qcom,ois";
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&camera_wide_dvdd_ldo>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&camera_wide_avdd_ldo>;
|
||||
cam_v_custom1-supply = <&L6J>;
|
||||
cam_vaf-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana", "cam_v_custom1", "cam_vaf";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-max-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-load-current = <155000 680000 0 50000 103000 103000>;
|
||||
use-shared-clk;
|
||||
gpio-no-mux = <0>;
|
||||
gpios = <&tlmm 102 0>,
|
||||
<&tlmm 126 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET0";
|
||||
cci-master = <1>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK2_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
actuator_triple_wide: qcom,actuator0 {
|
||||
cell-index = <0>;
|
||||
compatible = "qcom,actuator";
|
||||
cci-master = <1>;
|
||||
cam_vaf-supply = <&L7J>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
regulator-names = "cam_vaf", "cam_vio";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <3104000 1800000>;
|
||||
rgltr-max-voltage = <3104000 1800000>;
|
||||
rgltr-load-current = <103000 155000>;
|
||||
};
|
||||
|
||||
eeprom_triple_wide: qcom,eeprom0 {
|
||||
cell-index = <0>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&camera_wide_dvdd_ldo>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&camera_wide_avdd_ldo>;
|
||||
cam_v_custom1-supply = <&L6J>;
|
||||
cam_vaf-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana", "cam_v_custom1", "cam_vaf";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-max-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-load-current = <155000 680000 0 50000 103000 103000>;
|
||||
use-shared-clk;
|
||||
gpio-no-mux = <0>;
|
||||
gpios = <&tlmm 102 0>,
|
||||
<&tlmm 126 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET0";
|
||||
cci-master = <1>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK2_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
eeprom_front: qcom,eeprom1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&camera_front_vdig_ldo>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&camera_front_avdd_ldo>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1104000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1104000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk5_active
|
||||
&cam_sensor_active_rst5>;
|
||||
pinctrl-1 = <&cam_sensor_mclk5_suspend
|
||||
&cam_sensor_suspend_rst5>;
|
||||
gpios = <&tlmm 105 0>,
|
||||
<&tlmm 127 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK5",
|
||||
"CAM_RESET5";
|
||||
cci-device = <1>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK5_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
eeprom_triple_ultra: qcom,eeprom2 {
|
||||
cell-index = <2>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&L2J>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&CAMERA_ULTRA_AVDD>;
|
||||
//cam_v_custom1-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk1_active
|
||||
&cam_sensor_active_rst1>;
|
||||
pinctrl-1 = <&cam_sensor_mclk1_suspend
|
||||
&cam_sensor_suspend_rst1>;
|
||||
gpios = <&tlmm 101 0>,
|
||||
<&tlmm 24 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK1",
|
||||
"CAM_RESET1";
|
||||
//cci-device = <0>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK1_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
qcom,cam-sensor0 {
|
||||
cell-index = <0>;
|
||||
compatible = "qcom,cam-sensor";
|
||||
csiphy-sd-index = <2>;
|
||||
eeprom-src = <&eeprom_triple_wide>;
|
||||
actuator-src = <&actuator_triple_wide>;
|
||||
led-flash-src = <&led_flash_wide>;
|
||||
ois-src = <&ois_wide>;
|
||||
sensor-position-roll = <90>;
|
||||
sensor-position-pitch = <0>;
|
||||
sensor-position-yaw = <180>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&camera_wide_dvdd_ldo>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&camera_wide_avdd_ldo>;
|
||||
cam_v_custom1-supply = <&L6J>;
|
||||
cam_vaf-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana", "cam_v_custom1", "cam_vaf";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-max-voltage = <1800000 1250000 0 1860000 3104000 3104000>;
|
||||
rgltr-load-current = <155000 680000 0 50000 103000 103000>;
|
||||
use-shared-clk;
|
||||
gpio-no-mux = <0>;
|
||||
gpios = <&tlmm 102 0>,
|
||||
<&tlmm 126 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET0";
|
||||
cci-master = <1>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK2_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
qcom,cam-sensor1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,cam-sensor";
|
||||
csiphy-sd-index = <3>;
|
||||
eeprom-src = <&eeprom_front>;
|
||||
sensor-position-roll = <270>;
|
||||
sensor-position-pitch = <0>;
|
||||
sensor-position-yaw = <0>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&camera_front_vdig_ldo>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&camera_front_avdd_ldo>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1104000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1104000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk5_active
|
||||
&cam_sensor_active_rst5>;
|
||||
pinctrl-1 = <&cam_sensor_mclk5_suspend
|
||||
&cam_sensor_suspend_rst5>;
|
||||
gpios = <&tlmm 105 0>,
|
||||
<&tlmm 127 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK5",
|
||||
"CAM_RESET5";
|
||||
cci-device = <1>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK5_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
//Ultra
|
||||
qcom,cam-sensor2 {
|
||||
cell-index = <2>;
|
||||
compatible = "qcom,cam-sensor";
|
||||
csiphy-sd-index = <0>;
|
||||
eeprom-src = <&eeprom_triple_ultra>;
|
||||
led-flash-src = <&led_flash_ultra>;
|
||||
sensor-position-roll = <90>;
|
||||
sensor-position-pitch = <0>;
|
||||
sensor-position-yaw = <180>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&L2J>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&CAMERA_ULTRA_AVDD>;
|
||||
//cam_v_custom1-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk1_active
|
||||
&cam_sensor_active_rst1>;
|
||||
pinctrl-1 = <&cam_sensor_mclk1_suspend
|
||||
&cam_sensor_suspend_rst1>;
|
||||
gpios = <&tlmm 101 0>,
|
||||
<&tlmm 24 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK1",
|
||||
"CAM_RESET1";
|
||||
//cci-device = <0>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK1_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&cam_cci1 {
|
||||
actuator_triple_tele: qcom,actuator1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,actuator";
|
||||
cci-master = <0>;
|
||||
cam_vaf-supply = <&L4J>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
regulator-names = "cam_vaf", "cam_vio";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <2808000 1800000>;
|
||||
rgltr-max-voltage = <2808000 1800000>;
|
||||
rgltr-load-current = <100000 5000>;
|
||||
};
|
||||
|
||||
eeprom_triple_tele: qcom,eeprom3 {
|
||||
cell-index = <3>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&L1J>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&CAMERA_TELE_AVDD>;
|
||||
//cam_v_custom1-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk0_active
|
||||
&cam_sensor_active_rst7>;
|
||||
pinctrl-1 = <&cam_sensor_mclk0_suspend
|
||||
&cam_sensor_suspend_rst7>;
|
||||
gpios = <&tlmm 100 0>,
|
||||
<&tlmm 128 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET7";
|
||||
//cci-device = <0>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
//tele
|
||||
qcom,cam-sensor3 {
|
||||
cell-index = <3>;
|
||||
compatible = "qcom,cam-sensor";
|
||||
csiphy-sd-index = <1>;
|
||||
eeprom-src = <&eeprom_triple_tele>;
|
||||
actuator-src = <&actuator_triple_tele>;
|
||||
led-flash-src = <&led_flash_tele>;
|
||||
sensor-position-roll = <90>;
|
||||
sensor-position-pitch = <0>;
|
||||
sensor-position-yaw = <180>;
|
||||
cam_vio-supply = <&L5J>;
|
||||
cam_vdig-supply = <&L1J>;
|
||||
cam_clk-supply = <&cam_cc_titan_top_gdsc>;
|
||||
cam_vana-supply = <&CAMERA_TELE_AVDD>;
|
||||
//cam_v_custom1-supply = <&L7J>;
|
||||
regulator-names = "cam_vio", "cam_vdig",
|
||||
"cam_clk", "cam_vana";
|
||||
rgltr-cntrl-support;
|
||||
rgltr-min-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-max-voltage = <1800000 1056000 0 2800000>;
|
||||
rgltr-load-current = <5000 680000 0 35000>;
|
||||
gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk0_active
|
||||
&cam_sensor_active_rst7>;
|
||||
pinctrl-1 = <&cam_sensor_mclk0_suspend
|
||||
&cam_sensor_suspend_rst7>;
|
||||
gpios = <&tlmm 100 0>,
|
||||
<&tlmm 128 0>;
|
||||
gpio-reset = <1>;
|
||||
gpio-req-tbl-num = <0 1>;
|
||||
gpio-req-tbl-flags = <1 0>;
|
||||
gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET7";
|
||||
//cci-device = <0>;
|
||||
cci-master = <0>;
|
||||
clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
|
||||
clock-names = "cam_clk";
|
||||
clock-cntl-level = "nominal";
|
||||
clock-rates = <19200000>;
|
||||
status = "ok";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user