xref: /linux/Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
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  - Jeff Johnson <jjohnson@kernel.org>
12
13description: |
14  Qualcomm Technologies IEEE 802.11ax PCIe devices
15
16properties:
17  compatible:
18    enum:
19      - pci17cb,1101  # QCA6390
20      - pci17cb,1103  # WCN6855
21
22  reg:
23    maxItems: 1
24
25  qcom,calibration-variant:
26    $ref: /schemas/types.yaml#/definitions/string
27    description: |
28      string to uniquely identify variant of the calibration data for designs
29      with colliding bus and device ids
30
31  qcom,ath11k-calibration-variant:
32    $ref: /schemas/types.yaml#/definitions/string
33    deprecated: true
34    description: |
35      string to uniquely identify variant of the calibration data for designs
36      with colliding bus and device ids
37
38  firmware-name:
39    maxItems: 1
40    description:
41      If present, a board or platform specific string used to lookup
42      usecase-specific firmware files for the device.
43
44  vddrfacmn-supply:
45    description: VDD_RFA_CMN supply regulator handle
46
47  vddaon-supply:
48    description: VDD_AON supply regulator handle
49
50  vddwlcx-supply:
51    description: VDD_WL_CX supply regulator handle
52
53  vddwlmx-supply:
54    description: VDD_WL_MX supply regulator handle
55
56  vddrfa0p8-supply:
57    description: VDD_RFA_0P8 supply regulator handle
58
59  vddrfa1p2-supply:
60    description: VDD_RFA_1P2 supply regulator handle
61
62  vddrfa1p7-supply:
63    description: VDD_RFA_1P7 supply regulator handle
64
65  vddrfa1p8-supply:
66    description: VDD_RFA_1P8 supply regulator handle
67
68  vddpcie0p9-supply:
69    description: VDD_PCIE_0P9 supply regulator handle
70
71  vddpcie1p8-supply:
72    description: VDD_PCIE_1P8 supply regulator handle
73
74required:
75  - compatible
76  - reg
77
78allOf:
79  - if:
80      properties:
81        compatible:
82          contains:
83            const: pci17cb,1101
84    then:
85      required:
86        - vddrfacmn-supply
87        - vddaon-supply
88        - vddwlcx-supply
89        - vddwlmx-supply
90        - vddrfa0p8-supply
91        - vddrfa1p2-supply
92        - vddrfa1p7-supply
93        - vddpcie0p9-supply
94        - vddpcie1p8-supply
95  - if:
96      properties:
97        compatible:
98          contains:
99            const: pci17cb,1103
100    then:
101      required:
102        - vddrfacmn-supply
103        - vddaon-supply
104        - vddwlcx-supply
105        - vddwlmx-supply
106        - vddrfa0p8-supply
107        - vddrfa1p2-supply
108        - vddrfa1p8-supply
109        - vddpcie0p9-supply
110        - vddpcie1p8-supply
111
112additionalProperties: false
113
114examples:
115  - |
116    pcie {
117        #address-cells = <3>;
118        #size-cells = <2>;
119
120        pcie@0 {
121            device_type = "pci";
122            reg = <0x0 0x0 0x0 0x0 0x0>;
123            #address-cells = <3>;
124            #size-cells = <2>;
125            ranges;
126
127            bus-range = <0x01 0xff>;
128
129            wifi@0 {
130                compatible = "pci17cb,1103";
131                reg = <0x10000 0x0 0x0 0x0 0x0>;
132
133                vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
134                vddaon-supply = <&vreg_pmu_aon_0p8>;
135                vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
136                vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
137                vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
138                vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
139                vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
140                vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
141                vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
142
143                qcom,calibration-variant = "LE_X13S";
144            };
145        };
146    };
147