.. | .. |
---|
4 | 4 | device. The node is expected to be specified as a child node of the PCI |
---|
5 | 5 | controller to which the wireless chip is connected. |
---|
6 | 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 | + |
---|
7 | 22 | Optional properties: |
---|
8 | 23 | |
---|
9 | | -- mac-address: See ethernet.txt in the parent directory |
---|
10 | | -- local-mac-address: See ethernet.txt in the parent directory |
---|
11 | 24 | - ieee80211-freq-limit: See ieee80211.txt |
---|
12 | 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 | +- mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on |
---|
| 29 | + boards where the flash calibration data is generic and specific calibration |
---|
| 30 | + data should be pulled from the OTP ROM |
---|
| 31 | + |
---|
| 32 | +The MAC address can as well be set with corresponding optional properties |
---|
| 33 | +defined in net/ethernet.txt. |
---|
13 | 34 | |
---|
14 | 35 | Optional nodes: |
---|
15 | 36 | - led: Properties for a connected LED |
---|
.. | .. |
---|
23 | 44 | reg = <0x0000 0 0 0 0>; |
---|
24 | 45 | ieee80211-freq-limit = <5000000 6000000>; |
---|
25 | 46 | mediatek,mtd-eeprom = <&factory 0x8000>; |
---|
| 47 | + big-endian; |
---|
26 | 48 | |
---|
27 | 49 | led { |
---|
28 | 50 | led-sources = <2>; |
---|
.. | .. |
---|
30 | 52 | }; |
---|
31 | 53 | }; |
---|
32 | 54 | }; |
---|
| 55 | + |
---|
| 56 | +MT7628 example: |
---|
| 57 | + |
---|
| 58 | +wmac: wmac@10300000 { |
---|
| 59 | + compatible = "mediatek,mt7628-wmac"; |
---|
| 60 | + reg = <0x10300000 0x100000>; |
---|
| 61 | + |
---|
| 62 | + interrupt-parent = <&cpuintc>; |
---|
| 63 | + interrupts = <6>; |
---|
| 64 | + |
---|
| 65 | + mediatek,mtd-eeprom = <&factory 0x0000>; |
---|
| 66 | +}; |
---|
| 67 | + |
---|
| 68 | +MT7622 example: |
---|
| 69 | + |
---|
| 70 | +wmac: wmac@18000000 { |
---|
| 71 | + compatible = "mediatek,mt7622-wmac"; |
---|
| 72 | + reg = <0 0x18000000 0 0x100000>; |
---|
| 73 | + interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>; |
---|
| 74 | + |
---|
| 75 | + mediatek,infracfg = <&infracfg>; |
---|
| 76 | + |
---|
| 77 | + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; |
---|
| 78 | +}; |
---|