Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4965991iob; Mon, 9 May 2022 05:58:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhWb+QnD5STjz8ehWe9dRe3FJDgdXdjOtMGDhSpElRtPwXeFQhSXc0sr8iaJIxQZbThGDJ X-Received: by 2002:a17:902:a707:b0:15b:6ea2:8ea2 with SMTP id w7-20020a170902a70700b0015b6ea28ea2mr15678695plq.134.1652101131834; Mon, 09 May 2022 05:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652101131; cv=none; d=google.com; s=arc-20160816; b=0WAH4nGuo8oN7hcAe3Ap9ESb5TsfSZaQUc2qCSbiQ4jNLgV8q3pQV596d7tBlmZq8K 59ZtjoVsGodBkXM1S0XSGHA1IRBW8QamwdThPKamrZu3TqPClsjth3lD6Qd+ekJ+BUyG 66Xc69prR2KRN5MyytKuEw27jJiNFmlax23SiktCLRWI67roOMtcFGMv9Zy+4SvDCs7j PASiYgOSiA9t6jS5bCFIurdWUrKRbbBAUBOSJD/lwxCT3gW/9/nWy1Wd9gdsaA09Xhq9 nGmCZ5Si/yR7l8yYfuDb6k8tOXysvCqdwFIYuzgYfKPNBCcXCM7uwLmO4nee9FRjYfBu c7pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c61MLx6E4ej9po2Y8V6uNppXCuZEpocl/nhObMDCMCM=; b=qO1S9PTQ5Rpn/1k4dxfSAPtkXY8geNqcAxJzegpGCGeieqNbsq7L2VjK8g9NSZDMqZ 5nwDAzTGOogu9LXLsnGn02CfMuNkDU7GKGZtINoYmz5KFtSnL2X4+qlSLQdl46MG9jOt 0ti0Vnr6Sdi4Ayonr+7vtbSRIf8v4R86MSKx3pGAtdzjP/oy7e9DFmTyVK0/CYslm1dS aiMJzy67TFAT2dL3yP3xSccMUUWNl6/QFTOb0MSGQSH9vU0VfXJyJS1PckDyh+AP5bIx jOKgQNCONBgJq4f5yTOmMxVD2BB4hhU15rDFOBp5XWZm/4KyIpjfD2XSXSiP9qeFUT9Z p7Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0AYD9grm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e4-20020a170902744400b00153e9a38290si10493824plt.264.2022.05.09.05.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 05:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=0AYD9grm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A9EA1C7649; Mon, 9 May 2022 05:56:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235026AbiEINA1 (ORCPT + 99 others); Mon, 9 May 2022 09:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235012AbiEINA0 (ORCPT ); Mon, 9 May 2022 09:00:26 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF0B41C15C6; Mon, 9 May 2022 05:56:31 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2498wA27015065; Mon, 9 May 2022 14:56:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=c61MLx6E4ej9po2Y8V6uNppXCuZEpocl/nhObMDCMCM=; b=0AYD9grmUmP+HSmPxCjW9/z/3Tq7bdpJ1dVitGXuxZkSvDLbQLD0wpM2jZU7khQiCC9Z XzlfEgFyCOFCaWZs8iLJer5bnI8q8GIN5d9BHO0WBGkZFgCiLyS4YAIJgp0pbSVGRXFQ YNLbq31rmRRZ6mv8N+HHks3sehMHzfGNfp/eRIqHh61CzM5fVRR1DU42pRroV9dko/5R NJQk5cXHRWoyDOnfeQZik4AJCaa5fiHYBMIFBzhvIm75sYhJqHOrG9DXM+w2gAfTBIzh HoAzEcf5dyLK2tlGX6Ubc22ONlFWfvDEw8Bw+mJo6Id/XYb1ZA5LsffUCpHoxMhhCjek PQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3fwg40sty6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 May 2022 14:56:05 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F2CED10002A; Mon, 9 May 2022 14:55:56 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2B1BC21FE86; Mon, 9 May 2022 14:55:56 +0200 (CEST) Received: from [10.201.21.93] (10.75.127.46) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Mon, 9 May 2022 14:55:55 +0200 Message-ID: <53f8547c-70f9-139e-68f0-21298fa06ccf@foss.st.com> Date: Mon, 9 May 2022 14:55:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 2/8] dt-bindings: clock: stm32mp1: describes clocks if "st,stm32mp1-rcc-secure" Content-Language: en-US To: Rob Herring CC: Arnd Bergmann , Krzysztof Kozlowski , SoC Team , Stephen Boyd , Philipp Zabel , linux-arm-kernel , , "moderated list:ARM/STM32 ARCHITECTURE" , "linux-kernel@vger.kernel.org" , Marek Vasut , Ahmad Fatoum , Etienne Carriere References: <20220422150952.20587-1-alexandre.torgue@foss.st.com> <20220422150952.20587-3-alexandre.torgue@foss.st.com> From: Alexandre TORGUE In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-09_03,2022-05-09_01,2022-02-23_01 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/9/22 14:36, Rob Herring wrote: > On Fri, May 6, 2022 at 11:21 AM Rob Herring wrote: >> >> On Fri, May 6, 2022 at 5:02 AM Alexandre TORGUE >> wrote: >>> >>> Hi Rob >>> >>> On 5/5/22 16:11, Rob Herring wrote: >>>> On Fri, Apr 22, 2022 at 10:10 AM Alexandre Torgue >>>> wrote: >>>>> >>>>> In case of "st,stm32mp1-rcc-secure" (stm32mp1 clock driver with RCC >>>>> security support hardened), "clocks" and "clock-names" describe oscillators >>>>> and are required. >>>>> >>>>> Signed-off-by: Alexandre Torgue >>>> >>>> This is now failing in linux-next: >>>> >>>> make[1]: *** Deleting file >>>> 'Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.example.dts' >>>> Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml: found >>>> duplicate key "clocks" with value "{}" (original value: "True") >>>> make[1]: *** [Documentation/devicetree/bindings/Makefile:26: >>>> Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.example.dts] >>>> Error 1 >>>> ./Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml:64:3: >>>> [error] duplication of key "clocks" in mapping (key-duplicates) >>>> ./Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml:69:3: >>>> [error] duplication of key "clock-names" in mapping (key-duplicates) >>>> Traceback (most recent call last): >>>> File "/usr/local/bin/dt-doc-validate", line 25, in check_doc >>>> testtree = dtschema.load(filename, line_number=line_number) >>>> File "/usr/local/lib/python3.10/dist-packages/dtschema/lib.py", line >>>> 914, in load >>>> return yaml.load(f.read()) >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/main.py", >>>> line 434, in load >>>> return constructor.get_single_data() >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 121, in get_single_data >>>> return self.construct_document(node) >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 131, in construct_document >>>> for _dummy in generator: >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 674, in construct_yaml_map >>>> value = self.construct_mapping(node) >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 445, in construct_mapping >>>> return BaseConstructor.construct_mapping(self, node, deep=deep) >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 263, in construct_mapping >>>> if self.check_mapping_key(node, key_node, mapping, key, value): >>>> File "/usr/local/lib/python3.10/dist-packages/ruamel/yaml/constructor.py", >>>> line 294, in check_mapping_key >>>> raise DuplicateKeyError(*args) >>>> ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping >>>> in "", line 49, column 3 >>>> found duplicate key "clocks" with value "{}" (original value: "True") >>>> in "", line 64, column 3 >>>> To suppress this check see: >>>> http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys >>>> During handling of the above exception, another exception occurred: >>>> Traceback (most recent call last): >>>> File "/usr/local/bin/dt-doc-validate", line 74, in >>>> ret = check_doc(f) >>>> File "/usr/local/bin/dt-doc-validate", line 30, in check_doc >>>> print(filename + ":", exc.path[-1], exc.message, file=sys.stderr) >>>> AttributeError: 'DuplicateKeyError' object has no attribute 'path' >>> >>> It seems that we have a merge issue between: >>> >>> patch "dt-bindings: rcc: Add optional external ethernet RX clock properties" >>> https://lore.kernel.org/r/20220410220514.21779-1-marex@denx.de >>> >>> and this one (dt-bindings: clock: stm32mp1: describes clocks if >>> "st,stm32mp1-rcc-secure) >>> >>> On linux-next following part remains and creates issue above: >>> >>> clocks: >>> description: >>> Specifies the external RX clock for ethernet MAC. >>> maxItems: 1 >>> >>> clock-names: >>> const: ETH_RX_CLK/ETH_REF_CLK >>> >>> I don't know why this part is remaining. In my tree, I took care to take >>> Marek patch first to avoid this kind of issue. >>> >>> Btw, how to fix that ? >> >> Looks like I applied "dt-bindings: rcc: Add optional external ethernet >> RX clock properties" too. I've reverted it in my tree. > > Now with it reverted in today's next: > > /builds/robherring/linux-dt/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.example.dtb: > rcc@50000000: 'clocks' is a required property > From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml > /builds/robherring/linux-dt/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.example.dtb: > rcc@50000000: 'clock-names' is a required property > From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml > > The example needs updating. Sure, I send an update. Alex > > Rob