xref: /linux/Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (c) 2023 Linaro Limited
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/net/wireless/qcom,ath11k-pci.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Qualcomm Technologies ath11k wireless devices (PCIe)
9
10maintainers:
11  - Kalle Valo <kvalo@kernel.org>
12  - Jeff Johnson <jjohnson@kernel.org>
13
14description: |
15  Qualcomm Technologies IEEE 802.11ax PCIe devices
16
17properties:
18  compatible:
19    enum:
20      - pci17cb,1101  # QCA6390
21      - pci17cb,1103  # WCN6855
22
23  reg:
24    maxItems: 1
25
26  qcom,ath11k-calibration-variant:
27    $ref: /schemas/types.yaml#/definitions/string
28    description: |
29      string to uniquely identify variant of the calibration data for designs
30      with colliding bus and device ids
31
32  vddrfacmn-supply:
33    description: VDD_RFA_CMN supply regulator handle
34
35  vddaon-supply:
36    description: VDD_AON supply regulator handle
37
38  vddwlcx-supply:
39    description: VDD_WL_CX supply regulator handle
40
41  vddwlmx-supply:
42    description: VDD_WL_MX supply regulator handle
43
44  vddrfa0p8-supply:
45    description: VDD_RFA_0P8 supply regulator handle
46
47  vddrfa1p2-supply:
48    description: VDD_RFA_1P2 supply regulator handle
49
50  vddrfa1p7-supply:
51    description: VDD_RFA_1P7 supply regulator handle
52
53  vddrfa1p8-supply:
54    description: VDD_RFA_1P8 supply regulator handle
55
56  vddpcie0p9-supply:
57    description: VDD_PCIE_0P9 supply regulator handle
58
59  vddpcie1p8-supply:
60    description: VDD_PCIE_1P8 supply regulator handle
61
62required:
63  - compatible
64  - reg
65
66allOf:
67  - if:
68      properties:
69        compatible:
70          contains:
71            const: pci17cb,1101
72    then:
73      required:
74        - vddrfacmn-supply
75        - vddaon-supply
76        - vddwlcx-supply
77        - vddwlmx-supply
78        - vddrfa0p8-supply
79        - vddrfa1p2-supply
80        - vddrfa1p7-supply
81        - vddpcie0p9-supply
82        - vddpcie1p8-supply
83  - if:
84      properties:
85        compatible:
86          contains:
87            const: pci17cb,1103
88    then:
89      required:
90        - vddrfacmn-supply
91        - vddaon-supply
92        - vddwlcx-supply
93        - vddwlmx-supply
94        - vddrfa0p8-supply
95        - vddrfa1p2-supply
96        - vddrfa1p8-supply
97        - vddpcie0p9-supply
98        - vddpcie1p8-supply
99
100additionalProperties: false
101
102examples:
103  - |
104    pcie {
105        #address-cells = <3>;
106        #size-cells = <2>;
107
108        pcie@0 {
109            device_type = "pci";
110            reg = <0x0 0x0 0x0 0x0 0x0>;
111            #address-cells = <3>;
112            #size-cells = <2>;
113            ranges;
114
115            bus-range = <0x01 0xff>;
116
117            wifi@0 {
118                compatible = "pci17cb,1103";
119                reg = <0x10000 0x0 0x0 0x0 0x0>;
120
121                vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
122                vddaon-supply = <&vreg_pmu_aon_0p8>;
123                vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
124                vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
125                vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
126                vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
127                vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
128                vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
129                vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
130
131                qcom,ath11k-calibration-variant = "LE_X13S";
132            };
133        };
134    };
135