| #include <dt-bindings/interconnect/qcom,sm8150.h> |
| |
| &tlmm { |
| cnss_pins { |
| cnss_wlan_en_active: cnss_wlan_en_active { |
| mux { |
| pins = "gpio169"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio169"; |
| drive-strength = <16>; |
| output-high; |
| bias-pull-up; |
| }; |
| }; |
| |
| cnss_wlan_en_sleep: cnss_wlan_en_sleep { |
| mux { |
| pins = "gpio169"; |
| function = "gpio"; |
| }; |
| |
| config { |
| pins = "gpio169"; |
| drive-strength = <2>; |
| output-low; |
| bias-pull-down; |
| }; |
| }; |
| }; |
| }; |
| |
| &soc { |
| /* Rome 3.3V supply */ |
| vreg_wlan: vreg_wlan { |
| compatible = "qcom,stub-regulator"; |
| regulator-name = "vreg_wlan"; |
| }; |
| }; |
| |
| &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: qcom,cnss-qca-converged { |
| compatible = "qcom,cnss-qca-converged"; |
| qcom,wlan; |
| qcom,multi-wlan-exchg; |
| qcom,wlan-rc-num = <0>; |
| qcom,bus-type=<0>; |
| qcom,notify-modem-status; |
| qcom,wlan-cbc-enabled; |
| |
| reg = <0xb0000000 0x10000>; |
| reg-names = "smmu_iova_ipa"; |
| |
| vdd-wlan-ctrl1-supply = <&vreg_conn_pa>; |
| vdd-wlan-ctrl2-supply = <&vreg_conn_1p8>; |
| vdd-wlan-supply = <&vreg_wlan>; |
| vdd-wlan-aon-supply = <&pm8150_1_s6>; |
| vdd-wlan-rfa1-supply = <&pm8150_2_s4>; |
| vdd-wlan-rfa2-supply = <&pm8150_2_s5>; |
| vdd-wlan-rfa3-supply = <&pm8150_2_l15>; |
| |
| wlan_vregs = "vdd-wlan-ctrl1", "vdd-wlan-ctrl2"; |
| qcom,vdd-wlan-ctrl1-config = <0 0 0 0 0>; |
| qcom,vdd-wlan-ctrl2-config = <0 0 0 0 0>; |
| wlan-en-gpio = <&tlmm 169 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 = <0xb0000000 0x10000>; |
| reg-names = "smmu_iova_ipa"; |
| supported-ids = <0x003e>; |
| wlan_vregs = "vdd-wlan"; |
| qcom,vdd-wlan-config = <0 0 0 10 1>; |
| qcom,wlan-ramdump-dynamic = <0x200000>; |
| |
| }; |
| |
| chip_cfg@1 { |
| supported-ids = <0x1101>; |
| |
| wlan_vregs = "vdd-wlan-aon", "vdd-wlan-rfa1", |
| "vdd-wlan-rfa2", "vdd-wlan-rfa3"; |
| qcom,vdd-wlan-aon-config = <1055000 1055000 0 0 0>; |
| qcom,vdd-wlan-rfa1-config = <1370000 1370000 0 0 0>; |
| qcom,vdd-wlan-rfa2-config = <2040000 2040000 0 0 0>; |
| qcom,vdd-wlan-rfa3-config = <1900000 1900000 450000 0 0>; |
| |
| qcom,wlan-ramdump-dynamic = <0x400000>; |
| }; |
| |
| chip_cfg@2 { |
| reg = <0xb0000000 0x10000>; |
| reg-names = "smmu_iova_ipa"; |
| |
| supported-ids = <0x1102>; |
| wlan_vregs = "vdd-wlan-aon", "vdd-wlan-rfa1", |
| "vdd-wlan-rfa2", "vdd-wlan-rfa3"; |
| qcom,vdd-wlan-aon-config = <1055000 1055000 0 0 0>; |
| qcom,vdd-wlan-rfa1-config = <1370000 1370000 0 0 0>; |
| qcom,vdd-wlan-rfa2-config = <2040000 2040000 0 0 0>; |
| qcom,vdd-wlan-rfa3-config = <1900000 1900000 450000 0 0>; |
| |
| qcom,wlan-ramdump-dynamic = <0x400000>; |
| }; |
| |
| chip_cfg@3 { |
| supported-ids = <0x1103>; |
| |
| wlan_vregs = "vdd-wlan-aon", "vdd-wlan-rfa1", |
| "vdd-wlan-rfa2", "vdd-wlan-rfa3"; |
| qcom,vdd-wlan-aon-config = <1055000 1055000 0 0 0>; |
| qcom,vdd-wlan-rfa1-config = <1370000 1370000 0 0 0>; |
| qcom,vdd-wlan-rfa2-config = <2040000 2040000 0 0 0>; |
| qcom,vdd-wlan-rfa3-config = <1900000 1900000 450000 0 0>; |
| |
| qcom,wlan-ramdump-dynamic = <0x420000>; |
| }; |
| }; |
| |
| }; |
| |
| &pcie_rc0 { |
| #address-cells = <5>; |
| #size-cells = <0>; |
| cnss_pci: cnss_pci { |
| reg = <0 0 0 0 0>; |
| qcom,iommu-group = <&cnss_pci_iommu_group>; |
| memory-region = <&cnss_wlan_mem>; |
| |
| #address-cells = <1>; |
| #size-cells = <1>; |
| |
| cnss_pci_iommu_group: cnss_pci_iommu_group { |
| qcom,iommu-dma-addr-pool = <0xa0000000 0x10000000>; |
| qcom,iommu-dma = "fastmap"; |
| qcom,iommu-pagetable = "coherent"; |
| qcom,iommu-faults = "stall-disable", "no-CFRE", "HUPCF", |
| "non-fatal"; |
| }; |
| }; |
| }; |