Merge "ARM: dts: msm: Add a dtsi file for msmcobalt QRD device"
This commit is contained in:
commit
da994453a2
2 changed files with 879 additions and 1 deletions
356
arch/arm/boot/dts/qcom/msmcobalt-camera-sensor-qrd.dtsi
Normal file
356
arch/arm/boot/dts/qcom/msmcobalt-camera-sensor-qrd.dtsi
Normal file
|
@ -0,0 +1,356 @@
|
|||
|
||||
/*
|
||||
* Copyright (c) 2016, 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_flash0: qcom,camera-flash@0 {
|
||||
cell-index = <0>;
|
||||
compatible = "qcom,camera-flash";
|
||||
qcom,flash-source = <&pmicobalt_flash0 &pmicobalt_flash1>;
|
||||
qcom,torch-source = <&pmicobalt_torch0 &pmicobalt_torch1>;
|
||||
qcom,switch-source = <&pmicobalt_switch0>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
led_flash1: qcom,camera-flash@1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,camera-flash";
|
||||
qcom,flash-source = <&pmicobalt_flash2>;
|
||||
qcom,torch-source = <&pmicobalt_torch2>;
|
||||
qcom,switch-source = <&pmicobalt_switch1>;
|
||||
status = "ok";
|
||||
};
|
||||
};
|
||||
|
||||
&cci {
|
||||
actuator0: qcom,actuator@0 {
|
||||
cell-index = <0>;
|
||||
reg = <0x0>;
|
||||
compatible = "qcom,actuator";
|
||||
qcom,cci-master = <0>;
|
||||
gpios = <&tlmm 27 0>;
|
||||
qcom,gpio-vaf = <0>;
|
||||
qcom,gpio-req-tbl-num = <0>;
|
||||
qcom,gpio-req-tbl-flags = <0>;
|
||||
qcom,gpio-req-tbl-label = "CAM_VAF";
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_actuator_vaf_active>;
|
||||
pinctrl-1 = <&cam_actuator_vaf_suspend>;
|
||||
};
|
||||
|
||||
actuator1: qcom,actuator@1 {
|
||||
cell-index = <1>;
|
||||
reg = <0x1>;
|
||||
compatible = "qcom,actuator";
|
||||
qcom,cci-master = <1>;
|
||||
gpios = <&tlmm 27 0>;
|
||||
qcom,gpio-vaf = <0>;
|
||||
qcom,gpio-req-tbl-num = <0>;
|
||||
qcom,gpio-req-tbl-flags = <0>;
|
||||
qcom,gpio-req-tbl-label = "CAM_VAF";
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_actuator_vaf_active>;
|
||||
pinctrl-1 = <&cam_actuator_vaf_suspend>;
|
||||
};
|
||||
|
||||
ois0: qcom,ois@0 {
|
||||
cell-index = <0>;
|
||||
reg = <0x0>;
|
||||
compatible = "qcom,ois";
|
||||
qcom,cci-master = <0>;
|
||||
gpios = <&tlmm 27 0>;
|
||||
qcom,gpio-vaf = <0>;
|
||||
qcom,gpio-req-tbl-num = <0>;
|
||||
qcom,gpio-req-tbl-flags = <0>;
|
||||
qcom,gpio-req-tbl-label = "CAM_VAF";
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_actuator_vaf_active>;
|
||||
pinctrl-1 = <&cam_actuator_vaf_suspend>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
eeprom0: qcom,eeprom@0 {
|
||||
cell-index = <0>;
|
||||
reg = <0>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmicobalt_bob>;
|
||||
cam_vdig-supply = <&pmcobalt_s3>;
|
||||
qcom,cam-vreg-name = "cam_vio", "cam_vana", "cam_vdig";
|
||||
qcom,cam-vreg-min-voltage = <0 3312000 1352000>;
|
||||
qcom,cam-vreg-max-voltage = <0 3312000 1352000>;
|
||||
qcom,cam-vreg-op-mode = <0 80000 105000>;
|
||||
qcom,gpio-no-mux = <0>;
|
||||
pinctrl-names = "cam_default", "cam_suspend";
|
||||
pinctrl-0 = <&cam_sensor_mclk0_active
|
||||
&cam_sensor_rear_active
|
||||
&cam_actuator_vaf_active>;
|
||||
pinctrl-1 = <&cam_sensor_mclk0_suspend
|
||||
&cam_sensor_rear_suspend
|
||||
&cam_actuator_vaf_suspend>;
|
||||
gpios = <&tlmm 13 0>,
|
||||
<&tlmm 30 0>,
|
||||
<&pmcobalt_gpios 20 0>,
|
||||
<&tlmm 29 0>,
|
||||
<&tlmm 27 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vdig = <2>;
|
||||
qcom,gpio-vana = <3>;
|
||||
qcom,gpio-vaf = <4>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2 3 4>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET0",
|
||||
"CAM_VDIG",
|
||||
"CAM_VANA",
|
||||
"CAM_VAF";
|
||||
qcom,sensor-position = <0>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <0>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk0_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk0_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
|
||||
eeprom1: qcom,eeprom@1 {
|
||||
cell-index = <1>;
|
||||
reg = <0x1>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vdig-supply = <&pmcobalt_lvs1>;
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmicobalt_bob>;
|
||||
qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana";
|
||||
qcom,cam-vreg-min-voltage = <0 0 3312000>;
|
||||
qcom,cam-vreg-max-voltage = <0 0 3312000>;
|
||||
qcom,cam-vreg-op-mode = <0 0 80000>;
|
||||
qcom,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>,
|
||||
<&tlmm 8 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vana = <2>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK1",
|
||||
"CAM_RESET1",
|
||||
"CAM_VANA1";
|
||||
qcom,sensor-position = <0>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <1>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk2_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk2_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
|
||||
eeprom2: qcom,eeprom@2 {
|
||||
cell-index = <2>;
|
||||
reg = <0x2>;
|
||||
compatible = "qcom,eeprom";
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmcobalt_l22>;
|
||||
cam_vdig-supply = <&pmcobalt_s3>;
|
||||
qcom,cam-vreg-name = "cam_vio", "cam_vana", "cam_vdig";
|
||||
qcom,cam-vreg-min-voltage =
|
||||
<0 2864000 1352000>;
|
||||
qcom,cam-vreg-max-voltage =
|
||||
<0 2864000 1352000>;
|
||||
qcom,cam-vreg-op-mode = <0 80000 105000>;
|
||||
qcom,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>,
|
||||
<&pmcobalt_gpios 9 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vdig = <2>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
|
||||
"CAM_RESET2",
|
||||
"CAM_VDIG";
|
||||
qcom,sensor-position = <1>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <1>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk1_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk1_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
|
||||
qcom,camera@0 {
|
||||
cell-index = <0>;
|
||||
compatible = "qcom,camera";
|
||||
reg = <0x0>;
|
||||
qcom,csiphy-sd-index = <0>;
|
||||
qcom,csid-sd-index = <0>;
|
||||
qcom,mount-angle = <90>;
|
||||
qcom,led-flash-src = <&led_flash0>;
|
||||
qcom,actuator-src = <&actuator0>;
|
||||
qcom,ois-src = <&ois0>;
|
||||
qcom,eeprom-src = <&eeprom0>;
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmicobalt_bob>;
|
||||
cam_vdig-supply = <&pmcobalt_s3>;
|
||||
qcom,cam-vreg-name = "cam_vio", "cam_vana", "cam_vdig";
|
||||
qcom,cam-vreg-min-voltage = <0 3312000 1352000>;
|
||||
qcom,cam-vreg-max-voltage = <0 3312000 1352000>;
|
||||
qcom,cam-vreg-op-mode = <0 80000 105000>;
|
||||
qcom,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>,
|
||||
<&pmcobalt_gpios 20 0>,
|
||||
<&tlmm 29 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vdig = <2>;
|
||||
qcom,gpio-vana = <3>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2 3>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK0",
|
||||
"CAM_RESET0",
|
||||
"CAM_VDIG",
|
||||
"CAM_VANA";
|
||||
qcom,sensor-position = <0>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <0>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk0_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk0_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
|
||||
qcom,camera@1 {
|
||||
cell-index = <1>;
|
||||
compatible = "qcom,camera";
|
||||
reg = <0x1>;
|
||||
qcom,csiphy-sd-index = <1>;
|
||||
qcom,csid-sd-index = <1>;
|
||||
qcom,mount-angle = <90>;
|
||||
qcom,eeprom-src = <&eeprom1>;
|
||||
cam_vdig-supply = <&pmcobalt_lvs1>;
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmicobalt_bob>;
|
||||
qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana";
|
||||
qcom,cam-vreg-min-voltage = <0 0 3312000>;
|
||||
qcom,cam-vreg-max-voltage = <0 0 3312000>;
|
||||
qcom,cam-vreg-op-mode = <0 0 80000>;
|
||||
qcom,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>,
|
||||
<&tlmm 8 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vana = <2>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK1",
|
||||
"CAM_RESET1",
|
||||
"CAM_VANA1";
|
||||
qcom,sensor-position = <0>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <1>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk2_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk2_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
|
||||
qcom,camera@2 {
|
||||
cell-index = <2>;
|
||||
compatible = "qcom,camera";
|
||||
reg = <0x02>;
|
||||
qcom,csiphy-sd-index = <2>;
|
||||
qcom,csid-sd-index = <2>;
|
||||
qcom,mount-angle = <270>;
|
||||
qcom,eeprom-src = <&eeprom2>;
|
||||
qcom,led-flash-src = <&led_flash1>;
|
||||
qcom,actuator-src = <&actuator1>;
|
||||
cam_vio-supply = <&pmcobalt_lvs1>;
|
||||
cam_vana-supply = <&pmcobalt_l22>;
|
||||
cam_vdig-supply = <&pmcobalt_s3>;
|
||||
qcom,cam-vreg-name = "cam_vio", "cam_vana", "cam_vdig";
|
||||
qcom,cam-vreg-min-voltage =
|
||||
<0 2864000 1352000>;
|
||||
qcom,cam-vreg-max-voltage =
|
||||
<0 2864000 1352000>;
|
||||
qcom,cam-vreg-op-mode = <0 80000 105000>;
|
||||
qcom,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>,
|
||||
<&pmcobalt_gpios 9 0>;
|
||||
qcom,gpio-reset = <1>;
|
||||
qcom,gpio-vdig = <2>;
|
||||
qcom,gpio-req-tbl-num = <0 1 2>;
|
||||
qcom,gpio-req-tbl-flags = <1 0 0>;
|
||||
qcom,gpio-req-tbl-label = "CAMIF_MCLK2",
|
||||
"CAM_RESET2",
|
||||
"CAM_VDIG";
|
||||
qcom,sensor-position = <1>;
|
||||
qcom,sensor-mode = <0>;
|
||||
qcom,cci-master = <1>;
|
||||
status = "ok";
|
||||
clocks = <&clock_mmss clk_mclk1_clk_src>,
|
||||
<&clock_mmss clk_mmss_camss_mclk1_clk>;
|
||||
clock-names = "cam_src_clk", "cam_clk";
|
||||
qcom,clock-rates = <24000000 0>;
|
||||
};
|
||||
};
|
||||
&pmcobalt_gpios {
|
||||
gpio@c800 { /* GPIO 9 - CAMERA SENSOR 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@d300 { /* GPIO 20 - CAMERA SENSOR 0 VDIG */
|
||||
qcom,mode = <1>; /* Output */
|
||||
qcom,pull = <5>; /* No Pull */
|
||||
qcom,vin-sel = <1>; /* VIN1 GPIO_MV */
|
||||
qcom,src-sel = <0>; /* GPIO */
|
||||
qcom,invert = <0>; /* Invert */
|
||||
qcom,master-en = <1>; /* Enable GPIO */
|
||||
status = "ok";
|
||||
};
|
||||
};
|
|
@ -10,7 +10,529 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "msmcobalt-mtp.dtsi"
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include "msmcobalt-pinctrl.dtsi"
|
||||
#include "msmcobalt-camera-sensor-qrd.dtsi"
|
||||
/ {
|
||||
bluetooth: bt_wcn3990 {
|
||||
compatible = "qca,wcn3990";
|
||||
qca,bt-vdd-io-supply = <&pmcobalt_s3>;
|
||||
qca,bt-vdd-xtal-supply = <&pmcobalt_s5>;
|
||||
qca,bt-vdd-core-supply = <&pmcobalt_l7_pin_ctrl>;
|
||||
qca,bt-vdd-pa-supply = <&pmcobalt_l17_pin_ctrl>;
|
||||
qca,bt-vdd-ldo-supply = <&pmcobalt_l25_pin_ctrl>;
|
||||
qca,bt-chip-pwd-supply = <&pmicobalt_bob_pin1>;
|
||||
|
||||
qca,bt-vdd-io-voltage-level = <1352000 1352000>;
|
||||
qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
|
||||
qca,bt-vdd-core-voltage-level = <1800000 1800000>;
|
||||
qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
|
||||
qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
|
||||
qca,bt-chip-pwd-voltage-level = <3600000 3600000>;
|
||||
|
||||
qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
|
||||
qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
|
||||
qca,bt-vdd-core-current-level = <0>; /* LPM/PFM */
|
||||
qca,bt-vdd-pa-current-level = <0>; /* LPM/PFM */
|
||||
qca,bt-vdd-ldo-current-level = <0>; /* LPM/PFM */
|
||||
};
|
||||
};
|
||||
|
||||
&blsp1_uart3_hs {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&ufsphy1 {
|
||||
vdda-phy-supply = <&pmcobalt_l1>;
|
||||
vdda-pll-supply = <&pmcobalt_l2>;
|
||||
vddp-ref-clk-supply = <&pmcobalt_l26>;
|
||||
vdda-phy-max-microamp = <51400>;
|
||||
vdda-pll-max-microamp = <14600>;
|
||||
vddp-ref-clk-max-microamp = <100>;
|
||||
vddp-ref-clk-always-on;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&ufs1 {
|
||||
vdd-hba-supply = <&gdsc_ufs>;
|
||||
vdd-hba-fixed-regulator;
|
||||
vcc-supply = <&pmcobalt_l20>;
|
||||
vccq-supply = <&pmcobalt_l26>;
|
||||
vccq2-supply = <&pmcobalt_s4>;
|
||||
vcc-max-microamp = <750000>;
|
||||
vccq-max-microamp = <560000>;
|
||||
vccq2-max-microamp = <750000>;
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&ufs_ice {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&sdhc_2 {
|
||||
vdd-supply = <&pmcobalt_l21>;
|
||||
qcom,vdd-voltage-level = <2950000 2960000>;
|
||||
qcom,vdd-current-level = <200 800000>;
|
||||
|
||||
vdd-io-supply = <&pmcobalt_l13>;
|
||||
qcom,vdd-io-voltage-level = <1808000 2960000>;
|
||||
qcom,vdd-io-current-level = <200 22000>;
|
||||
|
||||
pinctrl-names = "active", "sleep";
|
||||
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
|
||||
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
|
||||
|
||||
qcom,clk-rates = <400000 20000000 25000000
|
||||
50000000 100000000 200000000>;
|
||||
qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
|
||||
|
||||
cd-gpios = <&tlmm 95 0x1>;
|
||||
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&uartblsp2dm1 {
|
||||
status = "ok";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart_console_active>;
|
||||
};
|
||||
|
||||
&pmcobalt_gpios {
|
||||
/* GPIO 6 for Vol+ Key */
|
||||
gpio@c500 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 7 for Snapshot Key */
|
||||
gpio@c600 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
/* GPIO 8 for Focus Key */
|
||||
gpio@c700 {
|
||||
status = "okay";
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
};
|
||||
|
||||
gpio@cc00 { /* GPIO 13 */
|
||||
qcom,mode = <1>;
|
||||
qcom,output-type = <0>;
|
||||
qcom,pull = <5>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,out-strength = <1>;
|
||||
qcom,src-sel = <3>;
|
||||
qcom,master-en = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* GPIO 21 (NFC_CLK_REQ) */
|
||||
gpio@d400 {
|
||||
qcom,mode = <0>;
|
||||
qcom,vin-sel = <1>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,master-en = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* GPIO 18 SMB138X */
|
||||
gpio@d100 {
|
||||
qcom,mode = <0>;
|
||||
qcom,pull = <0>;
|
||||
qcom,vin-sel = <0>;
|
||||
qcom,src-sel = <0>;
|
||||
qcom,master-en = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c_5 {
|
||||
status = "okay";
|
||||
synaptics@20 {
|
||||
compatible = "synaptics,dsx";
|
||||
reg = <0x20>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <125 0x2008>;
|
||||
vdd-supply = <&pmcobalt_l6>;
|
||||
avdd-supply = <&pmcobalt_l28>;
|
||||
synaptics,vdd-voltage = <1808000 1808000>;
|
||||
synaptics,avdd-voltage = <3008000 3008000>;
|
||||
synaptics,vdd-current = <40000>;
|
||||
synaptics,avdd-current = <20000>;
|
||||
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend";
|
||||
pinctrl-0 = <&ts_active>;
|
||||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
||||
synaptics,display-coords = <0 0 1439 2559>;
|
||||
synaptics,panel-coords = <0 0 1439 2559>;
|
||||
synaptics,reset-gpio = <&tlmm 89 0x00>;
|
||||
synaptics,irq-gpio = <&tlmm 125 0x2008>;
|
||||
synaptics,disable-gpios;
|
||||
synaptics,fw-name = "PR1702898-s3528t_60QHD_00400001.img";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c_6 { /* BLSP1 QUP6 (NFC) */
|
||||
status = "okay";
|
||||
nq@28 {
|
||||
compatible = "qcom,nq-nci";
|
||||
reg = <0x28>;
|
||||
qcom,nq-irq = <&tlmm 92 0x00>;
|
||||
qcom,nq-ven = <&tlmm 12 0x00>;
|
||||
qcom,nq-firm = <&tlmm 93 0x00>;
|
||||
qcom,nq-clkreq = <&pmcobalt_gpios 21 0x00>;
|
||||
qcom,nq-esepwr = <&tlmm 116 0x00>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
qcom,clk-src = "BBCLK3";
|
||||
interrupts = <92 0>;
|
||||
interrupt-names = "nfc_irq";
|
||||
pinctrl-names = "nfc_active", "nfc_suspend";
|
||||
pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
|
||||
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
|
||||
clocks = <&clock_gcc clk_ln_bb_clk3_pin>;
|
||||
clock-names = "ref_clk";
|
||||
};
|
||||
};
|
||||
|
||||
&mdss_hdmi_tx {
|
||||
pinctrl-names = "hdmi_hpd_active", "hdmi_ddc_active", "hdmi_cec_active",
|
||||
"hdmi_active", "hdmi_sleep";
|
||||
pinctrl-0 = <&mdss_hdmi_5v_active &mdss_hdmi_hpd_active
|
||||
&mdss_hdmi_ddc_suspend &mdss_hdmi_cec_suspend>;
|
||||
pinctrl-1 = <&mdss_hdmi_5v_active &mdss_hdmi_hpd_active
|
||||
&mdss_hdmi_ddc_active &mdss_hdmi_cec_suspend>;
|
||||
pinctrl-2 = <&mdss_hdmi_5v_active &mdss_hdmi_hpd_active
|
||||
&mdss_hdmi_cec_active &mdss_hdmi_ddc_suspend>;
|
||||
pinctrl-3 = <&mdss_hdmi_5v_active &mdss_hdmi_hpd_active
|
||||
&mdss_hdmi_ddc_active &mdss_hdmi_cec_active>;
|
||||
pinctrl-4 = <&mdss_hdmi_5v_suspend &mdss_hdmi_hpd_suspend
|
||||
&mdss_hdmi_ddc_suspend &mdss_hdmi_cec_suspend>;
|
||||
};
|
||||
|
||||
&mdss_dp_ctrl {
|
||||
pinctrl-names = "mdss_dp_active", "mdss_dp_sleep";
|
||||
pinctrl-0 = <&mdss_dp_aux_active &mdss_dp_usbplug_cc_active>;
|
||||
pinctrl-1 = <&mdss_dp_aux_suspend &mdss_dp_usbplug_cc_suspend>;
|
||||
qcom,aux-en-gpio = <&tlmm 77 0>;
|
||||
qcom,aux-sel-gpio = <&tlmm 78 0>;
|
||||
qcom,usbplug-cc-gpio = <&tlmm 38 0>;
|
||||
};
|
||||
|
||||
&mdss_mdp {
|
||||
qcom,mdss-pref-prim-intf = "dsi";
|
||||
};
|
||||
|
||||
&mdss_dsi {
|
||||
hw-config = "split_dsi";
|
||||
};
|
||||
|
||||
&mdss_dsi0 {
|
||||
qcom,dsi-pref-prim-pan = <&dsi_dual_nt35597_video>;
|
||||
pinctrl-names = "mdss_default", "mdss_sleep";
|
||||
pinctrl-0 = <&mdss_dsi_active &mdss_te_active>;
|
||||
pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>;
|
||||
qcom,platform-reset-gpio = <&tlmm 94 0>;
|
||||
qcom,platform-te-gpio = <&tlmm 10 0>;
|
||||
qcom,panel-mode-gpio = <&tlmm 91 0>;
|
||||
};
|
||||
|
||||
&mdss_dsi1 {
|
||||
qcom,dsi-pref-prim-pan = <&dsi_dual_nt35597_video>;
|
||||
pinctrl-names = "mdss_default", "mdss_sleep";
|
||||
pinctrl-0 = <&mdss_dsi_active &mdss_te_active>;
|
||||
pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>;
|
||||
qcom,platform-reset-gpio = <&tlmm 94 0>;
|
||||
qcom,platform-te-gpio = <&tlmm 10 0>;
|
||||
qcom,panel-mode-gpio = <&tlmm 91 0>;
|
||||
};
|
||||
|
||||
&labibb {
|
||||
status = "ok";
|
||||
qpnp,qpnp-labibb-mode = "lcd";
|
||||
};
|
||||
|
||||
&dsi_dual_nt35597_video {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_dual_nt35597_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_dual_nt35597_truly_video {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_dual_nt35597_truly_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_nt35597_dsc_video {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_nt35597_dsc_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_sharp_4k_dsc_video {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_sharp_4k_dsc_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_dual_jdi_video {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,5v-boost-gpio = <&tlmm 51 0>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_dual_jdi_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,5v-boost-gpio = <&tlmm 51 0>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_sharp_1080_cmd {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
||||
};
|
||||
|
||||
&dsi_jdi_1080_vid {
|
||||
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,panel-supply-entries = <&dsi_panel_pwr_supply_no_labibb>;
|
||||
qcom,5v-boost-gpio = <&tlmm 51 0>;
|
||||
};
|
||||
|
||||
&i2c_7 {
|
||||
status = "okay";
|
||||
qcom,smb138x@8 {
|
||||
compatible = "qcom,i2c-pmic";
|
||||
reg = <0x8>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
interrupt-parent = <&spmi_bus>;
|
||||
interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>;
|
||||
interrupt_names = "smb138x";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <3>;
|
||||
qcom,periph-map = <0x10 0x11 0x12 0x13 0x14 0x16 0x36>;
|
||||
|
||||
smb138x_parallel_slave: qcom,smb138x-parallel-slave@1000 {
|
||||
compatible = "qcom,smb138x-parallel-slave";
|
||||
reg = <0x1000 0x700>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pmicobalt_haptics {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pmcobalt_vadc {
|
||||
chan@83 {
|
||||
label = "vph_pwr";
|
||||
reg = <0x83>;
|
||||
qcom,decimation = <2>;
|
||||
qcom,pre-div-channel-scaling = <1>;
|
||||
qcom,calibration-type = "absolute";
|
||||
qcom,scale-function = <0>;
|
||||
qcom,hw-settle-time = <0>;
|
||||
qcom,fast-avg-setup = <0>;
|
||||
};
|
||||
|
||||
chan@85 {
|
||||
label = "vcoin";
|
||||
reg = <0x85>;
|
||||
qcom,decimation = <2>;
|
||||
qcom,pre-div-channel-scaling = <1>;
|
||||
qcom,calibration-type = "absolute";
|
||||
qcom,scale-function = <0>;
|
||||
qcom,hw-settle-time = <0>;
|
||||
qcom,fast-avg-setup = <0>;
|
||||
};
|
||||
|
||||
chan@4c {
|
||||
label = "xo_therm";
|
||||
reg = <0x4c>;
|
||||
qcom,decimation = <2>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <4>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,fast-avg-setup = <0>;
|
||||
};
|
||||
|
||||
chan@4d {
|
||||
label = "msm_therm";
|
||||
reg = <0x4d>;
|
||||
qcom,decimation = <2>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <2>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,fast-avg-setup = <0>;
|
||||
};
|
||||
|
||||
chan@51 {
|
||||
label = "quiet_therm";
|
||||
reg = <0x51>;
|
||||
qcom,decimation = <2>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <2>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,fast-avg-setup = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
&pmcobalt_adc_tm {
|
||||
chan@83 {
|
||||
label = "vph_pwr";
|
||||
reg = <0x83>;
|
||||
qcom,pre-div-channel-scaling = <1>;
|
||||
qcom,calibration-type = "absolute";
|
||||
qcom,scale-function = <0>;
|
||||
qcom,hw-settle-time = <0>;
|
||||
qcom,btm-channel-number = <0x60>;
|
||||
};
|
||||
|
||||
chan@4d {
|
||||
label = "msm_therm";
|
||||
reg = <0x4d>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <2>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,btm-channel-number = <0x68>;
|
||||
qcom,thermal-node;
|
||||
};
|
||||
|
||||
chan@51 {
|
||||
label = "quiet_therm";
|
||||
reg = <0x51>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <2>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,btm-channel-number = <0x70>;
|
||||
qcom,thermal-node;
|
||||
};
|
||||
|
||||
chan@4c {
|
||||
label = "xo_therm";
|
||||
reg = <0x4c>;
|
||||
qcom,pre-div-channel-scaling = <0>;
|
||||
qcom,calibration-type = "ratiometric";
|
||||
qcom,scale-function = <4>;
|
||||
qcom,hw-settle-time = <2>;
|
||||
qcom,btm-channel-number = <0x78>;
|
||||
qcom,thermal-node;
|
||||
};
|
||||
};
|
||||
|
||||
&wil6210 {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&soc {
|
||||
sound-9335 {
|
||||
qcom,wcn-btfm;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
input-name = "gpio-keys";
|
||||
status = "okay";
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pmcobalt_gpios 6 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <115>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_snapshot {
|
||||
label = "cam_snapshot";
|
||||
gpios = <&pmcobalt_gpios 7 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <766>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
|
||||
cam_focus {
|
||||
label = "cam_focus";
|
||||
gpios = <&pmcobalt_gpios 8 0x1>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <528>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/{
|
||||
mtp_batterydata: qcom,battery-data {
|
||||
qcom,batt-id-range-pct = <15>;
|
||||
#include "fg-gen3-batterydata-itech-3000mah.dtsi"
|
||||
#include "fg-gen3-batterydata-ascent-3450mah.dtsi"
|
||||
};
|
||||
};
|
||||
|
||||
&mdss_mdp {
|
||||
qcom,mdss-pref-prim-intf = "dsi";
|
||||
|
|
Loading…
Add table
Reference in a new issue