[From nobody Thu Jun 25 05:55:15 2020
Received: from mail.gsat.us ([66.165.183.93])
 by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux))
 id 1hgyrx-0003WH-Fk
 for openwrt-devel@lists.openwrt.org; Fri, 28 Jun 2019 21:57:23 +0000
Received: from [192.168.1.134] (70-142-57-80.lightspeed.rcsntx.sbcglobal.net
 [70.142.57.80])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mailgse.com (Postfix) with ESMTPSA id 8A2A5FA41D9;
 Fri, 28 Jun 2019 21:57:16 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gsat.us; s=default;
 t=1561759036; bh=O/6igsGHu3CNdxxLoDWCgpHt5xXBeQPxeyTohasL2MY=;
 h=To:From:Subject:Date;
 b=QT8N1GhBoJsKZlrgP4Hu6RSx/dTu6bYF0FGWT89ttxD65SL6jABGwRWiqCfQ2cVEE
 356F30CgyCxj9PCnOR3aKndIQvBo01XjBL1xmNNVf1zEGc3nWDioT7u5YZhcbUmeOS
 /wKInxOvtDktREwEViT9eca2ooEwtG8KuWxh4vhg=
To: John Crispin &lt;blogic@openwrt.org&gt;, Sean Wang &lt;sean.wang@mediatek.com&gt;,
 Felix Fietkau &lt;nbd@nbd.name&gt;, openwrt-devel
 &lt;openwrt-devel@lists.openwrt.org&gt;, Michael Lee &lt;igvtee@gmail.com&gt;,
 linux-mediatek@lists.infradead.org
From: Daniel Santos &lt;daniel@gsat.us&gt;
Subject: mt7620/1, mt7530: Where are these MAC and MII registers documented?
Message-ID: &lt;d40eafc3-b2c6-d4b6-cfe0-9e94092bfc03@gsat.us&gt;
Date: Fri, 28 Jun 2019 16:55:40 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20190628_145721_748613_17457543 
X-CRM114-Status: UNSURE (   9.13  )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid

Hello,

I'm looking at the mt7620 Ethernet driver and I see a lot of magic
happening for which I cannot find documentation anywhere.  Can anybody
tell me where I can get the datasheets / programmer's guide that
document these registers please?

Examples:
I/O to 0x7830, 0x7a40 -- Entries in the WAPI table?  That seems strange.

_mt7620_mii_write(gsw, gsw-&gt;ephy_base + 1, 22, 0x10cf);  The mt7620
programming guide only documents 0-6, while the 802.3-2005 has
everything from 16-31 marked as &quot;vendor specific&quot;.  Also, what does port
31 do?
]