Merge "ARM: dts: msm: Add opensource wlan device tree support for tuna-kiwi" into wlan-platform.lnx.2.0
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
27e1bf935a
16
tuna-atp-kiwi.dts
Normal file
16
tuna-atp-kiwi.dts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
/plugin/;
|
||||||
|
|
||||||
|
#include "tuna-kiwi-cnss.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Qualcomm Technologies, Inc. Tuna ATP + kiwi WLAN";
|
||||||
|
compatible = "qcom,tuna-atp", "qcom,tuna", "qcom,atp";
|
||||||
|
qcom,msm-id = <655 0x10000>, <681 0x10000>;
|
||||||
|
qcom,board-id = <33 0>;
|
||||||
|
};
|
198
tuna-kiwi-cnss.dtsi
Normal file
198
tuna-kiwi-cnss.dtsi
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/interconnect/qcom,tuna.h>
|
||||||
|
|
||||||
|
&wlan_msa_mem {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wpss_mem {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wpss_pas {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie0 {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tlmm {
|
||||||
|
cnss_pins {
|
||||||
|
cnss_wlan_en_active: cnss_wlan_en_active {
|
||||||
|
mux {
|
||||||
|
pins = "gpio35";
|
||||||
|
function = "gpio";
|
||||||
|
};
|
||||||
|
|
||||||
|
config {
|
||||||
|
pins = "gpio35";
|
||||||
|
drive-strength = <16>;
|
||||||
|
output-high;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cnss_wlan_en_sleep: cnss_wlan_en_sleep {
|
||||||
|
mux {
|
||||||
|
pins = "gpio35";
|
||||||
|
function = "gpio";
|
||||||
|
};
|
||||||
|
|
||||||
|
config {
|
||||||
|
pins = "gpio35";
|
||||||
|
drive-strength = <2>;
|
||||||
|
output-low;
|
||||||
|
bias-pull-down;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cnss_wlan_sw_ctrl: cnss_wlan_sw_ctrl {
|
||||||
|
mux {
|
||||||
|
pins = "gpio80";
|
||||||
|
function = "wcn_sw_ctrl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cnss_wlan_sw_ctrl_wl_cx: cnss_wlan_sw_ctrl_wl_cx {
|
||||||
|
mux {
|
||||||
|
pins = "gpio34";
|
||||||
|
function = "wcn_sw";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&reserved_memory {
|
||||||
|
cnss_wlan_mem: cnss_wlan_region {
|
||||||
|
compatible = "shared-dma-pool";
|
||||||
|
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
|
||||||
|
reusable;
|
||||||
|
alignment = <0x0 0x400000>;
|
||||||
|
size = <0x0 0x2000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&soc {
|
||||||
|
wlan_kiwi: qcom,cnss-kiwi@b0000000 {
|
||||||
|
compatible = "qcom,cnss-kiwi";
|
||||||
|
reg = <0xb0000000 0x10000>;
|
||||||
|
reg-names = "smmu_iova_ipa";
|
||||||
|
qcom,wlan-sw-ctrl-gpio = <&tlmm 34 0>;
|
||||||
|
|
||||||
|
supported-ids = <0x1107>;
|
||||||
|
wlan-en-gpio = <&tlmm 35 0>;
|
||||||
|
qcom,bt-en-gpio = <&pm8550vs_g_gpios 4 0>;
|
||||||
|
qcom,sw-ctrl-gpio = <&tlmm 80 0>;
|
||||||
|
/* List of GPIOs to be setup for interrupt wakeup capable */
|
||||||
|
mpm_wake_set_gpios = <80 34>;
|
||||||
|
pinctrl-names = "wlan_en_active", "wlan_en_sleep", "sw_ctrl",
|
||||||
|
"sw_ctrl_wl_cx";
|
||||||
|
pinctrl-0 = <&cnss_wlan_en_active>;
|
||||||
|
pinctrl-1 = <&cnss_wlan_en_sleep>;
|
||||||
|
pinctrl-2 = <&cnss_wlan_sw_ctrl>;
|
||||||
|
pinctrl-3 = <&cnss_wlan_sw_ctrl_wl_cx>;
|
||||||
|
qcom,wlan;
|
||||||
|
qcom,wlan-rc-num = <0>;
|
||||||
|
qcom,wlan-ramdump-dynamic = <0x780000>;
|
||||||
|
cnss-enable-self-recovery;
|
||||||
|
qcom,wlan-cbc-enabled;
|
||||||
|
use-pm-domain;
|
||||||
|
qcom,same-dt-multi-dev;
|
||||||
|
/* For AOP communication, use direct QMP instead of mailbox */
|
||||||
|
qcom,qmp = <&aoss_qmp>;
|
||||||
|
|
||||||
|
interconnects =
|
||||||
|
<&pcie_noc MASTER_PCIE_0 &pcie_noc SLAVE_ANOC_PCIE_GEM_NOC>,
|
||||||
|
<&gem_noc MASTER_ANOC_PCIE_GEM_NOC &mc_virt SLAVE_EBI1>;
|
||||||
|
interconnect-names = "pcie_to_memnoc", "memnoc_to_ddr";
|
||||||
|
|
||||||
|
qcom,icc-path-count = <2>;
|
||||||
|
qcom,bus-bw-cfg-count = <9>;
|
||||||
|
qcom,bus-bw-cfg =
|
||||||
|
/** ICC Path 1 **/
|
||||||
|
<0 0>, /* no vote */
|
||||||
|
/* idle: 0-18 Mbps snoc/anoc: 100 Mhz */
|
||||||
|
<2250 1200000>,
|
||||||
|
/* low: 18-60 Mbps snoc/anoc: 100 Mhz */
|
||||||
|
<7500 1200000>,
|
||||||
|
/* medium: 60-240 Mbps snoc/anoc: 100 Mhz */
|
||||||
|
<30000 1200000>,
|
||||||
|
/* high: 240-1200 Mbps snoc/anoc: 100 Mhz */
|
||||||
|
<100000 1200000>,
|
||||||
|
/* very high: > 1200 Mbps snoc/anoc: 403 Mhz */
|
||||||
|
<175000 3224000>,
|
||||||
|
/* ultra high: DBS mode snoc/anoc: 403 Mhz */
|
||||||
|
<312500 3224000>,
|
||||||
|
/* super high: DBS mode snoc/anoc: 533 Mhz */
|
||||||
|
<587500 4264000>,
|
||||||
|
/* low (latency critical): 18-60 Mbps snoc/anoc: 200 Mhz */
|
||||||
|
<7500 1600000>,
|
||||||
|
|
||||||
|
/** ICC Path 2 **/
|
||||||
|
<0 0>,
|
||||||
|
/* idle: 0-18 Mbps ddr: 451.2 MHz */
|
||||||
|
<2250 2188800>,
|
||||||
|
/* low: 18-60 Mbps ddr: 451.2 MHz */
|
||||||
|
<7500 2188800>,
|
||||||
|
/* medium: 60-240 Mbps ddr: 451.2 MHz */
|
||||||
|
<30000 2188800>,
|
||||||
|
/* high: 240-1200 Mbps ddr: 451.2 MHz */
|
||||||
|
<100000 2188800>,
|
||||||
|
/* very high: > 1200 Mbps ddr: 1555 MHz */
|
||||||
|
<175000 6220800>,
|
||||||
|
/* ultra high: DBS mode ddr: 2092 MHz */
|
||||||
|
<312500 8368000>,
|
||||||
|
/* super high: DBS mode ddr: 3.2 GHz */
|
||||||
|
<587500 12800000>,
|
||||||
|
/* low (latency critical): 18-60 Mbps ddr: 451.2 MHz */
|
||||||
|
<7500 2188800>;
|
||||||
|
|
||||||
|
qcom,pdc_init_table =
|
||||||
|
" {class: wlan_pdc, ss: rf, res: s3b.v, upval: 976}",
|
||||||
|
" {class: wlan_pdc, ss: rf, res: s3b.v, dwnval: 616}",
|
||||||
|
" {class: wlan_pdc, ss: rf, res: s1g.m, enable: 0}",
|
||||||
|
" {class: wlan_pdc, ss: rf, res: l18b.m, enable: 0}",
|
||||||
|
" {class: wlan_pdc, ss: rf, res: b1b.m, enable: 0}",
|
||||||
|
" {class: wlan_pdc, ss: bb, res: pdc, enable: 1}";
|
||||||
|
|
||||||
|
/* cpu mask used for wlan tx rx interrupt affinity
|
||||||
|
* <cpumask_for_rx_interrupts cpumask_for_tx_comp_interrupts>
|
||||||
|
*/
|
||||||
|
wlan-txrx-intr-cpumask = <0x3 0x30>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie0_rp {
|
||||||
|
|
||||||
|
cnss_pci0: cnss_pci0 {
|
||||||
|
reg = <0 0 0 0 0>;
|
||||||
|
qcom,iommu-group = <&cnss_pci_iommu_group0>;
|
||||||
|
memory-region =
|
||||||
|
<&cnss_wlan_mem &cnss_pci0_iommu_region_partition>;
|
||||||
|
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cnss_pci0_iommu_region_partition:
|
||||||
|
cnss_pci0_iommu_region_partition {
|
||||||
|
/* address-cells =3 size-cells=2 from sun-pcie.dtsi */
|
||||||
|
iommu-addresses = <&cnss_pci0 0x0 0x0 0x0 0x0 0x98000000>,
|
||||||
|
<&cnss_pci0 0x0 0x0 0xB0000000 0x0 0x50000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
cnss_pci_iommu_group0: cnss_pci_iommu_group0 {
|
||||||
|
qcom,iommu-msi-size = <0x1000>;
|
||||||
|
qcom,iommu-geometry = <0x98000000 0x18010000>;
|
||||||
|
qcom,iommu-dma = "fastmap";
|
||||||
|
qcom,iommu-pagetable = "coherent";
|
||||||
|
qcom,iommu-faults = "stall-disable", "HUPCF",
|
||||||
|
"non-fatal";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
16
tuna-mtp-kiwi.dts
Normal file
16
tuna-mtp-kiwi.dts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
/plugin/;
|
||||||
|
|
||||||
|
#include "tuna-kiwi-cnss.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Qualcomm Technologies, Inc. Tuna MTP + kiwi WLAN";
|
||||||
|
compatible = "qcom,tuna-mtp", "qcom,tuna", "qcom,mtp";
|
||||||
|
qcom,msm-id = <655 0x10000>, <681 0x10000>;
|
||||||
|
qcom,board-id = <8 2>;
|
||||||
|
};
|
16
tuna-rcm-kiwi.dts
Normal file
16
tuna-rcm-kiwi.dts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
/plugin/;
|
||||||
|
|
||||||
|
#include "tuna-kiwi-cnss.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Qualcomm Technologies, Inc. Tuna RCM + kiwi WLAN";
|
||||||
|
compatible = "qcom,tuna-rcm", "qcom,tuna", "qcom,rcm";
|
||||||
|
qcom,msm-id = <655 0x10000>, <681 0x10000>;
|
||||||
|
qcom,board-id = <21 1>;
|
||||||
|
};
|
Reference in New Issue
Block a user