Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2860839rwb; Thu, 17 Nov 2022 17:47:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf58Dv423ljkfV6ttQER88vD4tms/VN7jLljiROg1Uih1R4gWiopj8Zr8wBmliu7+36ho5e6 X-Received: by 2002:a65:4948:0:b0:46e:be03:d9b5 with SMTP id q8-20020a654948000000b0046ebe03d9b5mr4531681pgs.495.1668736033954; Thu, 17 Nov 2022 17:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668736033; cv=none; d=google.com; s=arc-20160816; b=yZzXeSio2apNXAR+D7o9hLL2oQyDB3c3nxcxuoZ0WdBWsQcisPPfZnAloT3F1ROxKB rnceizQcdfHy/HowmLrv3LJO94O2EAiHpYEbNqw2wN0+ZJjnv7oyZ5cuLbuEyFX+6j2n cuJqSJD6KmC67BfVsMN/Zjv26hIf8QiWSbcCLflzX8wSl9hzBx2ZwvCZniAxY7CUNv3y 07XEuO9JEGGAvYkJWoxqNWRJifL25ok/iH5MWTL5/UARYfA21C3i8SOYFbGqw1GNChVj FMYbU/KFoIlwMR1tvm3h3icLd0kAqRfkU++G1Xpu14awoNpZBBIUAJRn+IdceO777oFz gysw== 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=LwlBrblpzGOsqiZ3WHosU6VWyZvNExTLZRe9J36Kcik=; b=Lxkw2ym0FkUab4z5p6LwCwd5AfZY+hJzSCd2e+abtDa3vYdTiE3RWtK5czmscBtjDG rqZJX0TxNX89leWr82ZGv6PgFWnIE44pwFrU+FXJhcPnIFcFnUnqCINVvbJTCYTGGwO4 F9vN+ky3BH18AurVOyOW86gaEMskDuGj5t9lRQCYroHoMTEDNZ1lBBpMFSu9wxgG9ss5 RKflI0L0gaJdb76C2yTaQayMLyTSLd8/kHzvDTUdCXnCjWMSolWFFo7XnWUnb2ezwkLz jdGHGWiObFCcEaAmeVNRqMQ+SSFqy1wZ5xlg+Byk+xBPizX0sAGm1I7883JQEJ1GHh/P dQJA== 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 ng18-20020a17090b1a9200b0020d3fa4d1edsi4039400pjb.64.2022.11.17.17.47.02; Thu, 17 Nov 2022 17:47:13 -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 S240882AbiKRBhF convert rfc822-to-8bit (ORCPT + 92 others); Thu, 17 Nov 2022 20:37:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240878AbiKRBgm (ORCPT ); Thu, 17 Nov 2022 20:36:42 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5EBF5B4; Thu, 17 Nov 2022 17:36:12 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id AA74424DFF7; Fri, 18 Nov 2022 09:06:36 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 09:06:36 +0800 Received: from ubuntu.localdomain (183.27.96.116) by EXMBX072.cuchost.com (172.16.6.82) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 09:06:36 +0800 From: Hal Feng To: , , CC: Conor Dooley , Palmer Dabbelt , "Rob Herring" , Krzysztof Kozlowski , Stephen Boyd , "Michael Turquette" , Philipp Zabel , Emil Renner Berthing , Hal Feng , Subject: [PATCH v2 10/14] dt-bindings: clock: Add StarFive JH7110 always-on clock and reset generator Date: Fri, 18 Nov 2022 09:06:23 +0800 Message-ID: <20221118010627.70576-11-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118010627.70576-1-hal.feng@starfivetech.com> References: <20221118010627.70576-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.96.116] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT 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 From: Emil Renner Berthing Add bindings for the always-on clock and reset generator (AONCRG) on the JH7110 RISC-V SoC by StarFive Ltd. Signed-off-by: Emil Renner Berthing Signed-off-by: Hal Feng --- .../clock/starfive,jh7110-aoncrg.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml new file mode 100644 index 000000000000..afbb205e294f --- /dev/null +++ b/Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/starfive,jh7110-aoncrg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Always-On Clock and Reset Generator + +maintainers: + - Emil Renner Berthing + +properties: + compatible: + const: starfive,jh7110-aoncrg + + reg: + maxItems: 1 + + 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 + - description: GMAC0 GTX clock + + clock-names: + items: + - const: osc + - const: clk_rtc + - const: gmac0_rmii_refin + - const: gmac0_rgmii_rxin + - const: stg_axiahb + - const: apb_bus_func + - const: gmac0_gtxclk + + '#clock-cells': + const: 1 + description: + See for valid indices. + + '#reset-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + + clock-controller@17000000 { + compatible = "starfive,jh7110-aoncrg"; + reg = <0x17000000 0x10000>; + clocks = <&osc>, <&clk_rtc>, + <&gmac0_rmii_refin>, <&gmac0_rgmii_rxin>, + <&syscrg JH7110_SYSCLK_STG_AXIAHB>, + <&syscrg JH7110_SYSCLK_APB_BUS_FUNC>, + <&syscrg JH7110_SYSCLK_GMAC0_GTXCLK>; + clock-names = "osc", "clk_rtc", "gmac0_rmii_refin", + "gmac0_rgmii_rxin", "stg_axiahb", + "apb_bus_func", "gmac0_gtxclk"; + #clock-cells = <1>; + #reset-cells = <1>; + }; -- 2.38.1