Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.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 - mac-address: See ethernet.txt in the parent directory
17 - local-mac-address: See ethernet.txt in the parent directory
18 - ieee80211-freq-limit: See ieee80211.txt
19 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data
20
21 Optional nodes:
22 - led: Properties for a connected LED
23   Optional properties:
24     - led-sources: See Documentation/devicetree/bindings/leds/common.txt
25
26 &pcie {
27         pcie0 {
28                 wifi@0,0 {
29                         compatible = "mediatek,mt76";
30                         reg = <0x0000 0 0 0 0>;
31                         ieee80211-freq-limit = <5000000 6000000>;
32                         mediatek,mtd-eeprom = <&factory 0x8000>;
33
34                         led {
35                                 led-sources = <2>;
36                         };
37                 };
38         };
39 };
40
41 MT7628 example:
42
43 wmac: wmac@10300000 {
44         compatible = "mediatek,mt7628-wmac";
45         reg = <0x10300000 0x100000>;
46
47         interrupt-parent = <&cpuintc>;
48         interrupts = <6>;
49
50         mediatek,mtd-eeprom = <&factory 0x0000>;
51 };