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