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.
283 lines
7.6 KiB
283 lines
7.6 KiB
/* Copyright (c) 2016-2020, 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.
|
|
*/
|
|
|
|
#include "sdm660-camera-sensor-cdp.dtsi"
|
|
/ {
|
|
};
|
|
|
|
&uartblsp1dm1 {
|
|
status = "ok";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart_console_active>;
|
|
};
|
|
|
|
&ufsphy1 {
|
|
vdda-phy-supply = <&pm660l_l1>;
|
|
vdda-pll-supply = <&pm660_l10>;
|
|
vdda-phy-max-microamp = <51400>;
|
|
vdda-pll-max-microamp = <14200>;
|
|
status = "ok";
|
|
};
|
|
|
|
&ufs1 {
|
|
vdd-hba-supply = <&gdsc_ufs>;
|
|
vdd-hba-fixed-regulator;
|
|
vcc-supply = <&pm660l_l4>;
|
|
vccq2-supply = <&pm660_l8>;
|
|
vcc-max-microamp = <500000>;
|
|
vccq2-max-microamp = <600000>;
|
|
qcom,vddp-ref-clk-supply = <&pm660_l1>;
|
|
qcom,vddp-ref-clk-max-microamp = <100>;
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&pm660_gpios {
|
|
/* GPIO 4 (NFC_CLK_REQ) */
|
|
nfc_clk {
|
|
nfc_clk_default: nfc_clk_default {
|
|
pins = "gpio4";
|
|
function = "normal";
|
|
input-enable;
|
|
power-source = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c_6 { /* BLSP1 QUP6 (NFC) */
|
|
status = "okay";
|
|
nq@28 {
|
|
compatible = "qcom,nq-nci";
|
|
reg = <0x28>;
|
|
qcom,nq-irq = <&tlmm 28 0x00>;
|
|
qcom,nq-ven = <&tlmm 29 0x00>;
|
|
qcom,nq-firm = <&tlmm 30 0x00>;
|
|
qcom,nq-clkreq = <&pm660_gpios 4 0x00>;
|
|
qcom,nq-esepwr = <&tlmm 31 0x00>;
|
|
interrupt-parent = <&tlmm>;
|
|
qcom,clk-src = "BBCLK3";
|
|
interrupts = <28 0>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_enable_active
|
|
&nfc_clk_default>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
|
|
clocks = <&clock_rpmcc RPM_SMD_LN_BB_CLK3_PIN>;
|
|
clock-names = "ref_clk";
|
|
};
|
|
};
|
|
|
|
&mdss_mdp {
|
|
qcom,mdss-pref-prim-intf = "dsi";
|
|
};
|
|
|
|
&mdss_dsi {
|
|
hw-config = "split_dsi";
|
|
};
|
|
|
|
&mdss_dsi0 {
|
|
qcom,dsi-pref-prim-pan = <&dsi_dual_nt35597_truly_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 53 0>;
|
|
qcom,platform-te-gpio = <&tlmm 59 0>;
|
|
};
|
|
|
|
&mdss_dsi1 {
|
|
qcom,dsi-pref-prim-pan = <&dsi_dual_nt35597_truly_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 53 0>;
|
|
qcom,platform-te-gpio = <&tlmm 59 0>;
|
|
};
|
|
|
|
&pm660l_wled {
|
|
qcom,string-cfg= <6>;
|
|
status = "ok";
|
|
};
|
|
|
|
&pm660l_lcdb {
|
|
status = "ok";
|
|
};
|
|
|
|
&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_dual_sharp_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_nt35597_truly_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_nt35597_truly_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_nt35597_video {
|
|
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
|
|
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
|
};
|
|
|
|
&dsi_dual_nt35597_cmd {
|
|
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
|
|
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
|
qcom,partial-update-enabled = "single_roi";
|
|
qcom,panel-roi-alignment = <720 128 720 128 1440 128>;
|
|
};
|
|
|
|
&dsi_nt35695b_truly_fhd_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_nt35695b_truly_fhd_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_truly_1080_vid {
|
|
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
|
|
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
|
};
|
|
|
|
&dsi_truly_1080_cmd {
|
|
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
|
|
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
|
|
qcom,partial-update-enabled = "single_roi";
|
|
qcom,panel-roi-alignment = <2 2 4 2 1080 2>;
|
|
};
|
|
|
|
&dsi_rm67195_amoled_fhd_cmd {
|
|
qcom,panel-supply-entries = <&dsi_panel_pwr_supply_labibb_amoled>;
|
|
};
|
|
|
|
&dsi_lgd_incell_sw49106_fhd_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_hx8399c_truly_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>;
|
|
};
|
|
|
|
&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 55 0>;
|
|
qcom,aux-sel-gpio = <&tlmm 56 0>;
|
|
qcom,usbplug-cc-gpio = <&tlmm 58 0>;
|
|
};
|
|
|
|
&sdhc_1 {
|
|
/* device core power supply */
|
|
vdd-supply = <&pm660l_l4>;
|
|
qcom,vdd-voltage-level = <2950000 2950000>;
|
|
qcom,vdd-current-level = <200 570000>;
|
|
|
|
/* device communication power supply */
|
|
vdd-io-supply = <&pm660_l8>;
|
|
qcom,vdd-io-always-on;
|
|
qcom,vdd-io-lpm-sup;
|
|
qcom,vdd-io-voltage-level = <1800000 1800000>;
|
|
qcom,vdd-io-current-level = <200 325000>;
|
|
|
|
pinctrl-names = "active", "sleep";
|
|
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>;
|
|
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>;
|
|
|
|
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000 192000000
|
|
384000000>;
|
|
|
|
qcom,nonremovable;
|
|
qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&sdhc_2 {
|
|
/* device core power supply */
|
|
vdd-supply = <&pm660l_l5>;
|
|
qcom,vdd-voltage-level = <2950000 2950000>;
|
|
qcom,vdd-current-level = <15000 800000>;
|
|
|
|
/* device communication power supply */
|
|
vdd-io-supply = <&pm660l_l2>;
|
|
qcom,vdd-io-voltage-level = <1800000 2950000>;
|
|
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>;
|
|
|
|
#address-cells = <0>;
|
|
interrupt-parent = <&sdhc_2>;
|
|
interrupts = <0 1 2>;
|
|
#interrupt-cells = <1>;
|
|
interrupt-map-mask = <0xffffffff>;
|
|
interrupt-map = <0 &intc 0 0 125 0
|
|
1 &intc 0 0 221 0
|
|
2 &tlmm 54 0>;
|
|
interrupt-names = "hc_irq", "pwr_irq", "status_irq";
|
|
cd-gpios = <&tlmm 54 0x1>;
|
|
|
|
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
|
|
200000000>;
|
|
qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&soc {
|
|
qcom,msm-ssc-sensors {
|
|
compatible = "qcom,msm-ssc-sensors";
|
|
};
|
|
};
|
|
|
|
&pm660_charger {
|
|
qcom,batteryless-platform;
|
|
};
|
|
|