|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 4 | + */ |
| 5 | + |
| 6 | +/dts-v1/; |
| 7 | +/plugin/; |
| 8 | + |
| 9 | +#include <dt-bindings/gpio/gpio.h> |
| 10 | + |
| 11 | +&pcie { |
| 12 | + iommu-map = <0x0 &apps_smmu 0x400 0x1>, |
| 13 | + <0x100 &apps_smmu 0x401 0x1>, |
| 14 | + <0x208 &apps_smmu 0x402 0x1>, |
| 15 | + <0x210 &apps_smmu 0x403 0x1>, |
| 16 | + <0x218 &apps_smmu 0x404 0x1>, |
| 17 | + <0x300 &apps_smmu 0x405 0x1>, |
| 18 | + <0x400 &apps_smmu 0x406 0x1>, |
| 19 | + <0x500 &apps_smmu 0x407 0x1>, |
| 20 | + <0x501 &apps_smmu 0x408 0x1>; |
| 21 | + |
| 22 | + status = "okay"; |
| 23 | +}; |
| 24 | + |
| 25 | +/* |
| 26 | + * With QPS615 installed, the m.2 E-key slot is occupied by the QPS615 |
| 27 | + * PCIe switch (pci1179,0623) rather than the direct WCN7850 WLAN chip. |
| 28 | + * |
| 29 | + * QPS615 downstream port layout: |
| 30 | + * pcie@1,0 (bus 3) — WCN7850 WLAN, moved here from the direct connection |
| 31 | + * pcie@2,0 (bus 4) — free downstream port |
| 32 | + * pci@3,0 (bus 5) — TC956X dual Ethernet (QPS615 GPIO-reset PHYs) |
| 33 | + */ |
| 34 | +&pcie_port0 { |
| 35 | + wifi@0 { |
| 36 | + status = "disabled"; |
| 37 | + |
| 38 | + pcie@1,0 { |
| 39 | + reg = <0x20800 0x0 0x0 0x0 0x0>; |
| 40 | + #address-cells = <3>; |
| 41 | + #size-cells = <2>; |
| 42 | + device_type = "pci"; |
| 43 | + ranges; |
| 44 | + bus-range = <0x3 0x3>; |
| 45 | + |
| 46 | + wifi@0,0 { |
| 47 | + compatible = "pci17cb,1103"; |
| 48 | + reg = <0x30000 0x0 0x0 0x0 0x0>; |
| 49 | + |
| 50 | + qcom,calibration-variant = "QC_QCS615_Ride"; |
| 51 | + |
| 52 | + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; |
| 53 | + vddaon-supply = <&vreg_pmu_aon_0p59>; |
| 54 | + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; |
| 55 | + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; |
| 56 | + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; |
| 57 | + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; |
| 58 | + vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>; |
| 59 | + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; |
| 60 | + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; |
| 61 | + }; |
| 62 | + }; |
| 63 | + |
| 64 | + pci@3,0 { |
| 65 | + reg = <0x21800 0x0 0x0 0x0 0x0>; |
| 66 | + #address-cells = <3>; |
| 67 | + #size-cells = <2>; |
| 68 | + device_type = "pci"; |
| 69 | + ranges; |
| 70 | + bus-range = <0x5 0xff>; |
| 71 | + compatible = "pci1179,0623"; |
| 72 | + |
| 73 | + qps615: pci@0,0 { |
| 74 | + reg = <0x50000 0x0 0x0 0x0 0x0>; |
| 75 | + #address-cells = <3>; |
| 76 | + #size-cells = <2>; |
| 77 | + device_type = "pci"; |
| 78 | + ranges; |
| 79 | + |
| 80 | + gpio-controller; |
| 81 | + #gpio-cells = <2>; |
| 82 | + |
| 83 | + phy-reset-gpios = <&qps615 0 GPIO_ACTIVE_LOW>; |
| 84 | + reset-deassert-us = <221000>; |
| 85 | + }; |
| 86 | + |
| 87 | + pci@0,1 { |
| 88 | + reg = <0x50100 0x0 0x0 0x0 0x0>; |
| 89 | + #address-cells = <3>; |
| 90 | + #size-cells = <2>; |
| 91 | + device_type = "pci"; |
| 92 | + ranges; |
| 93 | + |
| 94 | + phy-reset-gpios = <&qps615 1 GPIO_ACTIVE_LOW>; |
| 95 | + reset-deassert-us = <20000>; |
| 96 | + }; |
| 97 | + }; |
| 98 | + }; |
| 99 | +}; |
0 commit comments