From patchwork Fri Mar 29 14:15:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10877151 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 BEBF414DE for ; Fri, 29 Mar 2019 14:15:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A620428EE3 for ; Fri, 29 Mar 2019 14:15:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A838291D8; Fri, 29 Mar 2019 14:15:26 +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 1702B28EE3 for ; Fri, 29 Mar 2019 14:15:26 +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=srqihfpDccxDaorYd8njMtN8qmq1F0nhBkuFdVfV/k8=; b=JtMs8nKgU3HsF8 IedyYB8R2CYSX3S5dICW034f7BlU71x6zEslmBnbSAZ66ylSnCXuYoLxFp5xL6QT+nf20rup/H43X WYqE7kk3dFUlQ679sB6d0QW5AzQLVaX3TidljHRaRPoqBPO3W0OGDQxTLRml6kTQYH72LTZiNb4a1 raelLAGzNxgHv+CgVdBwK4CcJLB+k5Lef0KNT+jKfBV7KPWLhiAFUtuYmbAafuiP1NznIyRiOh9az p+s/7xeHSutPbIJe+qnegLy6Q6uV1JTdc+uTG0XmD9Sx8CQEXFAWMryCtAbOuaMmjt1vH8MjujUUY nVeF81YwBVcy+I4SndTw==; 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 1h9sI0-0007vJ-KZ; Fri, 29 Mar 2019 14:15:24 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9sHx-0007uh-0c for linux-amlogic@lists.infradead.org; Fri, 29 Mar 2019 14:15:22 +0000 Received: by mail-wr1-x444.google.com with SMTP id r4so2794610wrq.8 for ; Fri, 29 Mar 2019 07:15:20 -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=bExmUihlojOJWJX0CUX8FKYpFpDddupLfDG529pJpzQ=; b=g/Sm8U2S9xlkqAbA1k9ap39rlQXWapDtM+NsjWba0s2K/qaa4rvrkeqGsD7TQqkXV/ KPVRT5AjP72EXtkQkHWLhQ/yWGBoJz8AS9rNlQZL3htDoPIowtVrmIsDmO3vk1/rtvGz izBlUfl2Jpegp8YukK7dFSF+7MSgj6mVts8kPEQddqBQ6OE5ycEFZLY5I0c4lJaVq+Gn R5rBQ8P/d/XZYCeJdqgsY+RMKiT/zsnhva59juQAN6HdSxp86alO126LN94IeA/yH5BQ +dMUMzSxH+mTLzaxKo6Ajx418gqq6fZTccspYuDoRn3Y5IIix/5a187VEb9cR3SLZOLI Q42A== 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=bExmUihlojOJWJX0CUX8FKYpFpDddupLfDG529pJpzQ=; b=V3u+DktehqZbeTEEGfuk6bOvPxYM77vuQzgYcqkSazO3kQULTxVRT/pmbxOCyzGfn/ y7Ke06B3TKK5EQn0aemNTOsftwVJxYEYmi10ZOzfbjXReVx0sFnmVQcHlVeSC57EpAju NnESQeqv5DlkWL2qE9hTWnWTxyvosof2dwwvRlAfya9him9fomPJQIsG8c21/h05+jXO yBDdq5/VI5hjJ1TMAN/RJPY7waoRSNIPjNGrf61i6j8XdgUvKXq/Ufc9/hDn8Vl2D6X7 5StqKUTOBwh9Z2Yf49Ic4n05Bd3IbbssQkg4EXxfuW6RsPgx1nrQ0nmzdKbbD6wcJ7YV GqgA== X-Gm-Message-State: APjAAAVW76OVCi+A7T6Zi/t6q9C1R1C4IPDyexP3b+fKI+xL3SWZsvYc /4ib0MHII+OfLGiXJBy4t75yFQ== X-Google-Smtp-Source: APXvYqxgaOW6G4ZVwbyC2eivSdpIAv2a2MY70WF0EGGyQajxt1WUL27rRuCeJBZjm/vsm9f0bdj8wQ== X-Received: by 2002:adf:dd49:: with SMTP id u9mr29632628wrm.316.1553868919236; Fri, 29 Mar 2019 07:15:19 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id 67sm2464333wmz.41.2019.03.29.07.15.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 07:15:18 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman Subject: [PATCH net-next v2 0/3] net: phy: add Amlogic g12a support Date: Fri, 29 Mar 2019 15:15:09 +0100 Message-Id: <20190329141512.29867-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-20190329_071521_197995_86CF3E41 X-CRM114-Status: UNSURE ( 9.49 ) 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 be 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. Change since v1 [0]: * drop '_' from function name unrelated to locking * fix peripheral clock disable on error * fix variable declaration reverse Xmas trees * fix Kconfig dependency on CCF (Actually needed for 'struct clk_hw', Thx Andrew !) * Minor fix in the DT exemple as reported by Rob [0] https://lkml.kernel.org/r/20190314140135.19184-1-jbrunet@baylibre.com 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 | 379 ++++++++++++++++++ drivers/net/phy/meson-gxl.c | 14 + 5 files changed, 452 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-meson-g12a.txt create mode 100644 drivers/net/phy/mdio-mux-meson-g12a.c