Searched +full:mt7531 +full:- +full:dsa +full:- +full:port (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/Documentation/devicetree/bindings/net/dsa/ |
H A D | mediatek,mt7530.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek MT7530 and MT7531 Ethernet Switches 10 - Arınç ÜNAL <arinc.unal@arinc9.com> 11 - Landen Chao <Landen.Chao@mediatek.com> 12 - DENG Qingfang <dqfext@gmail.com> 13 - Sean Wang <sean.wang@mediatek.com> 14 - Daniel Golle <daniel@makrotopia.org> [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 source "drivers/net/dsa/b53/Kconfig" 20 tristate "DSA mock-up Ethernet switch chip support" 24 This enables support for a fake mock-up switch chip which 25 exercises the DSA APIs. 27 source "drivers/net/dsa/hirschmann/Kconfig" 38 tristate "MediaTek MT7530 and MT7531 Ethernet switch support" 43 This enables support for the MediaTek MT7530 and MT7531 Ethernet 44 switch chips. Multi-chip module MT7530 in MT7621AT, MT7621DAT, 45 MT7621ST and MT7623AI SoCs, and built-in switch in MT7988 SoC are [all …]
|
H A D | mt7530-mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/pcs/pcs-mtk-lynxi.h> 14 #include <net/dsa.h> 30 /* MT7530 uses 31 as the pseudo port */ in mt7530_regmap_write() 31 ret = bus->write(bus, 0x1f, 0x1f, page); in mt7530_regmap_write() 35 ret = bus->write(bus, 0x1f, r, lo); in mt7530_regmap_write() 39 ret = bus->write(bus, 0x1f, 0x10, hi); in mt7530_regmap_write() 53 /* MT7530 uses 31 as the pseudo port */ in mt7530_regmap_read() 54 ret = bus->write(bus, 0x1f, 0x1f, page); in mt7530_regmap_read() 58 lo = bus->read(bus, 0x1f, r); in mt7530_regmap_read() [all …]
|
H A D | mt7530.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 #define MT7530_MAX_MTU (15 * 1024 - ETH_HLEN - ETH_FCS_LEN - MTK_HDR_LEN) 226 /* Register for port STP state control */ 239 /* Register for port control */ 246 /* Port Matrix Mode: Frames are forwarded by the PCR_MATRIX members. */ 268 /* Register for port security control */ 272 /* Register for port vlan control */ 300 /* Register for port port-and-protocol based vlan 1 control */ 306 /* Register for port MAC control register */ 372 /* Register for port debug count */ [all …]
|
H A D | mt7530.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Mediatek MT7530 DSA Switch driver 23 #include <net/dsa.h> 85 struct mii_bus *bus = priv->bus; in core_read_mmd_indirect() 89 ret = bus->write(bus, 0, MII_MMD_CTRL, devad); in core_read_mmd_indirect() 94 ret = bus->write(bus, 0, MII_MMD_DATA, prtad); in core_read_mmd_indirect() 99 ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); in core_read_mmd_indirect() 104 value = bus->read(bus, 0, MII_MMD_DATA); in core_read_mmd_indirect() 108 dev_err(&bus->dev, "failed to read mmd register\n"); in core_read_mmd_indirect() 117 struct mii_bus *bus = priv->bus; in core_write_mmd_indirect() [all …]
|