Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp951230pxb; Thu, 21 Apr 2022 14:21:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlV/lVzBQ0GeE+N6DZfipDZuzTovuVjnrOZVPJWridqdV/8p5HktjnOx0RV0Ul0GXLvqrX X-Received: by 2002:a05:6a00:2292:b0:50a:6683:44a5 with SMTP id f18-20020a056a00229200b0050a668344a5mr1598323pfe.16.1650576119596; Thu, 21 Apr 2022 14:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650576119; cv=none; d=google.com; s=arc-20160816; b=P/uONuWtzxAQs/jC/OlHrt+pVdfAGEKXynCjak5Z5vqn1VknPZCY14lLqKbnwrtMR9 YzJPduM4I9zPSOOL5zK7DIAnC5FRAh2zQPBpesineaoAHTwxhPHbUJCnx6egw97rL6Xy aUZZE+lSFBj34IHhgFc0KTIamDVhMaEIP4cMJAxu6igpXde4js8Okif80zPA4n1tTT3h f19mBr4wsuTHBsYL3XBz7ewE3ifhYZsYUqJ6xBDUm3rqE+qDMp8pIecCVsIhAN172CKQ ciP3AqH6+uclt+HklB29zjxqB0RvqvLQUBJ3uVXCNdpF9oMklbOhwuNR3vZSWrlcOP2L 5u5w== 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=0thAvQfL4y/ANwlWwuJlsB55+79afScMHrrhUTn5STY=; b=vX3Ww6RBXsflp+HICIWfUvr9r92wUssMOkSmJ9AtrHw4Oopw1H7l7qtwpKrDB5bWLk hMksdpwgoN40JcxRX7F1VLmp96Gh23gwp2zZO+jbSPawX9W9b6MCAU2U13/JLawu/sAj O7imwS1rTBz9Gw5EV091+Y6imKWzZAB3bzDFmzT/lG2mviLkkJHS4gt/YG2SBV0wFypE CxXgURbdUP0fni6QnFY0ROeGv47L6DQujqtMsTSOLrO2KEoCOmOGGvdvzmun5hPHRqfA XzLdK2vzQw39yI7RE2z51RIlpmr0M7wRh6Q7nQtdd91Sae12Bwv8jfaGFhEnEAmDC1W6 DPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZpJo+ji0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056a00081300b004fa3a8e000fsi6602446pfk.198.2022.04.21.14.21.44; Thu, 21 Apr 2022 14:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZpJo+ji0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359469AbiDTG5G (ORCPT + 99 others); Wed, 20 Apr 2022 02:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345638AbiDTG5F (ORCPT ); Wed, 20 Apr 2022 02:57:05 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10484329BD for ; Tue, 19 Apr 2022 23:54:19 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id g18so1470448ejc.10 for ; Tue, 19 Apr 2022 23:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=0thAvQfL4y/ANwlWwuJlsB55+79afScMHrrhUTn5STY=; b=ZpJo+ji05C0QUslEtIPpytAUeOvFreIXawkB2VQn1SAEQRLgSN3GOebOP4TsjpeQTW M+LDQzcFDCoyAR3R3UR4O/p8ndnPtpWVP+19TMOTUqB5CAa7q6J+7xjwBM0KgvdBmmBH STNa3IYlrdBdys0w7cE80PHZNlQe7yrO43PKdO2x1E/AI3EOa5sBx3Pn40alRV/MaUTl HrR0CM2cEAqWMO4lCH2n/rbA4+YRJbbUeA0h/vXkCFwoCfh5ECO180N+UkqIAgDvsZcw oY841/L9Ge9KCb8u5xMeVa7KCvFZoltjePMGLjAx1imogc896+G2qDJ63aWOoTrvqz9x Mtnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=0thAvQfL4y/ANwlWwuJlsB55+79afScMHrrhUTn5STY=; b=F0Xj54Lb/Oy6hRq6nwVs8SuKmehmTM23dTpp9MdU1H0gsKaimtX9hJCkcJD30hWkKy VJjas2EIuPwwEX04qI3yE5EVL1hCFtxIOMemUJ5W+f1UE9WH5vRkwbkLyL1oLp2ni/V1 W3wNiII/la65D980KE7vnGhQ9oinTzoZYQTZQFSFyZrDaPgmHsclAqSjd2WGgYTL3Nim nChkM4uYaz2l0mmiFM5jXuSG97faNoKbqWhx9ge8w5i544S28qbq0nSNQFrLbogLqR1b aBZgeYikmmQbtVRLeUs3B8ChvupdsN/8Q3Br7bIoozXDBcF9caV6qS20+O3pY3WnUjEO tr9w== X-Gm-Message-State: AOAM5301BMC0Q+Qfh84Eq+RNRzSM69KMEnFoHQf+/f8ajFQ6/ttDwIJ1 CPR4oGnlaie23up6CwnmWbi6xg== X-Received: by 2002:a17:907:1c0e:b0:6ef:f4b9:9a2c with SMTP id nc14-20020a1709071c0e00b006eff4b99a2cmr2925156ejc.309.1650437657219; Tue, 19 Apr 2022 23:54:17 -0700 (PDT) Received: from [192.168.0.222] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id q2-20020a056402032200b00423d4516387sm6040085edw.75.2022.04.19.23.54.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 23:54:16 -0700 (PDT) Message-ID: Date: Wed, 20 Apr 2022 08:54:15 +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 3/3] dt-bindings: arm: mediatek: infracfg: Convert to DT schema Content-Language: en-US To: Yassine Oudjana , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Sam Shih , Stephen Boyd , Ryder Lee , Yassine Oudjana , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220419180938.19397-1-y.oudjana@protonmail.com> <20220419180938.19397-4-y.oudjana@protonmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220419180938.19397-4-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 19/04/2022 20:09, Yassine Oudjana wrote: > From: Yassine Oudjana > > Convert infracfg bindings to DT schema format. Not all drivers > currently implement resets, so #reset-cells is made a required > property only for those that do. Using power-controller in the > example node name makes #power-domain-cells required causing > a dt_binding_check error. To solve this, the node is renamed to > syscon@10001000. > > Signed-off-by: Yassine Oudjana > --- > .../arm/mediatek/mediatek,infracfg.txt | 42 ---------- > .../arm/mediatek/mediatek,infracfg.yaml | 79 +++++++++++++++++++ > 2 files changed, 79 insertions(+), 42 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt > deleted file mode 100644 > index f66bd720571d..000000000000 > --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt > +++ /dev/null > @@ -1,42 +0,0 @@ > -Mediatek infracfg controller > -============================ > - > -The Mediatek infracfg controller provides various clocks and reset > -outputs to the system. > - > -Required Properties: > - > -- compatible: Should be one of: > - - "mediatek,mt2701-infracfg", "syscon" > - - "mediatek,mt2712-infracfg", "syscon" > - - "mediatek,mt6765-infracfg", "syscon" > - - "mediatek,mt6779-infracfg_ao", "syscon" > - - "mediatek,mt6797-infracfg", "syscon" > - - "mediatek,mt7622-infracfg", "syscon" > - - "mediatek,mt7623-infracfg", "mediatek,mt2701-infracfg", "syscon" > - - "mediatek,mt7629-infracfg", "syscon" > - - "mediatek,mt7986-infracfg", "syscon" > - - "mediatek,mt8135-infracfg", "syscon" > - - "mediatek,mt8167-infracfg", "syscon" > - - "mediatek,mt8173-infracfg", "syscon" > - - "mediatek,mt8183-infracfg", "syscon" > - - "mediatek,mt8516-infracfg", "syscon" > -- #clock-cells: Must be 1 > -- #reset-cells: Must be 1 > - > -The infracfg controller uses the common clk binding from > -Documentation/devicetree/bindings/clock/clock-bindings.txt > -The available clocks are defined in dt-bindings/clock/mt*-clk.h. > -Also it uses the common reset controller binding from > -Documentation/devicetree/bindings/reset/reset.txt. > -The available reset outputs are defined in > -dt-bindings/reset/mt*-resets.h > - > -Example: > - > -infracfg: power-controller@10001000 { > - compatible = "mediatek,mt8173-infracfg", "syscon"; > - reg = <0 0x10001000 0 0x1000>; > - #clock-cells = <1>; > - #reset-cells = <1>; > -}; > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml > new file mode 100644 > index 000000000000..4f43fe9f103e > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml > @@ -0,0 +1,79 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,infracfg.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: MediaTek Infrastructure System Configuration Controller > + > +maintainers: > + - Matthias Brugger > + > +description: > + The Mediatek infracfg controller provides various clocks and reset outputs > + to the system. Mention here the headers with clock and reset constants. The same for patches 1 and 2. > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - mediatek,mt2701-infracfg > + - mediatek,mt2712-infracfg > + - mediatek,mt6765-infracfg > + - mediatek,mt6779-infracfg_ao > + - mediatek,mt6797-infracfg > + - mediatek,mt7622-infracfg > + - mediatek,mt7629-infracfg > + - mediatek,mt7986-infracfg > + - mediatek,mt8135-infracfg > + - mediatek,mt8167-infracfg > + - mediatek,mt8173-infracfg > + - mediatek,mt8183-infracfg > + - mediatek,mt8516-infracfg > + - const: syscon > + - items: > + - const: mediatek,mt7623-infracfg > + - const: mediatek,mt2701-infracfg > + - const: syscon > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > + '#reset-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +if: > + properties: > + compatible: > + contains: > + enum: > + - mediatek,mt2701-infracfg > + - mediatek,mt2712-infracfg > + - mediatek,mt7622-infracfg > + - mediatek,mt7986-infracfg > + - mediatek,mt8135-infracfg > + - mediatek,mt8173-infracfg > + - mediatek,mt8183-infracfg > +then: > + required: > + - '#reset-cells' > + > +additionalProperties: false > + > +examples: > + - | > + infracfg: syscon@10001000 { reset-controller or clock-controller instead, because syscon is for blocks having only the syscon function. Best regards, Krzysztof