Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4184898ybc; Thu, 14 Nov 2019 23:51:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwjaWoMiAWmJQ3I+gAbU3E+VLyYvpt9hdHK9bPJP26q0AN1yrJ+nVzbG/JBVeI40HHmGIcX X-Received: by 2002:a17:907:20b8:: with SMTP id pw24mr11609208ejb.28.1573804319767; Thu, 14 Nov 2019 23:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573804319; cv=none; d=google.com; s=arc-20160816; b=x9LmUL5WJw+zMcWtrmktMzOXEWRWLTizPLPvejr9iDTWxBjoAEAHjohOM8CLgbbXDY VSBi17vv/PRhHs8JFdCy8YotWejg5FeAkuSXfqQhtEUHjpNYoNpHfi6TKluwD0hprEAy 93wu+dn/0X71t9DNXISPiedIYX8ZJj2YhJhR9KVa3CuWIKw0omckJrAKwz0HgoC3xO5r ckSspJC+adPKMohnVNJZxyND6hvZdNZfeO4oOmnwEzOLPLFMiFcC+humCTU/aWwrrrUi QZCsI8vvsCuJk+MwqXOT4/F/iuZ2OQLfozkfum4dLqQd3jeJw2+EB+ePvY3nU1rqzf1R j75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/1fAUx20AoaNzgWzCkFncEuza/tXPVoqJtdDvkX6DDE=; b=YjWtNaXKiCfQipZ6SifcceKbzDdw+KVRRAxZWXpQNOedtbnEfLm5t9LlUd0+voyo0U 3XRLqDfIBsNkyGmtr2rRFQvN613SauuKM482q2XrITJ8jbY2nZhKuTt1nbBaTZEXAfIn t8hNNnXRrxMyx2blMZCJ8JSBg+a0+zEeFxKeo0UpUq7JE7w5qerdSICJHnkYi5PyXjv+ rHwZDtiWPA1xhVLyPmANX5pRRUx2cuwzteBO/wWvN2PWArKaMGERWE+wd7q2LQ28lmZw ntRI5NyLzaxPvreZA8fgJFg7kRCM4G/hlKKoPgb4SVMc9qUsggDFP091uRArPXPTlv5D XQ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Oifm6v9/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs2si5378348edb.354.2019.11.14.23.51.35; Thu, 14 Nov 2019 23:51:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b="Oifm6v9/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727325AbfKOHuM (ORCPT + 99 others); Fri, 15 Nov 2019 02:50:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:50800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfKOHuM (ORCPT ); Fri, 15 Nov 2019 02:50:12 -0500 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B63B92072A; Fri, 15 Nov 2019 07:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573804211; bh=N5y9/j9jBDmNZvdMr4J2c/QD6EJfi4NYUK5ANzDGnqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oifm6v9/MIrfdTFrfE3u0TStPDjx8gWCUbH7cfP+DrK/7cEn6jOrKLR+x6nvdWHsq bD6U5rkgwVBc0onFAOv6BjEpg+rV2swpf2Oyve36luFTe7cWhG+arflCpgXBY0v8lo zCZ18z8QZlN2ddgL74/mlHnIIbciyditdaqB1hMg= Date: Fri, 15 Nov 2019 08:50:08 +0100 From: Maxime Ripard To: Christophe ROULLIER Cc: "davem@davemloft.net" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "martin.blumenstingl@googlemail.com" , "alexandru.ardelean@analog.com" , "narmstrong@baylibre.com" , "mcoquelin.stm32@gmail.com" , Alexandre TORGUE , "devicetree@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 1/2] dt-bindings: net: dwmac: increase 'maxItems' for 'clocks', 'clock-names' properties Message-ID: <20191115075008.GY4345@gilmour.lan> References: <20191108103526.22254-1-christophe.roullier@st.com> <20191108103526.22254-2-christophe.roullier@st.com> <20191108104231.GE4345@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5ZoQamfY1dF16JN0" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5ZoQamfY1dF16JN0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 08, 2019 at 01:02:14PM +0000, Christophe ROULLIER wrote: > On 11/8/19 11:42 AM, Maxime Ripard wrote: > > Hi, > > > > On Fri, Nov 08, 2019 at 11:35:25AM +0100, Christophe Roullier wrote: > >> This change is needed for some soc based on snps,dwmac, which have > >> more than 3 clocks. > >> > >> Signed-off-by: Christophe Roullier > >> --- > >> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 8 +++++++- > >> 1 file changed, 7 insertions(+), 1 deletion(-) > >> > >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/D= ocumentation/devicetree/bindings/net/snps,dwmac.yaml > >> index 4845e29411e4..376a531062c2 100644 > >> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > >> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > >> @@ -27,6 +27,7 @@ select: > >> - snps,dwmac-3.710 > >> - snps,dwmac-4.00 > >> - snps,dwmac-4.10a > >> + - snps,dwmac-4.20a > >> - snps,dwxgmac > >> - snps,dwxgmac-2.10 > >> > >> @@ -62,6 +63,7 @@ properties: > >> - snps,dwmac-3.710 > >> - snps,dwmac-4.00 > >> - snps,dwmac-4.10a > >> + - snps,dwmac-4.20a > >> - snps,dwxgmac > >> - snps,dwxgmac-2.10 > >> > >> @@ -87,7 +89,8 @@ properties: > >> > >> clocks: > >> minItems: 1 > >> - maxItems: 3 > >> + maxItems: 5 > >> + additionalItems: true > > Those additional clocks should be documented > > > > Maxime > > Hi Maxime, > > The problem it is specific to our soc, so is it possible to > > propose "optional clock" for 2 extras clocks in snps,dwmac.yaml > > and "official" description in soc yaml file (stm32-dwmac.yaml) ? > > =A0 clocks: > =A0=A0=A0 minItems: 1 > =A0=A0=A0 maxItems: 5 > =A0=A0=A0 additionalItems: true > =A0=A0=A0 items: > =A0=A0=A0=A0=A0 - description: GMAC main clock > =A0=A0=A0=A0=A0 - description: Peripheral registers interface clock > =A0=A0=A0=A0=A0 - description: > =A0=A0=A0=A0=A0=A0=A0=A0=A0 PTP reference clock. This clock is used for = programming the > =A0=A0=A0=A0=A0=A0=A0=A0=A0 Timestamp Addend Register. If not passed the= n the system > =A0=A0=A0=A0=A0=A0=A0=A0=A0 clock will be used and this is fine on some = platforms. > > +=A0=A0=A0=A0=A0 - description: optional clock > > +=A0=A0=A0=A0=A0 - description: optional clock I guess we'd really need to figure out what those clocks are doing, they are probably helpful (and used, under a different name) by others. Hopefully the questions Rob asked will clear that out Maxime --5ZoQamfY1dF16JN0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXc5YsAAKCRDj7w1vZxhR xfOIAQDuF3beQ9RfPAYD67pkf3/F/dORXIo+wvQohXSAQvcs3QD/UFc1TjzfsZGJ pYg8YtyMyILwneRXRbb0MDJ8mG1A2Q0= =DopP -----END PGP SIGNATURE----- --5ZoQamfY1dF16JN0--