From patchwork Thu Mar 14 14:01:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 160334 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp15547409jad; Thu, 14 Mar 2019 07:02:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIEvVkppPkdFWHaCELNPKsAIaVmuGNJEpdjVjePydIr1rtbgHANtuv0I8kEmYq+P4QZi/K X-Received: by 2002:a62:55c7:: with SMTP id j190mr2201364pfb.226.1552572131386; Thu, 14 Mar 2019 07:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552572131; cv=none; d=google.com; s=arc-20160816; b=m1RkGHaWxY/8PPlVRDpvmIcmhgfIaImcuit7ywlV9bnV4FD4+sEfcNzp9VbG3uBRss LHpL0iI0I2mvDgrNJOBuxVorx6QemUfBGcE0CEz5twX4sOy5U6MlUTYRz5PZ9LxCCr6S bX4ExmGQ13U5MxvFlwNYFo8ReQ8j9EojRJ0B+onjP4u8lhZDrQdY0JStkGONjd2Eh8B8 DYxVTtvcYlUFraQd4ObFQq0zcWGrFw66CoWV7qQpxjvNnY4oUw1BEWvUTP6QBPevEbBh MTq12NMhOdChH49gFOhT97WGYno/aNoLNmGKcJ9iR4WRuGPphkmAAp7+rYGOMk5ZR6/q zV2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gSe5MubfDDFMdYdBkB1bnX6EGj1Asq+NDs4nOR6+nzA=; b=GePVdqgwx5/18FNb+mOTLFoI1x+E8gQfO0RmwTTHw/M5R2iP7uKlEpk3rlKpoSPVhl SwKEVgDgIAIHdzT1WFO7fcC2kRPSfkuj/+CD4gUwI9rMw27XAYtR5sXvmwxlirD89NH7 gjjobWtdcUKSHnHp/odxWl1AOq+0AnlIBqJQ+r69SqWNBG85v2LsRLADd196FbmgTUYJ 9DODe9ZqLKfBeeEyMOLk0o13TNRh/NVnC+Hh5+5XvCAcks9jm5dZnw62vMX5OVk9/RSW YZI/wCd8dK3lbYzvguVJOYruRqw9saXNDWCuELFR5WmnWPe7gLtg0TmImTe7MeD+5z7Q M6dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=I179FTGH; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si11906914pgv.28.2019.03.14.07.02.11; Thu, 14 Mar 2019 07:02:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=I179FTGH; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbfCNOCB (ORCPT + 7 others); Thu, 14 Mar 2019 10:02:01 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34988 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727712AbfCNOCA (ORCPT ); Thu, 14 Mar 2019 10:02:00 -0400 Received: by mail-wr1-f66.google.com with SMTP id w1so7801wrp.2 for ; Thu, 14 Mar 2019 07:01:59 -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=I179FTGHDGQnhvAAcTCZkjupEZ7SeeRUFFIjl6S2EabiorJXAHBhtgYjdMKF/Z5rmp +eWJv3f1JZOpJ9f45HNffGXG8X+oyHLYOj1bOtC46hQ1T/8i3FQ/EXF5xCAafTv892Zb aIGfJbXtUX4BIPDBhDKp1Io7klF4yRWMhQSevipssy8AxjuDySSX4COz4R8YUeR+mn/S sOV/YGgukfZt9pBZojGeFlsmty93cBUxtBL8JM8CXumeV8/JV/CuJ7ZoP0D/0vuOrKgc KjSXaMWM9GmqT7p0SzzciTSXWpun9T+2+mclRiLftICwDmQWna3JcVjNZV+s6zMh2I2D mSuA== 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=rdBpt9SE4rAketLz3q20zJXrHMzJBCjAQYITEmz+yp3uGcLxZ+6w63cNomZ1Abkmjt cggdue9SqRMzxKSeqYgiVwhhi5tOD3kgVUDCFntShRxcjQ8UjsH+zyIdhTOG6ZW1rWrI 2z1adZTTDQOJgb79R68tBBcwnPGzl0OwPts9VJpySvI/4JNbLLC/S8mMQPCnKVfxefoi +hG/FBXuoP3ml3z920R9CcP/3pNQGEAhslQmuSaGueHwyvzJCnK7DffZ6lB3HDbxo1HL 20vAWpdzGum4pfnAtMhJ0FT5+PMwjXjLhIOnsgboFjFPmyLCWQTbsTR0kth+tthkxh2J 7Ltg== X-Gm-Message-State: APjAAAXx/kUH08EFsCc3VD6Pt3MURnTZDzdYFphj6UaU+VIcq55weKL1 GAeLWMnGk53O8ICQ31E0SMPyV05vn8k= X-Received: by 2002:adf:ba84:: with SMTP id p4mr31965743wrg.156.1552572118395; Thu, 14 Mar 2019 07:01:58 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 07:01:57 -0700 (PDT) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman Cc: Jerome Brunet , netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH net-next 3/3] net: phy: meson-gxl: add g12a support Date: Thu, 14 Mar 2019 15:01:35 +0100 Message-Id: <20190314140135.19184-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190314140135.19184-1-jbrunet@baylibre.com> References: <20190314140135.19184-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.20.1 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 }, { } };