From patchwork Tue Nov 29 03:41:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 27073 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp113612wrr; Mon, 28 Nov 2022 19:59:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7id3kK7+9KNIkqgC/+DZbj6iduUOElt2G3TM7YPWS7zZJfbs1W6QOyytv6MAMyN3uHlhhq X-Received: by 2002:a63:c42:0:b0:43c:3b6d:d6ab with SMTP id 2-20020a630c42000000b0043c3b6dd6abmr50878524pgm.52.1669694397529; Mon, 28 Nov 2022 19:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669694397; cv=none; d=google.com; s=arc-20160816; b=nZ6qM3xu9eo4UzlOm/yYANlNlq71augx+a8QssEOHStgnNCXGOHqcHXqLI5u2oHH+u klC8SB/R9mE5N7+o33edIpVhFjHHTPj+tSEWhll4cLlCNA7A1bQmJFbJ5waFQNChmIdl /etlSvaR60BU55d+6jBrWP2QUCQjuxylDw/L8Ar8bjACb0BEoXNL6Uiw+y7Mm6/XQX5K KOLjSQDcgBx+goE9GmKWDgkpDqjPeydgRrItBv8eToCsfbUOoAb9L/c4uZgAO0dHOtxg /dAR1A07urd/s6Q5XUW2PJSRyAYz+qTy0GN1mP+X09m77KhTKWVb1FH9h47QDVekNhbY DHeg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a170902da9000b00186dcc389a8si4384266plx.329.2022.11.28.19.59.44; Mon, 28 Nov 2022 19:59:57 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750801472918540885?= X-GMAIL-MSGID: =?utf-8?q?1750801472918540885?= 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