1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
6 $id: http://devicetree.org/schemas/net/wireless/mediatek,mt76.yaml#
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
9 title: MediaTek mt76 wireless devices Generic Binding
12 - Felix Fietkau <nbd@nbd.name>
13 - Lorenzo Bianconi <lorenzo@kernel.org>
14 - Ryder Lee <ryder.lee@mediatek.com>
17 This node provides properties for configuring the MediaTek mt76xx
18 wireless device. The node is expected to be specified as a child
19 node of the PCI controller to which the wireless chip is connected.
20 Alternatively, it can specify the wireless part of the MT7628/MT7688
24 - $ref: ieee80211.yaml#
30 - mediatek,mt7628-wmac
31 - mediatek,mt7622-wmac
43 $ref: /schemas/types.yaml#/definitions/phandle
45 Phandle to the infrastructure bus fabric syscon node.
46 This property is MT7622 specific
48 ieee80211-freq-limit: true
51 $ref: /schemas/types.yaml#/definitions/phandle-array
53 Phandle to a MTD partition + offset containing EEPROM data
56 $ref: /schemas/types.yaml#/definitions/flag
58 Specify if the radio eeprom partition is written in big-endian
60 mediatek,eeprom-merge-otp:
63 Merge EEPROM data with OTP data. Can be used on boards where the flash
64 calibration data is generic and specific calibration data should be
65 pulled from the OTP ROM
69 $ref: /schemas/leds/common.yaml#
70 additionalProperties: false
77 additionalProperties: false
81 additionalProperties: false
84 $ref: /schemas/types.yaml#/definitions/string
86 Regdomain refers to a legal regulatory region. Different
87 countries define different levels of allowable transmitter
88 power, time that a channel can be occupied, and different
98 additionalProperties: false
102 additionalProperties: false
105 $ref: /schemas/types.yaml#/definitions/uint32-array
109 Pairs of first and last channel number of the selected
113 $ref: /schemas/types.yaml#/definitions/uint8-array
117 4 half-dBm per-rate power limit values
120 $ref: /schemas/types.yaml#/definitions/uint8-array
124 8 half-dBm per-rate power limit values
127 $ref: /schemas/types.yaml#/definitions/uint8-matrix
129 Sets of per-rate power limit values for 802.11n/802.11ac
130 rates for multiple channel bandwidth settings.
131 Each set starts with the number of channel bandwidth
132 settings for which the rate set applies, followed by
133 either 8 or 10 power limit values. The order of the
134 channel bandwidth settings is 20, 40, 80 and 160 MHz.
141 $ref: /schemas/types.yaml#/definitions/uint8-matrix
143 Sets of per-rate power limit values for 802.11ax rates
144 for multiple channel bandwidth or resource unit settings.
145 Each set starts with the number of channel bandwidth or
146 resource unit settings for which the rate set applies,
147 followed by 12 power limit values. The order of the
148 channel resource unit settings is RU26, RU52, RU106,
149 RU242/SU20, RU484/SU40, RU996/SU80 and RU2x996/SU160.
155 $ref: /schemas/types.yaml#/definitions/uint32-array
157 Half-dBm power delta for different numbers of antennas
163 additionalProperties: false
168 #address-cells = <3>;
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 ieee80211-freq-limit = <5000000 6000000>;
174 mediatek,mtd-eeprom = <&factory 0x8000>;
187 rates-ofdm = /bits/ 8 <23 23 23 23 23 23 23 23>;
188 rates-mcs = /bits/ 8 <1 23 23 23 23 23 23 23 23 23 23>,
189 <3 22 22 22 22 22 22 22 22 22 22>;
190 rates-ru = /bits/ 8 <3 22 22 22 22 22 22 22 22 22 22 22 22>,
191 <4 20 20 20 20 20 20 20 20 20 20 20 20>;
194 channels = <100 181>;
195 rates-ofdm = /bits/ 8 <14 14 14 14 14 14 14 14>;
196 rates-mcs = /bits/ 8 <4 14 14 14 14 14 14 14 14 14 14>;
197 txs-delta = <12 9 6>;
198 rates-ru = /bits/ 8 <7 14 14 14 14 14 14 14 14 14 14 14 14>;
208 compatible = "mediatek,mt7628-wmac";
209 reg = <0x10300000 0x100000>;
211 interrupt-parent = <&cpuintc>;
214 mediatek,mtd-eeprom = <&factory 0x0>;
218 #include <dt-bindings/interrupt-controller/arm-gic.h>
219 #include <dt-bindings/interrupt-controller/irq.h>
221 compatible = "mediatek,mt7622-wmac";
222 reg = <0x10300000 0x100000>;
223 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
225 mediatek,infracfg = <&infracfg>;
227 power-domains = <&scpsys 3>;