Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CDADC433FE for ; Wed, 29 Dec 2021 15:26:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240552AbhL2P01 (ORCPT ); Wed, 29 Dec 2021 10:26:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240541AbhL2P00 (ORCPT ); Wed, 29 Dec 2021 10:26:26 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C30C06173E for ; Wed, 29 Dec 2021 07:26:26 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id a9so45024235wrr.8 for ; Wed, 29 Dec 2021 07:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=AX3qxdEvTJwh2Uh3nDiQuU6AkRUobLTqCSR6yPpfdX0=; b=rkKqI6TE6vXogFh3+4TATT0MPPUjGkfXvrN3cBDT03N6M+HlBBwtFaG3AVDZ6zdAik Kp6lOcqyMiBelqtmB3nwbsln21VbaLAz1UN1rVTtDvU5gbxCAqPF8kaHeSDwbODqFPAW 1/rnADHWkNXQZ61Z9P5tHth8vkZcPAcU3bgw+9r096Wf4gRo/7gAxQiDakqaIQnJu8iS Tw3ZlVOLicSodSTyPDR1oA55gbWMiiV0sQt9ImzB4yS7VxLIHkw5syoLLbDGeG0epbw2 ko3pGXszlwoyqjx+JJcX1ST0uAvyKLnk98cU1V/Yt/JygR2XpmsSUW7fu8G9NofsZuC7 IsuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=AX3qxdEvTJwh2Uh3nDiQuU6AkRUobLTqCSR6yPpfdX0=; b=79dgzDM3xXvE6BZp59viyYFKc9oEh99nuus6bqsjLab0SY4t2TsbzazutDmigktuFj RFHSbIsup8GM9o+pwf9ODeI6oGddMv9Lr/kKXsNlK2jSCUdcBIys6JkYMzgBPAYvPxKe 51AZdZjBYT5NHqKGbkr1B2MdP+aYrutaT7w6z+Qdq4U/AqfaHFY6CvxBXDBq9CUrBolK RE43bWQhZUIlB3AppxZjc2tiWmuZywirrp69vM51c3NF7h10m6uAqBuzhxPlEP0pMoE9 VMLGF8J1nOCE3OJSifJ3YhLz57g8d1EwNMQvV/1EzABfqoikbkGBup+HpfAcdbRBVk4R xmAA== X-Gm-Message-State: AOAM533tP04vgHXYS5EwOveiMh+RStoz57mskjo+rdfqjv+auL1ou97r +sNgE1GPUGMSUMUpK6FGaxe0FQ== X-Google-Smtp-Source: ABdhPJx+WjofkRBJ9D+G9God3XXMPiUmRWUjekgXHbOJvH9uS8ZmmqlEiPExUZmYDJAjraiUxA/nCQ== X-Received: by 2002:a5d:40d0:: with SMTP id b16mr19785073wrq.709.1640791584534; Wed, 29 Dec 2021 07:26:24 -0800 (PST) Received: from google.com ([2.31.167.18]) by smtp.gmail.com with ESMTPSA id u14sm20831018wrf.39.2021.12.29.07.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 07:26:24 -0800 (PST) Date: Wed, 29 Dec 2021 15:26:22 +0000 From: Lee Jones To: Colin Foster Cc: linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Russell King , Heiner Kallweit , Jakub Kicinski , "David S. Miller" , Florian Fainelli , Vivien Didelot , Andrew Lunn , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: Re: [RFC v5 net-next 11/13] mfd: ocelot-core: add control for the external mdio interface Message-ID: References: <20211218214954.109755-1-colin.foster@in-advantage.com> <20211218214954.109755-12-colin.foster@in-advantage.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211218214954.109755-12-colin.foster@in-advantage.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Dec 2021, Colin Foster wrote: > Utilize the mscc-miim-mdio driver as a child of the ocelot MFD. > > Signed-off-by: Colin Foster > --- > drivers/mfd/ocelot-core.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) Squash please. > diff --git a/drivers/mfd/ocelot-core.c b/drivers/mfd/ocelot-core.c > index 52aa7b824d02..c67e433f467c 100644 > --- a/drivers/mfd/ocelot-core.c > +++ b/drivers/mfd/ocelot-core.c > @@ -104,7 +104,22 @@ struct regmap *ocelot_mfd_get_regmap_from_resource(struct device *dev, > } > EXPORT_SYMBOL(ocelot_mfd_get_regmap_from_resource); > > +static const struct resource vsc7512_miim1_resources[] = { > + { > + .start = 0x710700c0, > + .end = 0x710700e3, > + .name = "gcb_miim1", > + .flags = IORESOURCE_MEM, > + }, > +}; > + > static const struct mfd_cell vsc7512_devs[] = { > + { > + .name = "ocelot-miim1", > + .of_compatible = "mscc,ocelot-miim", > + .num_resources = ARRAY_SIZE(vsc7512_miim1_resources), > + .resources = vsc7512_miim1_resources, > + }, > { > .name = "ocelot-ext-switch", > .of_compatible = "mscc,vsc7512-ext-switch", -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog