From nobody Sun Jul 26 01:03:20 2026 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CFAA495E5 for ; Fri, 10 Jul 2026 10:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783680892; cv=none; b=emtDbVNCpd+lfs34AwYJolQhtg6YrmyUFeliUGbectBsLgq8WS/yvvpMHQUc0FujHEXtyB9rFxPzOsl8QiNj8e8DUlid5iTBvbuqE2AhplcPvxh1TAp0ciB689K5N8N9WOpY0c9Hix1TMWCgnfscflXOmAcN/FSlQ/vSNayKYoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783680892; c=relaxed/simple; bh=NWU/L9LyNdI3jkcdYcdQ0x+UBiKXh5qxqTH73c/fPpo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TxGOJHy9TVe9PLBwBqVuvBodm4ZpfAjc4Z0cP+9SF5xDgCsoSWSrJtaqcZeV1R2C5tY4YkTohHNUSlmSl6QL3H14reJANdn6/tXTseZ4r2sBWxM9FP7tvVK7IOYDOYQS43l00C/lh7zdVPrg4DPaDGQjYy1oEfK23F6yDS19ojQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FCBvAtwX; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FCBvAtwX" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-37ff8e0ad0fso1008250a91.2 for ; Fri, 10 Jul 2026 03:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783680891; x=1784285691; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9M4o3iN5nWztVryd5NG1m3lFycIITbNkOd3Ijgz0aSY=; b=FCBvAtwXMkiTTP3tThQa0+LS4rS+Wh9++a6sJwjqnZlKjw0LJ6Y7n0yopFTmRvCS3P +tlaWwaMBWWdA0UN4p5MHsrW1FF1I71YxivknNqB0bmhlS/g21D+MyQNIT5Ruae0dQY8 daCqy00Cx0bhcjpGvGRqcXuIEbA1Iblrxl24D7T/dRFZwEyEQwD626TJAo2sKbRcsREQ ldYl+siDVWiqkI9uYa3CgHxHzUAZAgEicT5OUzhwrMv9iBWq4gz9n0xspyHOYLz1BG1E cG2ik2YFsHxR+voH3Pj/L+G3N7t4CPRgWYo2L9w3siAyRCqgq1CwRSTkJj/IusRsRJcu OO7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783680891; x=1784285691; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9M4o3iN5nWztVryd5NG1m3lFycIITbNkOd3Ijgz0aSY=; b=swSj0UEJ3TAnKNoN1GxZGddIG/IzDzY+5Yfnbx+G+bkGB8Km8sLCi2Jmu8BqPFMvT2 exBZ5OGEIQBrA8SbuaNi1MTZ0y3aVMnCZ8oF01LO5uolFqIhRMTUqOZ7zO3F0eEriaTA v0UljLK64F3qp3UGZ4wO+40ZJmGai+n7K5Z1rZXfQLIj72+Hhe+QK3JrLgWwzqcQTsEG 0li6axNzR0UU6mZ/6DNNBNRLBAPI+blv7tI929bdwPu3sbVMf62+H/vhZzG4tqMtc72V tD1wxX+Fbq9j3te+vIsKt5LmSv6UA/YJcpY1+4moPJzX28KGhIAu5l1zCfHS+gJuTgPq L4FA== X-Forwarded-Encrypted: i=1; AHgh+RpQrE0dc1l9oRZHmGVPiI7YjTAI+Lemu4H27T41AQdBmeqqkQK/KLHKj8gKsMUFYRpUlGQng2p+E6K7gnQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yys78FrHLtOVhMD+buMu478W1+xd5kEjKWZVniporLU6+Te8Jqz 5ZCcoS9hzeYFoRzqGIMaqO7euEmy7uonIltPoN/yxFpqglk6JQvS8iZX X-Gm-Gg: AfdE7cmq6ICA6eNCeQax3MXkggf7piqdNuB8tdz6E2r4nNTPvARJkmGBslKfhUsD4/3 NJt37cVnaMwYhV0/aMP7pZd9mopz9vsiNWy4pJhIG5Ajxtl3FsthhwaQNK8k7hA66EemTNDN1qH IfMD0Ksp/IeQAOFyvEvtI0Wm3V0gzhFJ6UCrfTRg+2OsSd78qdFNTaQz6o8ppN0G30Awce+TGqL lY0KwQyse63U7dLu/VfWHfCO13CezGvuE+rNu0Clcn16uJt4yyQXbHkeeMtaWlEfipdjhOdOwqM cpnlqEpxJbZDyryHaaeSogvG9jTfhA77yc0410p0AqfsyqWQH4JHxBHw1dTktzTCRU2diHplqf+ jIHSVuXNC9JxqZ4JCOGVADz0tIwa9FfRW6Am5/+WfdYofU0iJz7K++4JW8O3lDdwE53KqU6vBG8 ekAjeqp0i+18bTy6G9DctE X-Received: by 2002:a05:6a20:4304:b0:3bf:e24e:3afe with SMTP id adf61e73a8af0-3c0bd206c10mr13691119637.43.1783680890615; Fri, 10 Jul 2026 03:54:50 -0700 (PDT) Received: from DESKTOP-TIT0J8O.dm.ae ([49.47.198.15]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b659c8572sm40752937c88.9.2026.07.10.03.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 03:54:50 -0700 (PDT) From: Ahmed Naseef To: netdev@vger.kernel.org Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , "Chester A. Unal" , "David S. Miller" , Andrew Lunn , AngeloGioacchino Del Regno , Conor Dooley , DENG Qingfang , Daniel Golle , Eric Dumazet , Jakub Kicinski , Krzysztof Kozlowski , Landen Chao , Matthias Brugger , Paolo Abeni , Rob Herring , Russell King , Sean Wang , Vladimir Oltean , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Ahmed Naseef Subject: [PATCH net-next 1/2] dt-bindings: net: dsa: mediatek,mt7530: add econet,en7528-switch Date: Fri, 10 Jul 2026 14:54:23 +0400 Message-Id: <68e85666b6dfedab719aaa388450eb86312eccd0.1783680864.git.naseefkm@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The EcoNet EN7528 MIPS SoC integrates an MT7530 Gigabit switch, memory-mapped in the SoC register space like the built-in switches of the MediaTek MT7988 and Airoha EN7581/AN7583 SoCs. Its four user ports are connected to integrated Gigabit PHYs and its CPU port is connected internally to the SoC Ethernet MAC. Add the econet,en7528-switch compatible, with the same constraints as the other built-in switches. Signed-off-by: Ahmed Naseef --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml= b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 815a90808901..90b3582b7619 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -100,6 +100,10 @@ properties: Built-in switch of the Airoha AN7583 SoC const: airoha,an7583-switch =20 + - description: + Built-in switch of the EcoNet EN7528 SoC + const: econet,en7528-switch + reg: maxItems: 1 =20 @@ -318,6 +322,7 @@ allOf: - mediatek,mt7988-switch - airoha,en7581-switch - airoha,an7583-switch + - econet,en7528-switch then: $ref: "#/$defs/builtin-dsa-port" properties: --=20 2.34.1 From nobody Sun Jul 26 01:03:20 2026 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBEC937881D for ; Fri, 10 Jul 2026 10:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783680904; cv=none; b=jd2wViz7NtHS9Ft3P+hIv+JO5M95nC66y4Vpj1CjO2IlwWUvDqtayz9sKYVRhK3lXdNJqDGj6KqE0jIE0+f4zPz/ccU4T4G9NVvKLSlU3nJgUkPjG0K7v1uR8BspwA4yZR6oRtMIKAwUAwGDKu4xGf1qGh/+TLt4SQzLzo4Zasc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783680904; c=relaxed/simple; bh=Jc+cyW0SAXe60JSqWOsvka8eUS3RRaYLEvEnsVaDZaU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YSN9fKT6/YoOgwwC168O/zWdP8DflNWOp9JjkJqfSCx8iotCngwmr84lJNKEUi33vIKmWrl+2ziZvAU8sSij/dJcm0VEMEcSk0qR8PXY6dOjnEvCO4AaYq/k8PMcl/bX666dG0YWvA8oOBOXQGORrqguduKjkVrzlfizCXm3vm4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=A2SHe7cY; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A2SHe7cY" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-84864b41122so424438b3a.2 for ; Fri, 10 Jul 2026 03:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783680902; x=1784285702; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=534LbVPyjYMVPj0BO46vzk6oyGda1cLHKL7+ZYYErcI=; b=A2SHe7cYRsiwO1lIeI/WbX1PADypli+s3N78ZJU1WKIey34CeB3g+xIbE7J/nXieis y6tN7rGqtzwFGpjmttLcuSmvefIongiM/oQdV8dNCuFaORUCcD/oLM+7X0S7Wk7XrxST kBUkLD73dyeerZ/P+z29GdUqBCaWUVTyNnkbsRkW7GGK1Cbni3HS5TvmKzfs2nPn+NZw 5QmqHGr5ldusnDgeHIgKWH7tbKGIVthvviffzlQRyYimlq8kSRrpmFdyFmoK49wB5V/G Fl4Q4qrj7T6EAot06midMMUJ7Yhb8leqJV81/tjzXNUlmDAZdLnz7Zy4jUskXZX1FB3P 29xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783680902; x=1784285702; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=534LbVPyjYMVPj0BO46vzk6oyGda1cLHKL7+ZYYErcI=; b=KDqGNGy2+E2s2w5WwpB15JSR1o2dBih3VjOP0vujvOzXJP3m+HT7/DBZ1KnAtBijkA CBs9djtlKVakMZtBW7I8hANvgYMBvFv7WqvjZ2Ld8wBkA6+KNJ4OY9SvSAaNCGIQZE5J +wHAl4MUIkdsq/TpFn4zK3gNqbQuPlc4oLEY1vPCXiJ05KE62oLrXY+27zoO7SGPUIAv SemxgZBJ6i4N3M4IQzC4qtfRD7ixAQB71nLMZ7yP/H7p9TDXwZPl+UW3Tkv1x7tjQABS Kakx9prHnFIVCC+B5Afzvg0NrBLNVgyBip3WJeAVm7E5DETsvgmjV1tBpoF5VxFORdzU 9U2A== X-Forwarded-Encrypted: i=1; AHgh+RrVTs/nhP4J9Ztg6GKf3X5iz3btMuIlqKp+BUqOcs2BJjY56B0pJGNbCJrLmODwN6GH60j4a6E7gevL0uQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyQ698BgfK2jL4UDauEuw9vfM/wkHhgQ1eOhClE6Ux2pLd7Fvs9 Oh2ocdD2K+nb5/iU/CJqfKjVgjRZOGx+Tu7G5eldt0qaNCtmkKGod5HB X-Gm-Gg: AfdE7clGqBOntXklQFePdjN1E3xsbPj+xSZ3BcMmsA9vo2WCU+5JdXH9FyLzwMj+hJ6 sXIiDAEc/mCc6elNH7GSOlVpgqLYhC9n42TCFBjUkElRG1bh0n/qnc/NVD2/pxdTwZe/YMvV1u8 k4gZs8Tq9rC3pFOjWLgoLTutfrwW9nTQhIwpttIjhFWTKjqOBtjNI9hc7eFNta7KbLvDKX7yFHA IuKKuu1bceetNhi5f8ozxJ317cQihI9MDXZB4sOQSLZWzjyL3MCyiN03dNgM0A40ufU9lRDZy5H ihiQNqbAZjAgqgMFYEBw4phpcUPa3dPl+LDBkUYxfIbhVRk7Sis7RJ+a+NyL4HicRyF4Z6KnKLT A1wG99bO/K0mtdaegRJrOQxpKBzkhhcSxgWnTvV8ssE+ZmD9DPCMDm/iy6AIMqI1U1Gwc5TTAMQ 251Z5bhkPToratMo4kyQ4hzv6EYI3D+X8= X-Received: by 2002:a05:6a21:6b01:b0:3bf:baed:c797 with SMTP id adf61e73a8af0-3c0bd0fa3d7mr13220654637.49.1783680901822; Fri, 10 Jul 2026 03:55:01 -0700 (PDT) Received: from DESKTOP-TIT0J8O.dm.ae ([49.47.198.15]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b659c8572sm40752937c88.9.2026.07.10.03.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 03:55:01 -0700 (PDT) From: Ahmed Naseef To: netdev@vger.kernel.org Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , "Chester A. Unal" , "David S. Miller" , Andrew Lunn , AngeloGioacchino Del Regno , Conor Dooley , DENG Qingfang , Daniel Golle , Eric Dumazet , Jakub Kicinski , Krzysztof Kozlowski , Landen Chao , Matthias Brugger , Paolo Abeni , Rob Herring , Russell King , Sean Wang , Vladimir Oltean , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Ahmed Naseef Subject: [PATCH net-next 2/2] net: dsa: mt7530: add EN7528 support Date: Fri, 10 Jul 2026 14:54:24 +0400 Message-Id: <1865eaedef97e593ba608764c7390209cae85b30.1783680864.git.naseefkm@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The EcoNet EN7528 SoC integrates an MT7530 switch (the chip revision register reads 0x7530), memory-mapped in the SoC register space and reached through the same MMIO glue used for the built-in switches of the MediaTek MT7988 and Airoha EN7581/AN7583 SoCs. Its reset sequence and its PHY indirect access registers are the same as on those switches, so add an ID_EN7528 variant bound with the "econet,en7528-switch" compatible, reusing mt7988_setup() and the indirect PHY accessors. The switch core, however, is an MT7530 and not an MT7531 derivative: it has no MT7531 CFC register, and the CPU port to trap frames to is set through the MT7530-style CPU_EN / CPU_PORT fields of the MFC register, so add it to the MT7530 handling in mt753x_conduit_state_change(). For the same reason the MT7530 mirror and force-mode register layouts already apply to it as the default of the MT753X_*() macros. The four user ports (1-4) are connected to integrated Gigabit PHYs at MDIO addresses 9-12 of the switch internal MDIO bus. The CPU port (port 6) is connected to the SoC Ethernet MAC at a fixed 1000 Mbps full duplex link, so the port capabilities cannot be shared with the MT7988 and EN7581 switches, whose CPU ports run at 10 Gbps. The LAN GPHYs advertise EEE by default, but negotiating EEE with some link partners results in an unstable link with dropped frames. Disable EEE advertisement on them at setup time, like mt7531_setup() does for the MT7531 switch PHYs. Signed-off-by: Ahmed Naseef --- drivers/net/dsa/mt7530-mmio.c | 1 + drivers/net/dsa/mt7530.c | 56 ++++++++++++++++++++++++++++++++++- drivers/net/dsa/mt7530.h | 1 + 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mt7530-mmio.c b/drivers/net/dsa/mt7530-mmio.c index 1dc8b93fb51a..1065671bcdd1 100644 --- a/drivers/net/dsa/mt7530-mmio.c +++ b/drivers/net/dsa/mt7530-mmio.c @@ -13,6 +13,7 @@ static const struct of_device_id mt7988_of_match[] =3D { { .compatible =3D "airoha,an7583-switch", .data =3D &mt753x_table[ID_AN75= 83], }, { .compatible =3D "airoha,en7581-switch", .data =3D &mt753x_table[ID_EN75= 81], }, + { .compatible =3D "econet,en7528-switch", .data =3D &mt753x_table[ID_EN75= 28], }, { .compatible =3D "mediatek,mt7988-switch", .data =3D &mt753x_table[ID_MT= 7988], }, { /* sentinel */ }, }; diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 3c2a3029b10c..2aecad77af9a 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2912,6 +2912,30 @@ static void en7581_mac_port_get_caps(struct dsa_swit= ch *ds, int port, } } =20 +static void en7528_mac_port_get_caps(struct dsa_switch *ds, int port, + struct phylink_config *config) +{ + switch (port) { + /* Ports which are connected to switch PHYs. There is no MII pinout. */ + case 1 ... 4: + __set_bit(PHY_INTERFACE_MODE_INTERNAL, + config->supported_interfaces); + + config->mac_capabilities |=3D MAC_10 | MAC_100 | MAC_1000FD; + break; + + /* Port 6 is connected to SoC's GMAC at 1000 Mbps full duplex. There + * is no MII pinout. + */ + case 6: + __set_bit(PHY_INTERFACE_MODE_INTERNAL, + config->supported_interfaces); + + config->mac_capabilities |=3D MAC_1000FD; + break; + } +} + static void mt7530_mac_config(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) @@ -3254,7 +3278,8 @@ mt753x_conduit_state_change(struct dsa_switch *ds, * forwarded to the numerically smallest CPU port whose conduit * interface is up. */ - if (priv->id !=3D ID_MT7530 && priv->id !=3D ID_MT7621) + if (priv->id !=3D ID_MT7530 && priv->id !=3D ID_MT7621 && + priv->id !=3D ID_EN7528) return; =20 mask =3D BIT(cpu_dp->index); @@ -3319,9 +3344,17 @@ static int mt753x_setup_tc(struct dsa_switch *ds, in= t port, } } =20 +/* The EN7528 LAN ports are integrated GPHYs at MDIO addresses 9..12 (swit= ch + * ports 1..4) on the switch internal MDIO bus, reachable only through the= PHY + * indirect access registers. There is no mdiodev to derive the addresses = from. + */ +#define EN7528_GPHY_BASE 9 +#define EN7528_NUM_GPHYS 4 + static int mt7988_setup(struct dsa_switch *ds) { struct mt7530_priv *priv =3D ds->priv; + int i; =20 /* Reset the switch */ reset_control_assert(priv->rstc); @@ -3342,6 +3375,17 @@ static int mt7988_setup(struct dsa_switch *ds) /* Reset the switch PHYs */ mt7530_write(priv, MT7530_SYS_CTRL, SYS_CTRL_PHY_RST); =20 + /* The EN7528 LAN GPHYs advertise EEE by default, but negotiating EEE + * with common link partners (e.g. Realtek GbE NICs) results in an + * unstable link with dropped frames. Disable EEE advertisement on + * them. + */ + if (priv->id =3D=3D ID_EN7528) + for (i =3D EN7528_GPHY_BASE; + i < EN7528_GPHY_BASE + EN7528_NUM_GPHYS; i++) + mt7531_ind_c45_phy_write(priv, i, MDIO_MMD_AN, + MDIO_AN_EEE_ADV, 0); + return mt7531_setup_common(ds); } =20 @@ -3459,6 +3503,16 @@ const struct mt753x_info mt753x_table[] =3D { .phy_write_c45 =3D mt7531_ind_c45_phy_write, .mac_port_get_caps =3D en7581_mac_port_get_caps, }, + [ID_EN7528] =3D { + .id =3D ID_EN7528, + .pcs_ops =3D &mt7530_pcs_ops, + .sw_setup =3D mt7988_setup, + .phy_read_c22 =3D mt7531_ind_c22_phy_read, + .phy_write_c22 =3D mt7531_ind_c22_phy_write, + .phy_read_c45 =3D mt7531_ind_c45_phy_read, + .phy_write_c45 =3D mt7531_ind_c45_phy_write, + .mac_port_get_caps =3D en7528_mac_port_get_caps, + }, }; EXPORT_SYMBOL_GPL(mt753x_table); =20 diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h index dd33b0df3419..5f1e841f42c0 100644 --- a/drivers/net/dsa/mt7530.h +++ b/drivers/net/dsa/mt7530.h @@ -21,6 +21,7 @@ enum mt753x_id { ID_MT7988 =3D 3, ID_EN7581 =3D 4, ID_AN7583 =3D 5, + ID_EN7528 =3D 6, }; =20 #define NUM_TRGMII_CTRL 5 --=20 2.34.1