Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / net / wireless / mediatek,mt76.txt
1 * MediaTek mt76xx devices
2
3 This node provides properties for configuring the MediaTek mt76xx wireless
4 device. The node is expected to be specified as a child node of the PCI
5 controller to which the wireless chip is connected.
6
7 Alternatively, it can specify the wireless part of the MT7628/MT7688 SoC.
8 For SoC, use the compatible string "mediatek,mt7628-wmac" and the following
9 properties:
10
11 - reg: Address and length of the register set for the device.
12 - interrupts: Main device interrupt
13
14 Optional properties:
15
16 - ieee80211-freq-limit: See ieee80211.txt
17 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data
18
19 The MAC address can as well be set with corresponding optional properties
20 defined in net/ethernet.txt.
21
22 Optional nodes:
23 - led: Properties for a connected LED
24   Optional properties:
25     - led-sources: See Documentation/devicetree/bindings/leds/common.txt
26
27 &pcie {
28         pcie0 {
29                 wifi@0,0 {
30                         compatible = "mediatek,mt76";
31                         reg = <0x0000 0 0 0 0>;
32                         ieee80211-freq-limit = <5000000 6000000>;
33                         mediatek,mtd-eeprom = <&factory 0x8000>;
34
35                         led {
36                                 led-sources = <2>;
37                         };
38                 };
39         };
40 };
41
42 MT7628 example:
43
44 wmac: wmac@10300000 {
45         compatible = "mediatek,mt7628-wmac";
46         reg = <0x10300000 0x100000>;
47
48         interrupt-parent = <&cpuintc>;
49         interrupts = <6>;
50
51         mediatek,mtd-eeprom = <&factory 0x0000>;
52 };