From patchwork Thu Mar 14 14:01:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10852903 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 521741669 for ; Thu, 14 Mar 2019 14:02:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 382152A4B5 for ; Thu, 14 Mar 2019 14:02:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3634B2A542; Thu, 14 Mar 2019 14:02:11 +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 BB0BA2A540 for ; Thu, 14 Mar 2019 14:02:10 +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=NamZuX+wtLM5QibJWLlJVnZFq3XUhCo+r9odPzEOxvI=; b=Puer9df53DkCCj 8vSwJZOyW9wIwYG6RyDGyDJM3I005fCXbq4otRjwSv9v9gXWSEHqnG/1Wn22159FKkwdeh1BIZX+u ASpeJXYp5fhCJd+f89fxAU0tWzDI06afLFn91dRMEo9muRG68NUSa/VHOL7m9/cu6xhSc2vvRfSWF jil5W1AHsQFAFVFVB4XAqrJmr5fPD8vm8xgmBnZv0Fy0od2CYxd4bfeosML3/cPaQVUUnwJjIV9Ua JSHxEn4eS0V8ZMUTTKHj6BrwD0TpfEEbPdgeThM/3ucjaAim7/zm9GrBHUBlBuEuAWxE2v6gHWy+o 5xLFqUz2pihYPqTjfwlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4Qvx-0000My-PS; Thu, 14 Mar 2019 14:02:09 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4Qvj-0000FM-3V for linux-amlogic@lists.infradead.org; Thu, 14 Mar 2019 14:02:07 +0000 Received: by mail-wm1-x342.google.com with SMTP id a188so2820542wmf.3 for ; Thu, 14 Mar 2019 07:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4fjwsjwlHMsEm45LUtcBnXKn7bhdbIvWwPtmw07Gq+o=; b=zBFdJD6U1S/1wQSSjtxcxoMgff9/XaRbHJpkR0cpR11MMON5HlXDtQsHQJ/XgyUAXJ 27JdlLZEA0r1GHJmhsP/C8C1lV84QhoOcQ9fTurPltKj+JXIs4crqJ38SBpAGQWLi4X9 NynLUJsNRv6BEcV+Y8aw0LepVjdqkwwJVJO32betyXJBEeNTRv/yDGDftz8cyPqU9NiB 31JtPMOOexeJKGC1QKGDTlPHLi6DVgy0AJuRX1dntLuRltCl8nQfpL2BXDnDyCerEqqf TLDBsQCJ6+wrs7UITo/jtfkxABmFZ7x5QPVC+eYC+O46e2UxZB/U8RKPbKXUKOn+eRy3 NAzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4fjwsjwlHMsEm45LUtcBnXKn7bhdbIvWwPtmw07Gq+o=; b=Weo+VTng8OiAPbub6Fdl3v1pQgct1z5jaEiC+LVdY2sEwuLk+kNtU2UJ9cS3DyuR0S BON3grgCaWgftZOsSqRDKhNhRwvvCTOJa8TnjhBjsnwIwgNQc+UYYGHvEpr8KySleq9H pWqA0M05XsjmozBGc+rNkc+chPkj28NnOtMDlzwis9hfPiszG5x3TFx+EKuPYLPUsFAF IOBHB8f9b7uPS6gxyrzM2wllmyjJ4Tsis7T/3mYxH+3pJwLjEJu1E8jKYbhGACK3so1D CvQyWG4+AmWg+j/DZJNyr0bESSNwc1+MH6xQ7L136daAZ5hMMDz9IclqSTbaUD6ie3oY GizA== X-Gm-Message-State: APjAAAX4h9VQYhDlogOliETYB8RRbblJqrwEg9iQyrPOfBPLh1OrzvjO xpIoz8M72FRA9I79J5SyfREZNQ== X-Google-Smtp-Source: APXvYqx1rU5GXR97ju2BKBGDGkyugpcPMuy47xNmPlDB4DMFiw/eR9pGvI7gbkdn5flBQND+gOW5TA== X-Received: by 2002:a1c:9ed5:: with SMTP id h204mr2795123wme.35.1552572113197; Thu, 14 Mar 2019 07:01:53 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id y7sm2661051wmi.34.2019.03.14.07.01.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 07:01:52 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman Subject: [PATCH net-next 0/3] net: phy: add Amlogic g12a support Date: Thu, 14 Mar 2019 15:01:32 +0100 Message-Id: <20190314140135.19184-1-jbrunet@baylibre.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-20190314_070155_182517_19CAF1CD X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds the necessary bits to support network on the Amlogic g12a SoC family. Only the internal PHY and related MDIO mux needed to addressed. The GMAC remains compatible with axg SoC family This series has been tested on the u200 (S905D2) with both the internal and external (Realtek) PHYs. Jerome Brunet (3): dt-bindings: net: phy: add g12a mdio mux documentation net: phy: add amlogic g12a mdio mux support net: phy: meson-gxl: add g12a support .../bindings/net/mdio-mux-meson-g12a.txt | 48 +++ drivers/net/phy/Kconfig | 10 + drivers/net/phy/Makefile | 1 + drivers/net/phy/mdio-mux-meson-g12a.c | 371 ++++++++++++++++++ drivers/net/phy/meson-gxl.c | 14 + 5 files changed, 444 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-meson-g12a.txt create mode 100644 drivers/net/phy/mdio-mux-meson-g12a.c