From patchwork Fri Mar 29 14:15:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10877157 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 8FA331708 for ; Fri, 29 Mar 2019 14:15:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7919C28FB6 for ; Fri, 29 Mar 2019 14:15:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DBEB291C8; Fri, 29 Mar 2019 14:15:32 +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 BD8E928FB6 for ; Fri, 29 Mar 2019 14:15:30 +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:References:In-Reply-To: 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: List-Owner; bh=jH26sUyFVhyit98W++HSWpnEXS38LsUxo59X4CvIPXM=; b=CROskHuhrQ5PC2 JdLeNcnP+5DBXwfZ3a7C/rpWR+NbUb0D/PlFGvhobHxcYhXG1Z2YuCsobQiUwDLCNNH46w5Y/vtZg aYxKpwCjZ4AO6OTMvCgiEhUlBg5g/gU7szWmpdAHneEQd+DHfqWUUR2dSPcMoG1+bAKqCm8Mtm+ib ChTRItnYKLlbg/dZ4vzoSdMXZF8Fp/lqqkvfhKs1CPJqIqjN0knlIGcAzcooCneIv+SMgq6ZAAnmR xjbc9F4mIxCKoH+ZxeJRpQ82AM3I9/Igq/1k2A4UR8t8nBWWAkHlVO1i//vQ8zBTC49jR3qfPC3mM NSwB6Iao7d/dpb1er86Q==; 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 1h9sI6-00080I-0L; Fri, 29 Mar 2019 14:15:30 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9sI2-0007vf-4M for linux-amlogic@lists.infradead.org; Fri, 29 Mar 2019 14:15:28 +0000 Received: by mail-wr1-x443.google.com with SMTP id q1so2837955wrp.0 for ; Fri, 29 Mar 2019 07:15:25 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=gSe5MubfDDFMdYdBkB1bnX6EGj1Asq+NDs4nOR6+nzA=; b=nNCFLy71Xa6tRPJm4FKbbPkUtQBCXU0qXOFc/MaRzVDdhl1WZD5FT8H9zfyTwQ/Gx5 t6ncWGK7oFbDFULtZXI036nkABx3sCqG8z+LmDW4GGz9G4AaKFzkRIzpgkm/FQ6RSUw9 WqtD0yb8O8UDBpDgl8tuCDVcGzkC0tKIQVTo0N1YyBYAgZDaD3QyCCUov7gzDDA96pEB KQ1u4Q7YwEAoRK3/8e20NuGEGiYRkJ/7DEqnduq9Gi2JVqEPEGz9XsBVh5htTTBGx5BU 4wCqy7H7kj2AkmOWKJFmMhNdmnRLNpOKvOrlBnvYxQVZ5Z0oG2Y6bnIZhbnYE0iBKDBm zAVg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=gSe5MubfDDFMdYdBkB1bnX6EGj1Asq+NDs4nOR6+nzA=; b=q2dS9tcGvBEepycg+6bTM5I3YsyPJnMpn8eEhbeG22tIIEc8GeHK5Um9eSAHUycnXw uh8I1IPx/JigJVts4JVZ/0J88DFOas8Wh/rfJz++K/0VFdPQJLT9y9Z9Ed0mO4rL7vrM 0kQCB1cuu8F7kEc/2t+g3ytDzQZlAzfCP1Q5Jp9JYmh/DuCo1k37vmP5qXkHaH5/8rCW 1Lk5RYOePgPKYev5NR+vKpiqI+xjFLBvgWUsHWCw5l+YXYrf95Q54HQbHCr8pJW3TWgW UsiXL4ry7lEBEuVCHppgMZI0yrP7hB0K7ipgUB7gDciTb4mf/b/iJ8W/Ep5KKiD5nQcv 4IMA== X-Gm-Message-State: APjAAAWWZN69F4llgeP838euz6iAVRappGifaZztgvjAp3K0N1OZWonn O9O4Gs4K+e1K6fVm0+MsAlIkFA== X-Google-Smtp-Source: APXvYqzen2VR+W18Mc/lnJd0tpThij1hXdlUhEPX2/aN3JHhaHX5BQm2HqG0pfdCSTies/Cl6naetA== X-Received: by 2002:adf:e692:: with SMTP id r18mr33703384wrm.231.1553868924508; Fri, 29 Mar 2019 07:15:24 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 07:15:23 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman Subject: [PATCH net-next v2 3/3] net: phy: meson-gxl: add g12a support Date: Fri, 29 Mar 2019 15:15:12 +0100 Message-Id: <20190329141512.29867-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190329141512.29867-1-jbrunet@baylibre.com> References: <20190329141512.29867-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190329_071526_179464_D72AE33F X-CRM114-Status: UNSURE ( 9.69 ) 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 The g12a SoC family uses the type of internal PHY that was used on the gxl family. The quirks of gxl family, like the LPA register corruption, appear to have been resolved on this new SoC generation. Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 0eec2913c289..49cad0f4c79b 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -237,11 +237,25 @@ static struct phy_driver meson_gxl_phy[] = { .config_intr = meson_gxl_config_intr, .suspend = genphy_suspend, .resume = genphy_resume, + }, { + .phy_id = 0x01803301, + .phy_id_mask = 0xffffffff, + .name = "Meson G12A Internal PHY", + .features = PHY_BASIC_FEATURES, + .flags = PHY_IS_INTERNAL, + .soft_reset = genphy_soft_reset, + .aneg_done = genphy_aneg_done, + .read_status = genphy_read_status, + .ack_interrupt = meson_gxl_ack_interrupt, + .config_intr = meson_gxl_config_intr, + .suspend = genphy_suspend, + .resume = genphy_resume, }, }; static struct mdio_device_id __maybe_unused meson_gxl_tbl[] = { { 0x01814400, 0xfffffff0 }, + { 0x01803301, 0xffffffff }, { } };