xref: /freebsd/sys/contrib/device-tree/Bindings/net/wireless/mediatek,mt76.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* MediaTek mt76xx devices
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis node provides properties for configuring the MediaTek mt76xx wireless
4*c66ec88fSEmmanuel Vadotdevice. The node is expected to be specified as a child node of the PCI
5*c66ec88fSEmmanuel Vadotcontroller to which the wireless chip is connected.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotAlternatively, it can specify the wireless part of the MT7628/MT7688 or
8*c66ec88fSEmmanuel VadotMT7622 SoC. For SoC, use the following compatible strings:
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel Vadotcompatible:
11*c66ec88fSEmmanuel Vadot- "mediatek,mt7628-wmac" for MT7628/MT7688
12*c66ec88fSEmmanuel Vadot- "mediatek,mt7622-wmac" for MT7622
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadotproperties:
15*c66ec88fSEmmanuel Vadot- reg: Address and length of the register set for the device.
16*c66ec88fSEmmanuel Vadot- interrupts: Main device interrupt
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotMT7622 specific properties:
19*c66ec88fSEmmanuel Vadot- power-domains: phandle to the power domain that the WMAC is part of
20*c66ec88fSEmmanuel Vadot- mediatek,infracfg: phandle to the infrastructure bus fabric syscon node
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotOptional properties:
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot- ieee80211-freq-limit: See ieee80211.txt
25*c66ec88fSEmmanuel Vadot- mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data
26*c66ec88fSEmmanuel Vadot- big-endian: if the radio eeprom partition is written in big-endian, specify
27*c66ec88fSEmmanuel Vadot  this property
28*c66ec88fSEmmanuel Vadot- mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on
29*c66ec88fSEmmanuel Vadot  boards where the flash calibration data is generic and specific calibration
30*c66ec88fSEmmanuel Vadot  data should be pulled from the OTP ROM
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel VadotThe MAC address can as well be set with corresponding optional properties
33*c66ec88fSEmmanuel Vadotdefined in net/ethernet.txt.
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotOptional nodes:
36*c66ec88fSEmmanuel Vadot- led: Properties for a connected LED
37*c66ec88fSEmmanuel Vadot  Optional properties:
38*c66ec88fSEmmanuel Vadot    - led-sources: See Documentation/devicetree/bindings/leds/common.txt
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot&pcie {
41*c66ec88fSEmmanuel Vadot	pcie0 {
42*c66ec88fSEmmanuel Vadot		wifi@0,0 {
43*c66ec88fSEmmanuel Vadot			compatible = "mediatek,mt76";
44*c66ec88fSEmmanuel Vadot			reg = <0x0000 0 0 0 0>;
45*c66ec88fSEmmanuel Vadot			ieee80211-freq-limit = <5000000 6000000>;
46*c66ec88fSEmmanuel Vadot			mediatek,mtd-eeprom = <&factory 0x8000>;
47*c66ec88fSEmmanuel Vadot			big-endian;
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot			led {
50*c66ec88fSEmmanuel Vadot				led-sources = <2>;
51*c66ec88fSEmmanuel Vadot			};
52*c66ec88fSEmmanuel Vadot		};
53*c66ec88fSEmmanuel Vadot	};
54*c66ec88fSEmmanuel Vadot};
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel VadotMT7628 example:
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadotwmac: wmac@10300000 {
59*c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt7628-wmac";
60*c66ec88fSEmmanuel Vadot	reg = <0x10300000 0x100000>;
61*c66ec88fSEmmanuel Vadot
62*c66ec88fSEmmanuel Vadot	interrupt-parent = <&cpuintc>;
63*c66ec88fSEmmanuel Vadot	interrupts = <6>;
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot	mediatek,mtd-eeprom = <&factory 0x0000>;
66*c66ec88fSEmmanuel Vadot};
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel VadotMT7622 example:
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadotwmac: wmac@18000000 {
71*c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt7622-wmac";
72*c66ec88fSEmmanuel Vadot	reg = <0 0x18000000 0 0x100000>;
73*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
74*c66ec88fSEmmanuel Vadot
75*c66ec88fSEmmanuel Vadot	mediatek,infracfg = <&infracfg>;
76*c66ec88fSEmmanuel Vadot
77*c66ec88fSEmmanuel Vadot	power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
78*c66ec88fSEmmanuel Vadot};
79