From patchwork Mon Jun 24 14:52:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ren=C3=A9_van_Dorst?= X-Patchwork-Id: 11013637 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59C641398 for ; Mon, 24 Jun 2019 14:53:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A81E287E6 for ; Mon, 24 Jun 2019 14:53:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EDB928B3B; Mon, 24 Jun 2019 14:53:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9A9FF28BF4 for ; Mon, 24 Jun 2019 14:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mfmSk6B5b73xwebokmGYjDCHDDHtDzHRIgei/OjNCF0=; b=rlWRvkVTPQ4MB2 cfIfwJRi2zNM0imTpy9P4N4MZZjCqZrHHbj3f5zDNoZGS832fq/xUovxm99nqA1PGXg89NDIi5DMh tkuJDzPESkhxlggmk+zmfhe/RmKW1vv5BX1I//DSwX5nBkRpWYslGZyE6+JTdGxnT5OPssucrlyd8 UBrTelqR2tz6SudFypsPB+ssxl21is1VpFapnlNB2tMgn1RojjpSZaIMuSajBlPr0Wnq5QedqGv8F tLXMTHZOUrU26MDlFqdR3QBdH85jAlVynBbUErz2ZPZbB9MpNXAfMpzvNLRHb9YYSTJgYmaCtivsF 5kcvTSWpDjsSQyEhzXqA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfQLY-0004dn-6p; Mon, 24 Jun 2019 14:53:28 +0000 Received: from mx.0dd.nl ([5.2.79.48]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfQLI-0004Nn-Lb for linux-mediatek@lists.infradead.org; Mon, 24 Jun 2019 14:53:14 +0000 Received: from mail.vdorst.com (mail.vdorst.com [IPv6:fd01::250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.0dd.nl (Postfix) with ESMTPS id 1EA955FA1D; Mon, 24 Jun 2019 16:53:09 +0200 (CEST) Authentication-Results: mx.0dd.nl; dkim=pass (2048-bit key; secure) header.d=vdorst.com header.i=@vdorst.com header.b="QnEMZIbC"; dkim-atps=neutral Received: from pc-rene.vdorst.com (pc-rene.vdorst.com [192.168.2.125]) by mail.vdorst.com (Postfix) with ESMTPA id D98F51CC6EFD; Mon, 24 Jun 2019 16:53:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.vdorst.com D98F51CC6EFD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdorst.com; s=default; t=1561387988; bh=bS0BvauIqjunMohu89cqlu/hO+41P+Yoze5Z2dDuxPo=; h=From:To:Cc:Subject:Date:From; b=QnEMZIbCvwUm5YDuJm/qV2WrEEa0WuIgPQB7ljb8aTVz5BgySE1Ap0P+RK7xvQAPa R7QWjwWNmmne8vGXcRqOKjMjf8dYwohg/W2s6VZjGLziHea2LdEcVJh1MOJu1fq+Ed reJCpa4DzLaV2vZPGORDidCQAc5hxNQtXCX7nsFVymtzDcPFc8xHM+wGhVU81sw6iD 9M+VYRIKr73HMgAeALVKp+UeO0EkvjmxnwPMonuF2yW0PZK6xrgKkiWe/GeWR8GGSk ofxqJqCctCBFWneMe4asnODxf22lZ6htR2yP0tSm+XXzMXn7Z69OWJZEkULRBPIUst K6qzEBj6u8mdA== From: =?utf-8?q?Ren=C3=A9_van_Dorst?= To: sean.wang@mediatek.com, f.fainelli@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, matthias.bgg@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [PATCH RFC net-next 0/5] net: dsa: MT7530: Convert to PHYLINK and add support for port 5 Date: Mon, 24 Jun 2019 16:52:46 +0200 Message-Id: <20190624145251.4849-1-opensource@vdorst.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_075313_141860_2A47E8C4 X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Ren=C3=A9_van_Dorst?= , netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, frank-w@public-files.de Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Here by I am sending my current patches for review. I want to know if I am on the right track. 1. 0001-net-dsa-mt7530-Convert-to-PHYLINK-API.patch This patch converts mt7530 to PHYLINK API. 2. 0002-dt-bindings-net-dsa-mt7530-Add-support-for-port-5.patch 3. 0003-net-dsa-mt7530-Add-support-for-port-5.patch These 2 patches adding support for port 5 of the switch. Optional: 4. 0004-dt-bindings-net-dsa-mt7530-Add-mediatek-ephy-handle-.patch 5. 0005-net-dsa-mt7530-Add-mediatek-ephy-handle-to-isolate-e.patch These 2 patches adding property "mediatek,ephy-handle". When set, it puts the external phy in isolation mode. This allows the switch PHY of port 0/4 to interface with 2nd GMAC of the SOC. The external phy, 2nd GMAC and switch port 5 shares the same MII bus. FWIW: Also working on converting the mediatek ethernet driver to PHYLINK. This need a bit more work duo to the SGMII work and support hardware which I don't have. https://github.com/vDorst/linux-1/commit/54004b807cba0dcec1653c1c290c2e5aae5127c2 René van Dorst (5): net: dsa: mt7530: Convert to PHYLINK API dt-bindings: net: dsa: mt7530: Add support for port 5 net: dsa: mt7530: Add support for port 5 dt-bindings: net: dsa: mt7530: Add mediatek,ephy-handle to isolate ext. phy net: dsa: mt7530: Add mediatek,ephy-handle to isolate external phy .../devicetree/bindings/net/dsa/mt7530.txt | 329 ++++++++++++++++ drivers/net/dsa/mt7530.c | 366 +++++++++++++++--- drivers/net/dsa/mt7530.h | 39 ++ 3 files changed, 688 insertions(+), 46 deletions(-)