Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp852148rwb; Fri, 18 Nov 2022 09:05:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bw2LItq+E58iJgZ8yH/ZeJMmkzkTchBUtYrK5d7QLFYnOdqaYQ/TEDSLAWcCvwwKVbIv0 X-Received: by 2002:a17:90a:7e0d:b0:213:d630:f4af with SMTP id i13-20020a17090a7e0d00b00213d630f4afmr8754755pjl.77.1668791105467; Fri, 18 Nov 2022 09:05:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668791105; cv=none; d=google.com; s=arc-20160816; b=OQlbvBFX/8ZckGoB320Y8P21vzd5ZraiqGhwHGFzmSTl5kifFg8By2NjPVW0i4G68p MPnOJNDgWEVTFbim1ZzgdKpkUi6+3zy1zw6LCUFxo7m/BNlOYRZudZ3WGXulAXJYITQO lmfYnbL3CH0A4wDTI0Q8NB2jw6W0IKswrjasMYxfN7m/knS1bE8nBwKEZjJaERSJtyXa e39FgckvXa85FoT0bngNVYeZ+xC43wn4WvR0zrgL/2eVl5NuOt3PzoKINfjFaWlPDYP9 gDjnmWrmUWhaN0ZMybOKsstwgOjtJrc3uktkUiyxXRsb8xa9PxqfZkIwW2gY1z7oxttG ghvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=D7JhrXwjD/BBBqSqzrNVCIT+3QaOVEAS69GN8n0gs5k=; b=R5jXOpmVtTRx2mviWAEVAvdJQ8a4FWdscJfnSY8zRIFzzkbbAHa6SM+K0n/TtHIQoG 1sXkejSt/q3YyRwRhUqTuq63vP2K90KVmOfaeC/59kgmtF2+C24gemrgikJ0nOWOp+QN wgJw6MP+wKkmj3huiw3BDTquozjH5GCjO3LJXWEepOgdx5XZQnrageXe0x65HPydvH5n 0us5qVuOGofJbclHAcx2QcoXAkFMrb2RBisvARp532AjFeJCHI3xfliOgwF81pZ31ba/ LW63/E/Ezt7/L+C4nweCZptoN8JnxI0tRVZCKxsOASq+Stp7x4gRTmCUHq+CHnTAwFY4 /dPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=KN1o1xTA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h127-20020a636c85000000b00476e8270b1csi4164542pgc.675.2022.11.18.09.04.52; Fri, 18 Nov 2022 09:05:05 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=KN1o1xTA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242332AbiKRQvJ (ORCPT + 91 others); Fri, 18 Nov 2022 11:51:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242265AbiKRQvE (ORCPT ); Fri, 18 Nov 2022 11:51:04 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1C618CFC8 for ; Fri, 18 Nov 2022 08:51:03 -0800 (PST) Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 923553F1C3 for ; Fri, 18 Nov 2022 16:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1668790261; bh=D7JhrXwjD/BBBqSqzrNVCIT+3QaOVEAS69GN8n0gs5k=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KN1o1xTAuztXEnjQNPJ2mCB+HAzH8uR5GdcIix7DhP9zg/LJwIpA+fEi72Qn4ezDh L7oUYb65nQWr1X4EM3KXgMs7qp0RPYTenRQI+VigEip+QKFoG1mwfdvIEVPqLJASed 19zcilTy3MUOPYvIlJ28S0RE18tTq8oY+6EmUBRISlJq6KdmJLugh+gLpoob/HtmQO oWPBuPKCGTbxh5xa0C83FP0Yb9Ha61Pjoi2eZMrEQyYB1+9dmHfG8HqTpE+PxKEzNQ ueTteRT+Wxho/c6E2tDVfU1kX5JnhmYn9W7J9oimo3kvrxfinHUmbppgIuHBURNeTf /MZT4dEan1V+w== Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-352e29ff8c2so54550197b3.21 for ; Fri, 18 Nov 2022 08:51:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D7JhrXwjD/BBBqSqzrNVCIT+3QaOVEAS69GN8n0gs5k=; b=yHLUytjJfDL+qQBZ0sVnD8uXULXD6rGX+USezYtCQkRoARa51QPJQAkFCdbF/8Gw6E JoAMyrYbU2/Gg8/nDXrrHupUvUoe+8rHxrc2UFAeqY3Q6gj9sypilFAAjh+jzOWoo2vy Xum1SX5125BeLPKAKmZZ8owWWqk8aNtDEh3o2E2d+yZE6JIJlkEi8LHFBy3/RsCA5Lz7 puu7lgevwkIGFxDNa9ECOeIrFjM1y2bs9Srl3DMb/+iTYFMJsC9qukV6ph2p5xFyqmSb GlVqbZfY6NGNXmUs8svRLK90mz+03cg5U1wqcC2Zl0A7jl7WqhFVVwio2zJzlyGzMtGE CXMg== X-Gm-Message-State: ANoB5pnhX2PmUnpUM8peLhrfigp+bOHnqNQvKPr+8+jwe83ru53Sl2Go zcOo1qv3qxKJ2U+ua78LgMa6NeUai3GpEsFhvOQeA/2V2J3OfWQiv46dZsz62IITAL6WIifeQtS DX/K1lwmayixFhamk80EkFRnR7+J1eoNToYOvPR57ml0rH9HhA2DCmANzxg== X-Received: by 2002:a0d:cad3:0:b0:36f:d611:a5fe with SMTP id m202-20020a0dcad3000000b0036fd611a5femr7231976ywd.230.1668790257887; Fri, 18 Nov 2022 08:50:57 -0800 (PST) X-Received: by 2002:a0d:cad3:0:b0:36f:d611:a5fe with SMTP id m202-20020a0dcad3000000b0036fd611a5femr7231956ywd.230.1668790257679; Fri, 18 Nov 2022 08:50:57 -0800 (PST) MIME-Version: 1.0 References: <20221118010627.70576-1-hal.feng@starfivetech.com> <20221118010627.70576-10-hal.feng@starfivetech.com> In-Reply-To: <20221118010627.70576-10-hal.feng@starfivetech.com> From: Emil Renner Berthing Date: Fri, 18 Nov 2022 17:50:41 +0100 Message-ID: Subject: Re: [PATCH v2 09/14] dt-bindings: clock: Add StarFive JH7110 system clock and reset generator To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Conor Dooley , Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Michael Turquette , Philipp Zabel , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Fri, 18 Nov 2022 at 02:06, Hal Feng wrote: > > From: Emil Renner Berthing > > Add bindings for the system clock and reset generator (SYSCRG) on the > JH7110 RISC-V SoC by StarFive Ltd. > > Signed-off-by: Emil Renner Berthing > Signed-off-by: Hal Feng > --- > .../clock/starfive,jh7110-syscrg.yaml | 80 +++++++++++++++++++ > MAINTAINERS | 2 +- > 2 files changed, 81 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml > > diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml > new file mode 100644 > index 000000000000..a8cafbc0afe2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH7110 System Clock and Reset Generator > + > +maintainers: > + - Emil Renner Berthing > + > +properties: > + compatible: > + const: starfive,jh7110-syscrg > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Main Oscillator (24 MHz) > + - description: RMII reference clock > + - description: RGMII RX clock > + - description: I2S TX bit clock > + - description: I2S TX left/right clock > + - description: I2S RX bit clock > + - description: I2S RX left/right clock > + - description: TDM > + - description: mclk Maybe you could ask your colleagues for a better description of these clocks. > + > + clock-names: > + items: > + - const: osc > + - const: gmac1_rmii_refin > + - const: gmac1_rgmii_rxin > + - const: i2stx_bclk_ext > + - const: i2stx_lrck_ext > + - const: i2srx_bclk_ext > + - const: i2srx_lrck_ext > + - const: tdm_ext > + - const: mclk_ext > + > + '#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: > + - | > + clock-controller@13020000 { > + compatible = "starfive,jh7110-syscrg"; > + reg = <0x13020000 0x10000>; > + clocks = <&osc>, <&gmac1_rmii_refin>, > + <&gmac1_rgmii_rxin>, > + <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, > + <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, > + <&tdm_ext>, <&mclk_ext>; > + clock-names = "osc", "gmac1_rmii_refin", > + "gmac1_rgmii_rxin", > + "i2stx_bclk_ext", "i2stx_lrck_ext", > + "i2srx_bclk_ext", "i2srx_lrck_ext", > + "tdm_ext", "mclk_ext"; > + #clock-cells = <1>; > + #reset-cells = <1>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index eeab26f5597c..ec6647e2772f 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -19602,7 +19602,7 @@ STARFIVE CLOCK DRIVERS > M: Emil Renner Berthing > M: Hal Feng > S: Maintained > -F: Documentation/devicetree/bindings/clock/starfive,jh7100-*.yaml > +F: Documentation/devicetree/bindings/clock/starfive* > F: drivers/clk/starfive/ > F: include/dt-bindings/clock/starfive* > > -- > 2.38.1 >