/* Copyright (c) 2019-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 "sdxprairie-v2.dtsi" #include "sdxprairie-mtp.dtsi" &mpss_adsp_mem { reg = <0x90800000 0xf800000>; }; &soc { qmi-tmd-devices { modem { modem_v2x: modem_v2x { qcom,qmi-dev-name = "modem_v2x"; #cooling-cells = <2>; }; }; }; }; /* delete pm8150b nodes */ &thermal_zones { /delete-node/ pm8150b-wp-therm; /delete-node/ pm8150b_tz; /delete-node/ pm8150b-ibat-lvl0; /delete-node/ pm8150b-ibat-lvl1; /delete-node/ pm8150b-vbat-lvl0; /delete-node/ pm8150b-vbat-lvl1; /delete-node/ pm8150b-vbat-lvl2; /delete-node/ pm8150b-bcl-lvl0; /delete-node/ pm8150b-bcl-lvl1; /delete-node/ pm8150b-bcl-lvl2; /delete-node/ soc; /* update Tj thresholds */ mdm-core-0-step { trips { active-config0 { temperature = <95000>; hysteresis = <5000>; }; active-config1 { temperature = <100000>; hysteresis = <5000>; }; active-config2 { temperature = <105000>; hysteresis = <5000>; }; }; }; mdm-core-0-v2x-step { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 6>; thermal-governor = "step_wise"; wake-capable-sensor; trips { tj_v2x_config0: active-config0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; }; tj_v2x_config1: active-config1 { temperature = <110000>; hysteresis = <5000>; type = "passive"; }; tj_v2x_config2: active-config2 { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { modem_tj0_v2x_cdev { trip = <&tj_v2x_config0>; cooling-device = <&modem_v2x 1 1>; }; modem_tj1_v2x_cdev { trip = <&tj_v2x_config1>; cooling-device = <&modem_v2x 2 2>; }; modem_tj2_v2x_cdev { trip = <&tj_v2x_config2>; cooling-device = <&modem_v2x 3 3>; }; }; }; }; &usb { extcon = <&vbus_detect>; }; &spmi_bus { /delete-node/ qpnp,fg; /delete-node/ bcl@1d00; /delete-node/ qcom,usb-pdphy@1700; /delete-node/ qcom,qpnp-smb5; /delete-node/ adc_tm@3500; /delete-node/ vadc@3100; /delete-node/ qcom,pm8150b@2; /delete-node/ qcom,pm8150b@3; }; &qnand_1 { status = "ok"; }; &blsp1_uart2b_hs { status = "okay"; }; &vbus_detect { status = "okay"; }; &cnss_qca6390 { status = "disabled"; }; ðqos_hw { ipa-dma-rx-desc-cnt = <512>; ipa-dma-tx-desc-cnt = <512>; }; &soc { bluetooth: bt_qca6390 { compatible = "qca,qca6390"; qca,bt-reset-gpio = <&pmxprairie_gpios 6 0>; qca,bt-vdd-vl-supply = <&pmxprairie_s3>; qca,bt-vdd-vm-supply = <&pmxprairie_s2>; qca,bt-vdd-vh-supply = <&pmxprairie_s4>; qca,bt-vdd-vl-voltage-level = <1000000 1000000>; qca,bt-vdd-vm-voltage-level = <1370000 1370000>; qca,bt-vdd-vh-voltage-level = <1904000 1904000>; qca,bt-vdd-vl-current-level = <0>; qca,bt-vdd-vm-current-level = <0>; qca,bt-vdd-vh-current-level = <450000>; }; }; &soc { cnss_pcie: qcom,cnss-qca-converged{ compatible = "qcom,cnss-qca-converged"; qcom,converged-dt; qcom,wlan-rc-num = <0>; qcom,bus-type=<0>; qcom,notify-modem-status; qcom,msm-bus,name = "msm-cnss"; qcom,msm-bus,num-cases = <6>; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = /* no vote */ , /* idle: 0-18 Mbps, ddr freq: 100 MHz */ , /* low: 18-60 Mbps, ddr freq: 200 MHz*/ , /* medium: 60-240 Mbps, ddr freq: 451.2 MHz */ , /* high: 240 - 800 Mbps, ddr freq: 451.2 MHz */ , /* very high: 800 - 1400 Mbps, ddr freq: 1555.2 MHz */ ; #address-cells=<1>; #size-cells=<1>; ranges = <0xa0000000 0xa0000000 0x10000000>, <0xb0000000 0xb0000000 0x10000>; vdd-wlan-ctrl1-supply = <&vreg_conn_pa>; vdd-wlan-ctrl2-supply = <&vreg_conn_1p8>; vdd-wlan-aon-supply = <&pmxprairie_s3>; vdd-wlan-rfa1-supply = <&pmxprairie_s2>; vdd-wlan-rfa3-supply = <&pmxprairie_s4>; wlan_vregs = "vdd-wlan-ctrl1", "vdd-wlan-ctrl2"; qcom,vdd-wlan-ctrl1-info = <0 0 0 0>; qcom,vdd-wlan-ctrl2-info = <0 0 0 0>; wlan-en-gpio = <&tlmm 52 0>; pinctrl-names = "wlan_en_active", "wlan_en_sleep"; pinctrl-0 = <&cnss_wlan_en_active>; pinctrl-1 = <&cnss_wlan_en_sleep>; chip_cfg@0 { reg = <0xa0000000 0x10000000>, <0xb0000000 0x10000>; reg-names = "smmu_iova_base", "smmu_iova_ipa"; supported-ids = <0x003e>; wlan_vregs = "vdd-wlan"; qcom,vdd-wlan-info = <0 0 0 10>; qcom,smmu-s1-enable; qcom,wlan-ramdump-dynamic = <0x200000>; }; chip_cfg@1 { reg = <0xa0000000 0x10000000>, <0xb0000000 0x10000>; reg-names = "smmu_iova_base", "smmu_iova_ipa"; supported-ids = <0x1101>; wlan_vregs = "vdd-wlan-aon", "vdd-wlan-rfa1", "vdd-wlan-rfa3"; qcom,vdd-wlan-aon-info = <1000000 1000000 0 0>; qcom,vdd-wlan-rfa1-info = <1370000 1370000 0 0>; qcom,vdd-wlan-rfa3-info = <1904000 1904000 450000 0>; qcom,wlan-ramdump-dynamic = <0x400000>; mhi,max-channels = <30>; mhi,timeout = <10000>; qcom,smmu-s1-enable; mhi_channels { #address-cells = <1>; #size-cells = <0>; mhi_chan@0 { reg = <0>; label = "LOOPBACK"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@1 { reg = <1>; label = "LOOPBACK"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@4 { reg = <4>; label = "DIAG"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@5 { reg = <5>; label = "DIAG"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@20 { reg = <20>; label = "IPCR"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <1>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; mhi,auto-start; }; mhi_chan@21 { reg = <21>; label = "IPCR"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; mhi,auto-queue; mhi,auto-start; }; }; mhi_events { mhi_event@0 { mhi,num-elements = <32>; mhi,intmod = <1>; mhi,msi = <1>; mhi,priority = <1>; mhi,brstmode = <2>; mhi,data-type = <1>; }; mhi_event@1 { mhi,num-elements = <256>; mhi,intmod = <1>; mhi,msi = <2>; mhi,priority = <1>; mhi,brstmode = <2>; }; }; }; chip_cfg@2 { reg = <0xa0000000 0x10000000>, <0xb0000000 0x10000>; reg-names = "smmu_iova_base", "smmu_iova_ipa"; qcom,smmu-s1-enable; supported-ids = <0x1102>; wlan_vregs = "vdd-wlan-aon", "vdd-wlan-rfa1", "vdd-wlan-rfa3"; qcom,vdd-wlan-aon-info = <1000000 1000000 0 0>; qcom,vdd-wlan-rfa1-info = <1370000 1370000 0 0>; qcom,vdd-wlan-rfa3-info = <1904000 1904000 0 0>; qcom,wlan-ramdump-dynamic = <0x300000>; mhi,max-channels = <30>; mhi,timeout = <10000>; mhi,ee = <0x3>, <0x4>; mhi,ee-names = "SBL", "RDDM"; mhi,bhie-offset = <0x0324>; mhi_channels { mhi_chan@0 { reg = <0>; label = "LOOPBACK"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@1 { reg = <1>; label = "LOOPBACK"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@4 { reg = <4>; label = "DIAG"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@5 { reg = <5>; label = "DIAG"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; }; mhi_chan@16 { reg = <16>; label = "IPCR"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <1>; mhi,data-type = <1>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; mhi,auto-start; }; mhi_chan@17 { reg = <17>; label = "IPCR"; mhi,num-elements = <32>; mhi,event-ring = <1>; mhi,chan-dir = <2>; mhi,data-type = <0>; mhi,doorbell-mode = <2>; mhi,ee = <0x14>; mhi,auto-queue; mhi,auto-start; }; }; mhi_events { mhi_event@0 { mhi,num-elements = <32>; mhi,intmod = <1>; mhi,msi = <1>; mhi,priority = <1>; mhi,brstmode = <2>; mhi,data-type = <1>; }; mhi_event@1 { mhi,num-elements = <256>; mhi,intmod = <1>; mhi,msi = <2>; mhi,priority = <1>; mhi,brstmode = <2>; }; }; }; }; tlmm: pinctrl@f100000 { i2c_4 { i2c_4_active: i2c_4_active { mux { pins = "gpio78", "gpio79"; function = "blsp_i2c4"; }; config { pins = "gpio78", "gpio79"; drive-strength = <2>; bias-pull-up; }; }; }; }; }; &i2c_4 { status = "okay"; smi130_gyro@68 { compatible = "smi130_gyro"; reg = <0x68>; pinctrl-names = "default"; pinctrl-0 = <&sensor_int1_default>; interrupt-parent = <&tlmm>; interrupts = <84 IRQ_TYPE_EDGE_RISING>; smi130_gyro,gpio_irq = <&tlmm 84 IRQ_TYPE_EDGE_RISING>; }; smi130_acc@18 { compatible = "smi130_acc"; reg = <0x18>; pinctrl-names = "default"; pinctrl-0 = <&sensor_int2_default>; interrupt-parent = <&tlmm>; interrupts = <85 IRQ_TYPE_EDGE_RISING>; }; iam20680@69 { compatible = "inven,iam20680"; reg = <0x69>; pinctrl-names = "default"; pinctrl-0 = <&sensor_int1_default>; interrupt-parent = <&tlmm>; interrupts = <84 IRQ_TYPE_EDGE_RISING>; axis_map_x = <1>; axis_map_y = <0>; axis_map_z = <2>; negate_x = <1>; negate_y = <0>; negate_z = <0>; inven,secondary_type = "none"; inven,aux_type = "none"; inven,read_only_slave_type = "none"; }; asm330@6a { compatible = "st,asm330lhh"; reg = <0x6a>; pinctrl-names = "default"; pinctrl-0 = <&sensor_int1_default>; interrupt-parent = <&tlmm>; interrupts = <84 IRQ_TYPE_EDGE_RISING>; st,drdy-int-pin= <2>; qcom,regulator_check = <0>; /* 0:Disable 1:Enable */ qcom,asm330_hrtimer; }; };