Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3179698rwb; Thu, 29 Sep 2022 22:59:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54Q4En4eRYuas6L30s0SehxdOclaZhtuJokbK57uuX8iY1exhaPyA/sY60FXVAKC/jTPPU X-Received: by 2002:a17:906:8457:b0:779:9f0a:fb with SMTP id e23-20020a170906845700b007799f0a00fbmr5440092ejy.665.1664517546921; Thu, 29 Sep 2022 22:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664517546; cv=none; d=google.com; s=arc-20160816; b=YA0SvMjhdTwxqHYrZs1+ER1g2udynvUbImrRooBL0d23Ld41LkjVKweC5NofYqlfUu BG80AlaDJ6J1XzHSNuGMjugucHn9q0d9QhMVhbpUHf3peMJFonZrOCEp0G2jCRK22MFb Y26M8xlsXgb/dSimfhKElp/y+2LtNMf6Vl0xatnmGnGLRxzrVCxr8VxaGZWW5Hi1m9Dl 0oElLP1tu7Ca3RfYwSPqPNM5Hea7XTKxIuTDpIxp4TkaeS6jb/+SlGMa01PrYGoIgY/2 5wKeGrUoXqhv1zZnTY+o4Wc84lH1ROvMkqm7cpxBGcVASUI+WLCtiD8xT3qVmAVipD2Z hHMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9l7oYwMNovbq4yijIYoi69s5dyEqtEKZPCTBcUCO+4c=; b=rYDvSb9Z/VCE/S5o3QGKCTphKiLB0yui8jWj8pvf+opnbPAQfEYLygehD3meO+PdjL K11V74s7ZDt+HrFQQyhLAQc34k/kmlSsjvmLfZO+AfPUXHq7rb4Lj+X6i2Xweq3ELjKb j0o9ukOP8LqIKxLhKV8/rKO8yDzH4h26pRTfeGcETb2i+dBXXhVF9RzBVXt3dTEVDV4c 3KLIUX40GZxGize1afU/fkWl0JaRQ+n5t6+kxSCGCvUQLewSEraAV5HLbnuiJSyLmcio MpGmwvbxt/m4Gi3FHQPO77vefN0O9FhNMspcqjU1O3wAC24sdLHBgMBCNgPxVPB9LSKo 22eg== 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 w23-20020a50fa97000000b0044eb3af536bsi1220644edr.160.2022.09.29.22.58.42; Thu, 29 Sep 2022 22:59:06 -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 S230134AbiI3F45 (ORCPT + 99 others); Fri, 30 Sep 2022 01:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbiI3F4t (ORCPT ); Fri, 30 Sep 2022 01:56:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D004E16DDCB; Thu, 29 Sep 2022 22:56:45 -0700 (PDT) X-QQ-mid: bizesmtp89t1664517395tl46psyh Received: from ubuntu.localdomain ( [113.72.146.201]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 30 Sep 2022 13:56:33 +0800 (CST) X-QQ-SSF: 01000000000000305000000A0000000 X-QQ-FEAT: bQsUcYFpAAbYh5IE5ZQJa21f+7RzMKXkTWoGjOTn9RYsMgEYDgMtGTVoiYE0X 950t0angog4i0EbjIImNUPmJSYyEjYeqTDfjglx1tBLSGnLqME7PIvImRR9KhNW961IXGUT A6wJDFItRdELl+XBJQbrMy09GJf+hc45Hbb+kvLJuSuoTaElzuojk8hhGzO/ssgHQexgBM9 SXcvfyvAYFMiiUP0CeRJIMwXonhn1a1U6F4r+79b7YHnIAu1XO2/Xl/8z7t9OqtJUtDdqTH y8iVVk+Qokja6Vojt3dqGGaHKYr1LPgIXQBYFyt4eYivjul2LpLK5In5s1OxsD+cI+Bgb4R FZ3yRuVJyFRhfYvDIyIgsoLX78xR5chr11v7/YuBjfPa4XSkOfFZgAFMSNYemIc/NZaCFML /t8NBeRSD5WLFEhW1CYz1w== X-QQ-GoodBg: 0 From: Hal Feng To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Stephen Boyd , Michael Turquette , Linus Walleij , Emil Renner Berthing , Hal Feng , linux-kernel@vger.kernel.org Subject: [PATCH v1 20/30] dt-bindings: clock: Add starfive,jh7110-clkgen-aon bindings Date: Fri, 30 Sep 2022 13:56:32 +0800 Message-Id: <20220930055632.5136-1-hal.feng@linux.starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> References: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:linux.starfivetech.com:qybglogicsvr:qybglogicsvr2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 From: Emil Renner Berthing Add bindings for the always-on clock generator on the JH7110 RISC-V SoC by StarFive Technology Ltd. Signed-off-by: Emil Renner Berthing Signed-off-by: Hal Feng --- .../clock/starfive,jh7110-clkgen-aon.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-clkgen-aon.yaml diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7110-clkgen-aon.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7110-clkgen-aon.yaml new file mode 100644 index 000000000000..029ff57b9e3e --- /dev/null +++ b/Documentation/devicetree/bindings/clock/starfive,jh7110-clkgen-aon.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/starfive,jh7110-clkgen-aon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Always-On Clock Generator + +maintainers: + - Emil Renner Berthing + - Xingyu Wu + +properties: + compatible: + const: starfive,jh7110-clkgen-aon + + clocks: + items: + - description: Main Oscillator + - description: RTC clock + - description: RMII reference clock + - description: RGMII RX clock + - description: STG AXI/AHB clock + - description: APB Bus clock + + clock-names: + items: + - const: osc + - const: clk_rtc + - const: gmac0_rmii_refin + - const: gmac0_rgmii_rxin + - const: stg_axiahb + - const: apb_bus_func + + '#clock-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + #include + + aoncrg: clock-controller@17000000 { + compatible = "starfive,jh7110-aoncrg"; + clocks = <&osc>, <&clk_rtc>, + <&gmac0_rmii_refin>, <&gmac0_rgmii_rxin>, + <&syscrg JH7110_SYSCLK_STG_AXIAHB>, + <&syscrg JH7110_SYSCLK_APB_BUS_FUNC>; + clock-names = "osc", "clk_rtc", + "gmac0_rmii_refin", "gmac0_rgmii_rxin", + "stg_axiahb", "apb_bus_func"; + #clock-cells = <1>; + }; -- 2.17.1