Message ID | 20221103050032.29236-3-zhuyinbo@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp325018wru; Wed, 2 Nov 2022 22:08:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4sI98UOI0josSRLKWNSKJunqQUaSyIbZ5y3bJPBwCsew0kLt/Ddf1jmh/6h3xOAKg7dTGZ X-Received: by 2002:a05:6402:501b:b0:459:df91:983 with SMTP id p27-20020a056402501b00b00459df910983mr27267256eda.85.1667452096547; Wed, 02 Nov 2022 22:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667452096; cv=none; d=google.com; s=arc-20160816; b=E4Ll3Kr4iQ9UQunsSI37HIyDE8hrO44HMBLUmoPSrVQ2r4XrOgvfcYx/Lo+tpE0/S6 jsUG8n2TVvqc/0Pcmxi77I+Xo0+tk9WLpXWxO33dGgIu1voDshXVmiKClc9LYTmpZCc+ 1wH/ZjA6rewUL18VLZeWaZsfMU0TPK3uGG3RsD9XSFxNM36aPMQmSuOMOFZKIOi0nI22 xLT3U3f6ricXcJxOtdgPOrjW265U7kUUJTA1huRJExsAh5QDSPgyHUKj/a+WM9ssg02a WSf2r5raUTcdKdXt8F96xfvpgmrndDbCT1rWUPnONdqWIji6iyZiQqqt12pe375QJTmh clsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BO27Z0I9899rnJg9j3Vw2Dapt/ns8JzkAJfbhevSrD0=; b=RCv0Vv0oLg3jzvfNr8L9deM6s6hey27ZPetp8u4s2WTdU6F/qII69y3AnEhrj2fThB 2OJS/sTCXI2urh1A2QYDHfXRQ8KXjLPPn78XQts8h0EPCPaees1XT0IrOkI4TSh0CoSj bl1zZmPrGNpCFg4x9akTklJ16I5iTETRP9u4XCXh4tFYGQsyXGbAi3hqf0DcdluiW3ka cRxILy3hkgiFhLwp/rZ0SxoOhQKEDKwbCvQ+fGifF80eS6fVLDq4n7XGinHBYrPSpnhD VKEz+hJDupvqjq1T7hMTQcizu6aFRHSo7gh3AkWU8RJgX4bWXjqdJbPjNNWJHTXsFjNN b3+g== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a50fe8e000000b00456dcf56d90si35797edt.84.2022.11.02.22.07.51; Wed, 02 Nov 2022 22:08:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbiKCFAw (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Thu, 3 Nov 2022 01:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiKCFAo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Nov 2022 01:00:44 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1837718369; Wed, 2 Nov 2022 22:00:41 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8CxPLb4SmNjCikEAA--.2664S3; Thu, 03 Nov 2022 13:00:40 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxZ1fySmNjf2MLAA--.15382S4; Thu, 03 Nov 2022 13:00:39 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Jianmin Lv <lvjianmin@loongson.cn>, Yang Li <yang.lee@linux.alibaba.com>, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu <zhuyinbo@loongson.cn> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v9 3/3] dt-bindings: clock: add loongson-2 clock Date: Thu, 3 Nov 2022 13:00:32 +0800 Message-Id: <20221103050032.29236-3-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221103050032.29236-1-zhuyinbo@loongson.cn> References: <20221103050032.29236-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxZ1fySmNjf2MLAA--.15382S4 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4DJw1xAFWruF1xKrg_yoW5uF1UpF sxCr95JrWIyF13uFsxKFyxAwn5Za4xAFyDAw42ka4jyr90gw15XF1xKa4UZ39xXrW7Za9F vFyS9r4UCa1Uuw7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAaw2AFwI0_JF0_Jw1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Xr0_ Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIY CTnIWIevJa73UjIFyTuYvjxU2iFxUUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748450249558001344?= X-GMAIL-MSGID: =?utf-8?q?1748450249558001344?= |
Series |
[v9,1/3] dt-bindings: clock: add loongson-2 clock include file
|
|
Commit Message
Yinbo Zhu
Nov. 3, 2022, 5 a.m. UTC
Add the Loongson-2 clock binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Change in v9: 1. Add all history changlog information. Change in v8: 1. NO change, but other patch in this series of patches has changes. Change in v7: 1. NO change, but other patch in this series of patches has changes. Change in v6: 1. NO change, but other patch in this series of patches has changes. Change in v5: 1. NO change, but other patch in this series of patches has changes. Change in v4: 1. NO change, but other patch in this series of patches has changes. Change in v3: 1. Drop redundant (last) binding from the title. 2. Drop "- |" between ref_100m node and clk node. Change in v2: 1. Drop "Binding" string in the title. 2. Drop entire allOf and move the contents to top level. 3. Change string "refclk_100m" to "ref_100m". .../bindings/clock/loongson,ls2k-clk.yaml | 63 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml
Comments
Hi maintainer, Please help me merge this patch to upstream. thanks, Yinbo. 在 2022/11/3 下午1:00, Yinbo Zhu 写道: > Add the Loongson-2 clock binding with DT schema format using > json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Change in v9: > 1. Add all history changlog information. > Change in v8: > 1. NO change, but other patch in this series of patches has > changes. > Change in v7: > 1. NO change, but other patch in this series of patches has > changes. > Change in v6: > 1. NO change, but other patch in this series of patches has > changes. > Change in v5: > 1. NO change, but other patch in this series of patches has > changes. > Change in v4: > 1. NO change, but other patch in this series of patches has > changes. > Change in v3: > 1. Drop redundant (last) binding from the title. > 2. Drop "- |" between ref_100m node and clk node. > Change in v2: > 1. Drop "Binding" string in the title. > 2. Drop entire allOf and move the contents to top level. > 3. Change string "refclk_100m" to "ref_100m". > > .../bindings/clock/loongson,ls2k-clk.yaml | 63 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml > > diff --git a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml > new file mode 100644 > index 000000000000..63a59015987e > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson-2 SoC Clock Control Module > + > +maintainers: > + - Yinbo Zhu <zhuyinbo@loongson.cn> > + > +description: | > + Loongson-2 SoC clock control module is an integrated clock controller, which > + generates and supplies to all modules. > + > +properties: > + compatible: > + enum: > + - loongson,ls2k-clk > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: 100m ref > + > + clock-names: > + items: > + - const: ref_100m > + > + '#clock-cells': > + const: 1 > + description: > + The clock consumer should specify the desired clock by having the clock > + ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h > + for the full list of Loongson-2 SoC clock IDs. > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + ref_100m: clock-ref-100m { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <100000000>; > + clock-output-names = "ref_100m"; > + }; > + > + clk: clock-controller@1fe00480 { > + compatible = "loongson,ls2k-clk"; > + reg = <0x1fe00480 0x58>; > + #clock-cells = <1>; > + clocks = <&ref_100m>; > + clock-names = "ref_100m"; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 8b3d7bb18350..7afaf6d72800 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -12022,6 +12022,7 @@ LOONGSON-2 SOC SERIES CLOCK DRIVER > M: Yinbo Zhu <zhuyinbo@loongson.cn> > L: linux-clk@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml > F: drivers/clk/clk-loongson2.c > F: include/dt-bindings/clock/loongson,ls2k-clk.h > >
Any updates? 在 2022/11/9 下午5:11, Yinbo Zhu 写道: > Hi maintainer, > > Please help me merge this patch to upstream. > > thanks, > Yinbo. > > 在 2022/11/3 下午1:00, Yinbo Zhu 写道: >> Add the Loongson-2 clock binding with DT schema format using >> json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> Change in v9: >> 1. Add all history changlog information. >> Change in v8: >> 1. NO change, but other patch in this series of patches has >> changes. >> Change in v7: >> 1. NO change, but other patch in this series of patches has >> changes. >> Change in v6: >> 1. NO change, but other patch in this series of patches has >> changes. >> Change in v5: >> 1. NO change, but other patch in this series of patches has >> changes. >> Change in v4: >> 1. NO change, but other patch in this series of patches has >> changes. >> Change in v3: >> 1. Drop redundant (last) binding from the title. >> 2. Drop "- |" between ref_100m node and clk node. >> Change in v2: >> 1. Drop "Binding" string in the title. >> 2. Drop entire allOf and move the contents to top level. >> 3. Change string "refclk_100m" to "ref_100m". >> >> .../bindings/clock/loongson,ls2k-clk.yaml | 63 +++++++++++++++++++ >> MAINTAINERS | 1 + >> 2 files changed, 64 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml >> >> diff --git >> a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml >> b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml >> new file mode 100644 >> index 000000000000..63a59015987e >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml >> @@ -0,0 +1,63 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Loongson-2 SoC Clock Control Module >> + >> +maintainers: >> + - Yinbo Zhu <zhuyinbo@loongson.cn> >> + >> +description: | >> + Loongson-2 SoC clock control module is an integrated clock >> controller, which >> + generates and supplies to all modules. >> + >> +properties: >> + compatible: >> + enum: >> + - loongson,ls2k-clk >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: 100m ref >> + >> + clock-names: >> + items: >> + - const: ref_100m >> + >> + '#clock-cells': >> + const: 1 >> + description: >> + The clock consumer should specify the desired clock by having >> the clock >> + ID in its "clocks" phandle cell. See >> include/dt-bindings/clock/loongson,ls2k-clk.h >> + for the full list of Loongson-2 SoC clock IDs. >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + - '#clock-cells' >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + ref_100m: clock-ref-100m { >> + compatible = "fixed-clock"; >> + #clock-cells = <0>; >> + clock-frequency = <100000000>; >> + clock-output-names = "ref_100m"; >> + }; >> + >> + clk: clock-controller@1fe00480 { >> + compatible = "loongson,ls2k-clk"; >> + reg = <0x1fe00480 0x58>; >> + #clock-cells = <1>; >> + clocks = <&ref_100m>; >> + clock-names = "ref_100m"; >> + }; >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 8b3d7bb18350..7afaf6d72800 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -12022,6 +12022,7 @@ LOONGSON-2 SOC SERIES CLOCK DRIVER >> M: Yinbo Zhu <zhuyinbo@loongson.cn> >> L: linux-clk@vger.kernel.org >> S: Maintained >> +F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml >> F: drivers/clk/clk-loongson2.c >> F: include/dt-bindings/clock/loongson,ls2k-clk.h >>
diff --git a/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml new file mode 100644 index 000000000000..63a59015987e --- /dev/null +++ b/Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-2 SoC Clock Control Module + +maintainers: + - Yinbo Zhu <zhuyinbo@loongson.cn> + +description: | + Loongson-2 SoC clock control module is an integrated clock controller, which + generates and supplies to all modules. + +properties: + compatible: + enum: + - loongson,ls2k-clk + + reg: + maxItems: 1 + + clocks: + items: + - description: 100m ref + + clock-names: + items: + - const: ref_100m + + '#clock-cells': + const: 1 + description: + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h + for the full list of Loongson-2 SoC clock IDs. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + ref_100m: clock-ref-100m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "ref_100m"; + }; + + clk: clock-controller@1fe00480 { + compatible = "loongson,ls2k-clk"; + reg = <0x1fe00480 0x58>; + #clock-cells = <1>; + clocks = <&ref_100m>; + clock-names = "ref_100m"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8b3d7bb18350..7afaf6d72800 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12022,6 +12022,7 @@ LOONGSON-2 SOC SERIES CLOCK DRIVER M: Yinbo Zhu <zhuyinbo@loongson.cn> L: linux-clk@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml F: drivers/clk/clk-loongson2.c F: include/dt-bindings/clock/loongson,ls2k-clk.h