/* Copyright (c) 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 "sm6150-thermal-overlay.dtsi" #include "sm6150-camera-sensor-idp.dtsi" #include #include #include #include "sm6150-sde-display.dtsi" #include &qupv3_se3_i2c { #address-cells = <1>; #size-cells = <0>; status = "ok"; #include "smb1390.dtsi" #include "smb1355.dtsi" }; &pm6150l_gpios { key_vol_up { key_vol_up_default: key_vol_up_default { pins = "gpio2"; function = "normal"; input-enable; bias-pull-up; power-source = <0>; }; }; }; &soc { gpio_keys { compatible = "gpio-keys"; label = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&key_vol_up_default>; vol_up { label = "volume_up"; gpios = <&pm6150l_gpios 2 GPIO_ACTIVE_LOW>; linux,input-type = <1>; linux,code = ; linux,can-disable; debounce-interval = <15>; gpio-key,wakeup; }; }; mtp_batterydata: qcom,battery-data { qcom,batt-id-range-pct = <15>; #include "qg-batterydata-alium-3600mah.dtsi" #include "qg-batterydata-mlp356477-2800mah.dtsi" }; emac_hw: qcom,emac@20000 { compatible = "qcom,emac-dwc-eqos"; qcom,arm-smmu; reg = <0x20000 0x10000>, <0x36000 0x100>; reg-names = "emac-base", "rgmii-base"; dma-bit-mask = <32>; emac-core-version = <7>; interrupts-extended = <&pdc 0 660 4>, <&pdc 0 661 4>, <&tlmm 121 2>, <&pdc 0 651 4>, <&pdc 0 652 4>, <&pdc 0 653 4>, <&pdc 0 654 4>, <&pdc 0 655 4>, <&pdc 0 656 4>, <&pdc 0 657 4>, <&pdc 0 658 4>, <&pdc 0 659 4>, <&pdc 0 668 4>, <&pdc 0 669 4>; interrupt-names = "sbd-intr", "lpi-intr", "phy-intr", "tx-ch0-intr", "tx-ch1-intr", "tx-ch2-intr", "tx-ch3-intr", "tx-ch4-intr", "rx-ch0-intr", "rx-ch1-intr", "rx-ch2-intr", "rx-ch3-intr", "ptp_pps_irq_0","ptp_pps_irq_1"; qcom,msm-bus,name = "emac"; qcom,msm-bus,num-cases = <4>; qcom,msm-bus,num-paths = <2>; qcom,msm-bus,vectors-KBps = <98 512 0 0>, <1 781 0 0>, /* No vote */ <98 512 1250 0>, <1 781 0 40000>, /* 10Mbps vote */ <98 512 12500 0>, <1 781 0 40000>, /* 100Mbps vote */ <98 512 125000 0>, <1 781 0 40000>; /* 1000Mbps vote */ qcom,bus-vector-names = "0", "10", "100", "1000"; clocks = <&clock_gcc GCC_EMAC_AXI_CLK>, <&clock_gcc GCC_EMAC_PTP_CLK>, <&clock_gcc GCC_EMAC_RGMII_CLK>, <&clock_gcc GCC_EMAC_SLV_AHB_CLK>; clock-names = "eth_axi_clk", "eth_ptp_clk", "eth_rgmii_clk", "eth_slave_ahb_clk"; qcom,phy-reset = <&tlmm 104 GPIO_ACTIVE_HIGH>; qcom,phy-intr-redirect = <&tlmm 121 GPIO_ACTIVE_LOW>; gdsc_emac-supply = <&emac_gdsc>; pinctrl-names = "dev-emac-mdc", "dev-emac-mdio", "dev-emac-rgmii_txd0_state", "dev-emac-rgmii_txd1_state", "dev-emac-rgmii_txd2_state", "dev-emac-rgmii_txd3_state", "dev-emac-rgmii_txc_state", "dev-emac-rgmii_tx_ctl_state", "dev-emac-rgmii_rxd0_state", "dev-emac-rgmii_rxd1_state", "dev-emac-rgmii_rxd2_state", "dev-emac-rgmii_rxd3_state", "dev-emac-rgmii_rxc_state", "dev-emac-rgmii_rx_ctl_state", "dev-emac-phy_intr", "dev-emac-phy_reset_state", "dev-emac_pin_pps_0"; pinctrl-0 = <&emac_mdc>; pinctrl-1 = <&emac_mdio>; pinctrl-2 = <&emac_rgmii_txd0>; pinctrl-3 = <&emac_rgmii_txd1>; pinctrl-4 = <&emac_rgmii_txd2>; pinctrl-5 = <&emac_rgmii_txd3>; pinctrl-6 = <&emac_rgmii_txc>; pinctrl-7 = <&emac_rgmii_tx_ctl>; pinctrl-8 = <&emac_rgmii_rxd0>; pinctrl-9 = <&emac_rgmii_rxd1>; pinctrl-10 = <&emac_rgmii_rxd2>; pinctrl-11 = <&emac_rgmii_rxd3>; pinctrl-12 = <&emac_rgmii_rxc>; pinctrl-13 = <&emac_rgmii_rx_ctl>; pinctrl-14 = <&emac_phy_intr>; pinctrl-15 = <&emac_phy_reset_state>; pinctrl-16 = <&emac_pin_pps_0>; io-macro-info { io-macro-bypass-mode = <0>; io-interface = "rgmii"; }; emac_emb_smmu: emac_emb_smmu { compatible = "qcom,emac-smmu-embedded"; iommus = <&apps_smmu 0x1C0 0x0>; qcom,iova-mapping = <0x80000000 0x40000000>; }; }; }; &qupv3_se0_2uart { status = "ok"; }; &qupv3_se7_4uart { status = "ok"; }; &pm6150l_wled { qcom,string-cfg= <3>; qcom,leds-per-string = <7>; status = "ok"; }; &pm6150l_lcdb { status = "ok"; }; &ufsphy_mem { compatible = "qcom,ufs-phy-qmp-v3-660"; vdda-phy-supply = <&pm6150_l4>; /* 0.9v */ vdda-phy-always-on; vdda-pll-supply = <&pm6150_l11>; vdda-phy-max-microamp = <30000>; vdda-pll-max-microamp = <12000>; status = "ok"; }; &ufshc_mem { vdd-hba-supply = <&ufs_phy_gdsc>; vdd-hba-fixed-regulator; vcc-supply = <&pm6150l_l11>; vcc-voltage-level = <2950000 2960000>; vccq2-supply = <&pm6150_l12>; vcc-max-microamp = <600000>; vccq2-max-microamp = <600000>; qcom,vddp-ref-clk-supply = <&pm6150l_l3>; qcom,vddp-ref-clk-max-microamp = <100>; qcom,vddp-ref-clk-min-uV = <1232000>; qcom,vddp-ref-clk-max-uV = <1260000>; status = "ok"; }; &qupv3_se1_i2c { status = "okay"; himax_ts@48 { compatible = "himax,hxcommon"; reg = <0x48>; interrupt-parent = <&tlmm>; interrupts = <89 0x2008>; vdd-supply = <&pm6150_l10>; avdd-supply = <&pm6150l_l7>; pinctrl-names = "pmx_ts_active","pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_int_active &ts_reset_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&ts_release>; himax,panel-coords = <0 1080 0 2160>; himax,display-coords = <0 1080 0 2160>; himax,irq-gpio = <&tlmm 89 0x00>; himax,rst-gpio = <&tlmm 88 0x00>; report_type = <1>; }; }; &qupv3_se5_i2c { status = "ok"; qcom,clk-freq-out = <1000000>; #address-cells = <1>; #size-cells = <0>; nq@28 { compatible = "qcom,nq-nci"; reg = <0x28>; qcom,nq-irq = <&tlmm 86 0x00>; qcom,nq-ven = <&tlmm 84 0x00>; qcom,nq-firm = <&tlmm 85 0x00>; qcom,nq-clkreq = <&tlmm 50 0x00>; interrupt-parent = <&tlmm>; interrupts = <86 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>; pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; }; }; &sdhc_1 { vdd-supply = <&pm6150l_l11>; qcom,vdd-voltage-level = <2950000 2950000>; qcom,vdd-current-level = <0 570000>; vdd-io-supply = <&pm6150_l12>; qcom,vdd-io-always-on; qcom,vdd-io-lpm-sup; qcom,vdd-io-voltage-level = <1800000 1800000>; qcom,vdd-io-current-level = <0 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>; status = "ok"; }; &sdhc_2 { vdd-supply = <&pm6150l_l9>; qcom,vdd-voltage-level = <2950000 2950000>; qcom,vdd-current-level = <0 800000>; vdd-io-supply = <&pm6150l_l6>; qcom,vdd-io-voltage-level = <1800000 3100000>; qcom,vdd-io-current-level = <0 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>; cd-gpios = <&tlmm 99 1>; status = "ok"; }; &pm6150_qg { qcom,battery-data = <&mtp_batterydata>; qcom,qg-iterm-ma = <100>; qcom,hold-soc-while-full; qcom,linearize-soc; qcom,cl-feedback-on; }; &pm6150_charger { io-channels = <&pm6150_vadc ADC_USB_IN_V_16>, <&pm6150_vadc ADC_USB_IN_I>, <&pm6150_vadc ADC_CHG_TEMP>, <&pm6150_vadc ADC_DIE_TEMP>, <&pm6150_vadc ADC_AMUX_THM4_PU2>, <&pm6150_vadc ADC_SBUx>, <&pm6150_vadc ADC_VPH_PWR>; io-channel-names = "usb_in_voltage", "usb_in_current", "chg_temp", "die_temp", "conn_temp", "sbux_res", "vph_voltage"; qcom,battery-data = <&mtp_batterydata>; qcom,auto-recharge-soc = <98>; qcom,step-charging-enable; qcom,sw-jeita-enable; qcom,fcc-stepping-enable; qcom,suspend-input-on-debug-batt; qcom,sec-charger-config = <3>; qcom,thermal-mitigation = <4200000 3500000 3000000 2500000 2000000 1500000 1000000 500000>; dpdm-supply = <&qusb_phy0>; qcom,charger-temp-max = <800>; qcom,smb-temp-max = <800>; }; &smb1390 { /delete-property/ interrupts; interrupts = <0x0 0xc2 0x0 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&smb_stat_default>; status = "ok"; }; &smb1390_charger { /delete-property/ compatible; compatible = "qcom,smb1390-charger-psy"; io-channels = <&pm6150_vadc ADC_AMUX_THM3>; io-channel-names = "cp_die_temp"; status = "ok"; }; &smb1355 { /delete-property/ interrupts; interrupts = <0x0 0xc2 0x0 IRQ_TYPE_LEVEL_LOW>; status = "ok"; }; &smb1355_charger { status = "ok"; }; &dsi_sim_cmd { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_sim_vid { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_hx83112a_truly_video { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; 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,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_td4328_truly_video { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; 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,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_td4328_truly_cmd { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; 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,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_rm69298_truly_amoled_video { qcom,panel-supply-entries = <&dsi_panel_pwr_supply_labibb_amoled>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_rm69298_truly_amoled_cmd { qcom,panel-supply-entries = <&dsi_panel_pwr_supply_labibb_amoled>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &dsi_sharp_split_link_wuxga_video { qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,platform-te-gpio = <&tlmm 90 0>; qcom,platform-reset-gpio = <&tlmm 91 0>; }; &soc { qcom,rmnet-ipa { status="okay"; }; }; &ipa_hw { status="okay"; }; &pil_modem_mem { reg = <0 0x8fd00000 0 0x3100000>; };