Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1774465ybl; Thu, 9 Jan 2020 01:11:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxzc9OsFXRt4bBZv+Difiz/HtjGSn5Vi/uWRF2d5xvwkAS4tQDcVak6VjiP6dJXjVwqNym7 X-Received: by 2002:aca:f507:: with SMTP id t7mr2431872oih.156.1578561094669; Thu, 09 Jan 2020 01:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578561094; cv=none; d=google.com; s=arc-20160816; b=c+Jz4vIh5pqcG1B0drIWAy6jx0C9nRIFyJnewUBRAQmQ2nWM1ryXX/hBDSP8rafHrf XeWb4Ofqqdfjp499DOO4aOO3lUVmy0WXo0Ix9mZtH/gyuCm/lNxgfwAF8PxBfOj/Otad aZ7XHogcqE8B+SD8Td1rmRyucQqggG61mq56hL6H3BMtn1AZhuYlx/qKsT1IZ+XjuUZ7 P1EWH4iQzG4zCnsCJn8wMa5LzfwF8LbfV/pNandTJxGWOQX5bC2lMIbh4luMuDgtlP4f Xm+ITUUsqeeB0j5U9PhH7iJoD6qy1tbUeh73LwB6MJMQ3wXEQcymxW2sQJpYr63hPXN0 Q+hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=is6x6Xsavc4DrmaKIz9Vu39SoGM1pxSmkBDyOwyjfa0=; b=igZt2s+UiLwpKYH5TE9EBRZmEMQU9H2EtIIE3Z2asNh8sm6Sx8SFXz2QrCawR+I/XK NlLS0L2FC1virk4XjUjEnU4m41W0neEdQj3jwHPWbDZtxNQNbS7OJj0KyMRN/Xf0ioW3 uIG/BcRNNYubl7bG5ddvvi0eW1eY3dMurLxrnpamRUrQ3ZHmdOuCqGOeV2CTDDEZn6J2 RHS2kQ4bOFHfIh3P6sagCE3FKFc8EWJMfJYY6swoP0Z4tJ59onoAfjpt605lnYDk9p++ EmH3L4mZQn9OcWY5tT/PLPhNCsgNZLO10Hv13/dBwRgb8IUUI2qrRQEQmZOv3AMQnuqf xESw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tljAdzLx; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si3509501otn.67.2020.01.09.01.11.23; Thu, 09 Jan 2020 01:11:34 -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=@st.com header.s=STMicroelectronics header.b=tljAdzLx; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728944AbgAIJIJ (ORCPT + 99 others); Thu, 9 Jan 2020 04:08:09 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:23198 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728782AbgAIJIJ (ORCPT ); Thu, 9 Jan 2020 04:08:09 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 009943ki002842; Thu, 9 Jan 2020 10:07:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=is6x6Xsavc4DrmaKIz9Vu39SoGM1pxSmkBDyOwyjfa0=; b=tljAdzLxNcuZNYbois3hdLfVjFYmM+a7XJR2qA4cbheXmLFBmwcvO4Tyd2PSUhPfrtUP dGkXZNfXXiMRik0oqLpd8MMkk8w2vph+qXFWX5RpZTzayz/MwKQUvtzaBUn9oB6DT/Xm fVEv5X/L+HfQinfv8d96XpjqpEwy/iu0DE07SVJbdbPA87ilcpoRnzVpAXrYHE5Ni44y DJi6tT4FeDBqo7qcL13pXZdGwr4mzsDAarBKJ4WnFg3E+4MH/wyWFxBwMPYr+oBUvd4n G3fWAxEmEzxBt2tq0Ajwg2Ez0Tt/KIWcBff3mLkHMpLMYIQAOsvVE1LNdaplPElsnl3P 1Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xakm5rk43-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jan 2020 10:07:35 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A573A10003B; Thu, 9 Jan 2020 10:07:32 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 84DD02A4D87; Thu, 9 Jan 2020 10:07:32 +0100 (CET) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 9 Jan 2020 10:07:32 +0100 Received: from SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47]) by SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47%20]) with mapi id 15.00.1473.003; Thu, 9 Jan 2020 10:07:32 +0100 From: Christophe ROULLIER To: Maxime Ripard 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 Thread-Topic: [PATCH 1/2] dt-bindings: net: dwmac: increase 'maxItems' for 'clocks', 'clock-names' properties Thread-Index: AQHVljS9qESSyYnraEKgryyZ/0O5A6eL1WwAgFaFz4A= Date: Thu, 9 Jan 2020 09:07:32 +0000 Message-ID: <009e8c0e-6a72-7e14-699e-8a897199ae16@st.com> References: <20191108103526.22254-1-christophe.roullier@st.com> <20191108103526.22254-2-christophe.roullier@st.com> <20191108104231.GE4345@gilmour.lan> <20191115075008.GY4345@gilmour.lan> In-Reply-To: <20191115075008.GY4345@gilmour.lan> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] Content-Type: text/plain; charset="Windows-1252" Content-ID: <23EE773BFEB22B40A7851F2EFDD3C50A@st.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-09_02:2020-01-08,2020-01-09 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/11/2019 08:50, Maxime Ripard wrote: > 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 fo= r programming the >> =A0=A0=A0=A0=A0=A0=A0=A0=A0 Timestamp Addend Register. If not passed t= hen the system >> =A0=A0=A0=A0=A0=A0=A0=A0=A0 clock will be used and this is fine on som= e 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 Rob, do you have any ideas, suggestions ? Thanks > Maxime=