Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp258172rwb; Mon, 28 Nov 2022 20:26:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5avBvwE0F2Dx50IUZzPs2+S6ovCknH+6hisehJ4VB1PTgVd63k0vSHev6HgOYA9Z71tNVN X-Received: by 2002:a17:906:9c89:b0:7c0:7ab4:3715 with SMTP id fj9-20020a1709069c8900b007c07ab43715mr5668137ejc.343.1669696005625; Mon, 28 Nov 2022 20:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669696005; cv=none; d=google.com; s=arc-20160816; b=joD1Oobw8tMnEYtVSF5Kw0M+1iNEkYkRIqL2QlYpmZpRhKZ7MfF9eNLWf5LZ+xVNyZ 4XU1ftaFkBdrQIUnXV4A2KhXMZe+ju9WWrOCWc+gdu9pwBadz6GxBswVKMydDd+GxLcj xljoFOSzHilW5ATxKmZeHVEdi+r2KF39/1ovpACbr+gnUMTIjwZ8hwp7iK/8xMmqEu7L ghfS7mwjtmnve80ldebWmRwNq6v0KdG1OoRfMlTIXxpEt85NmDJn8udf5rC6STJAGYrL Sst4QWAm+7D++5oiLKPE06Jby8/DqQLZrKUmAvv67DmrdUD1uZG3J+jIfgDvgwdDchJJ nxuQ== 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=b9tpo5xJduOntFCMdWtgIICyGFEO6uRVHg0SiHrEwig=; b=P1SOHPE5kFvfo8bEfAB3XGpjoN1hxy0Sl33dMGC3pzINMQ+gtJueSN41YsNbaX4lms 4K/cKm+N7MLvt3vr7MzCunmSLTd5GYb0Q7XBGpmMmdSLrzcnrPt8OSh2dZAy6PULcPXJ KXqrfoobRjygSC439TST0t2ApMiJ2GnuK7yZaQYLHTJBte4DPtHVHElGwWwVfdLyXWQS n8pWhslkyCYtLYORVcVlX+lN05LsMofCTU9+2Hi5AurY10Usq+XO10bD3pgOL4e8jQBp ZIjl+gFrUrSvaYzYFVpBhslVmMZsEL0tD0VEstZwcw82fhJO6+qb4+o4tQvb9zZdMMbo tCzw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020aa7df8d000000b0045166555fddsi7490848edy.481.2022.11.28.20.26.26; Mon, 28 Nov 2022 20:26:45 -0800 (PST) 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 S235533AbiK2DmV (ORCPT + 82 others); Mon, 28 Nov 2022 22:42:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235538AbiK2DmH (ORCPT ); Mon, 28 Nov 2022 22:42:07 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC0EE4B985; Mon, 28 Nov 2022 19:42:05 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8CxruuMf4Vjd+gBAA--.4653S3; Tue, 29 Nov 2022 11:42:04 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPuCGf4VjjecdAA--.10584S5; Tue, 29 Nov 2022 11:42:03 +0800 (CST) From: Yinbo Zhu To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Huacai Chen , WANG Xuerui , Jiaxun Yang , Jianmin Lv , Yang Li , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu Cc: Krzysztof Kozlowski Subject: [PATCH v10 4/4] dt-bindings: clock: add loongson-2 clock Date: Tue, 29 Nov 2022 11:41:57 +0800 Message-Id: <20221129034157.15036-4-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221129034157.15036-1-zhuyinbo@loongson.cn> References: <20221129034157.15036-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxPuCGf4VjjecdAA--.10584S5 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoWxXF47tF4DJw1xAFWruF1xKrg_yoW5tr1DpF sxCr95JrWIyF13uFsxKFyIywn5Za4xAFWDAw42ka42yr90gw15XF1xKa4UZ39xXr17Za9F vFyS9r4UCa1Uuw7anT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bSxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr 1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAaw2AFwI0_JF0_Jw1le2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26F4j6r4UJwAm72CE4IkC 6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2 Ij64vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI 1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26ryj 6F1UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr1j6F4U JbIYCTnIWIevJa73UjIFyTuYvjxUwD7aUUUUU 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: X-Mailing-List: linux-kernel@vger.kernel.org Add the Loongson-2 clock binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- Change in v10: 1. NO change, but other patch in this series of patches has changes. 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 + +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 73fa56f1fd5d..0cdd1437c093 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12025,6 +12025,7 @@ LOONGSON-2 SOC SERIES CLOCK DRIVER M: Yinbo Zhu 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 -- 2.31.1