Linux-libre 5.7.3-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 or
8 MT7622 SoC. For SoC, use the following compatible strings:
9
10 compatible:
11 - "mediatek,mt7628-wmac" for MT7628/MT7688
12 - "mediatek,mt7622-wmac" for MT7622
13
14 properties:
15 - reg: Address and length of the register set for the device.
16 - interrupts: Main device interrupt
17
18 MT7622 specific properties:
19 - power-domains: phandle to the power domain that the WMAC is part of
20 - mediatek,infracfg: phandle to the infrastructure bus fabric syscon node
21
22 Optional properties:
23
24 - ieee80211-freq-limit: See ieee80211.txt
25 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data
26 - big-endian: if the radio eeprom partition is written in big-endian, specify
27   this property
28
29 The MAC address can as well be set with corresponding optional properties
30 defined in net/ethernet.txt.
31
32 Optional nodes:
33 - led: Properties for a connected LED
34   Optional properties:
35     - led-sources: See Documentation/devicetree/bindings/leds/common.txt
36
37 &pcie {
38         pcie0 {
39                 wifi@0,0 {
40                         compatible = "mediatek,mt76";
41                         reg = <0x0000 0 0 0 0>;
42                         ieee80211-freq-limit = <5000000 6000000>;
43                         mediatek,mtd-eeprom = <&factory 0x8000>;
44                         big-endian;
45
46                         led {
47                                 led-sources = <2>;
48                         };
49                 };
50         };
51 };
52
53 MT7628 example:
54
55 wmac: wmac@10300000 {
56         compatible = "mediatek,mt7628-wmac";
57         reg = <0x10300000 0x100000>;
58
59         interrupt-parent = <&cpuintc>;
60         interrupts = <6>;
61
62         mediatek,mtd-eeprom = <&factory 0x0000>;
63 };
64
65 MT7622 example:
66
67 wmac: wmac@18000000 {
68         compatible = "mediatek,mt7622-wmac";
69         reg = <0 0x18000000 0 0x100000>;
70         interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
71
72         mediatek,infracfg = <&infracfg>;
73
74         power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
75 };