Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp856303pxb; Thu, 21 Oct 2021 10:45:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgHzjfQTYAbw/FnQNC4CCSAibkZEAhRhxpc35VuBdJwTGy/0CtYRdTy0TFQn4sIRNRdVS+ X-Received: by 2002:a17:907:9609:: with SMTP id gb9mr8470208ejc.73.1634838332068; Thu, 21 Oct 2021 10:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634838332; cv=none; d=google.com; s=arc-20160816; b=O8dEBFZikEASpFjhmIveIwSyuOUcGYQJNnQREkFp562SUhB+9rhoTBBjrk11+qJBRG lbwCdbsicbe3b0BHdHye4ed0v+NdYYodZAE5ZENc7iYwGi6NRjRwsTYMfxJCLsptGhRP dDIedsOoHpBELzb1AmbGGGnHWK3bz2RkFTcQoaLQH4KchoSVRRjHfi1lj6VGMf6t4Py1 NsMhlFIGkKkWOLBrwri6gbksa3r2Z9jVSyTvs4OQpTt1bALlbaOQtseCfPdOusjezFX6 cDbkoD8IZevjD9nY7Y6935KPX9T7divTt26vn+d16Parwq6wjiVOw1P9dsdsfEN+XjJp wioQ== 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:sender :dkim-signature; bh=8qbfKAJ2dJiFCQVxyKPZl47EINqXvD0LgrDBKR+z57I=; b=maGaan5O4JiSdTG7RDqP59tiqrdSRQOYBZTpmQG+XSNLzDgJHpjG9+PaplVMgm4q0w X16JxEG11Ug49+Ch5mgbKeP2EWPtphdQu45VvCBIafQxLgJ7xN/IM5HkMbQyg9vsM4/C aENlnP5mTBB3d0xDqnh+ugFhvNBMt/FyBNhNmRqGPglkjd077ZE1wpr2fatRLnfwd7Qw LVV5/G2EtnLxnWC1fj4iawEyzHrkzi+XhYas2uLbm+WftaL+xe/KVilySE4hEIV3kVr5 UMtmsb+QGKF6dzuPotAFaok1M2zN24EZpJ1e44RM8Gpi2tNNDH0yXcerWoU2hguZ+taO OsrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MMKdvpmd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb18si9431579ejc.767.2021.10.21.10.45.07; Thu, 21 Oct 2021 10:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MMKdvpmd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbhJURpL (ORCPT + 99 others); Thu, 21 Oct 2021 13:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232242AbhJURo4 (ORCPT ); Thu, 21 Oct 2021 13:44:56 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F098BC061764; Thu, 21 Oct 2021 10:42:39 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id g10so3943858edj.1; Thu, 21 Oct 2021 10:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8qbfKAJ2dJiFCQVxyKPZl47EINqXvD0LgrDBKR+z57I=; b=MMKdvpmdbUzEcdId3TldfQmB5i6ackBeZUU2pM8DfxqOmkDEh7hkX4mGrM5IJ9vFT8 68vx9zOtPz0+nkEU++z6eVDJ5xmlMe7qjYX/OEWOMwMk8DU5ObyOV/OM9iWj1gIn4eQM lYsrn5r9YUwkNsNLadmQmKL6MjDEtvjNBfZILUJU2qxgxcSek4gSAfPWlkt5+d6cldXx J9i7tSITZGWCRNI0ZSjLQ3uQ4uWZNAZX+2KxUAwX2knuc8a7Ep53EDf1o/YHvgnk7FJ9 PUP1UQZfPLEBmw1PubH5+xmPXaf1jSAje2pWDpJoMrxKuijRqXR4/chF4WSYKqhp2XiM y0Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8qbfKAJ2dJiFCQVxyKPZl47EINqXvD0LgrDBKR+z57I=; b=CNtMEf0UQeHZjnpmxILB3Dk7vTrHEezIlCVtI6PnWAfXs00EhBcq1OPvh56z95c521 +zgYMPk+IgFsFW4cv3fAovGEAkf8pzLg6RmE8ht8C7g9iotPNgTEWS/uozQYCefyagGL waWEwZeyqJPeVa9dadhCFnL2ZZKaBJTLf6/GZnjb3DJdoKIHBVa4SKQWsvfkEyHLso0a Ac7YX2xVN4qvSRlM1EOvY3OlWwDOLn94aWfAXjou0+o9+eJEBOaJk8IB5Wvtv0c4hekV xe7U+exZrXyAulypk4Xi43W2DccMcOarUlJYq+KZV+CDZ1S/yBMbbuVlP1rSjFadMKMy qweQ== X-Gm-Message-State: AOAM53341gt4bEuFrmKF3BfW6c/cqv6MWTaxUklZp/3T8/TGZdgE2n7W Mu1Roboiv7rvIS4WokChwmY= X-Received: by 2002:a17:907:961e:: with SMTP id gb30mr9045337ejc.484.1634838158597; Thu, 21 Oct 2021 10:42:38 -0700 (PDT) Received: from stitch.. (80.71.140.73.ipv4.parknet.dk. [80.71.140.73]) by smtp.gmail.com with ESMTPSA id h7sm3144847edt.37.2021.10.21.10.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 10:42:38 -0700 (PDT) Sender: Emil Renner Berthing From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org Cc: Geert Uytterhoeven , Palmer Dabbelt , Paul Walmsley , Rob Herring , Michael Turquette , Stephen Boyd , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Linus Walleij , Greg Kroah-Hartman , Daniel Lezcano , Andy Shevchenko , Jiri Slaby , Maximilian Luz , Sagar Kadam , Drew Fustini , Michael Zhu , Fu Wei , Anup Patel , Atish Patra , Matteo Croce , linux-kernel@vger.kernel.org, Emil Renner Berthing Subject: [PATCH v2 05/16] dt-bindings: clock: starfive: Add JH7100 bindings Date: Thu, 21 Oct 2021 19:42:12 +0200 Message-Id: <20211021174223.43310-6-kernel@esmil.dk> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211021174223.43310-1-kernel@esmil.dk> References: <20211021174223.43310-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven Add device tree bindings for the StarFive JH7100 clock generator. Signed-off-by: Geert Uytterhoeven Signed-off-by: Emil Renner Berthing --- .../clock/starfive,jh7100-clkgen.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml new file mode 100644 index 000000000000..d19f94984eab --- /dev/null +++ b/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/starfive,jh7100-clkgen.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7100 Clock Generator + +maintainers: + - Geert Uytterhoeven + - Emil Renner Berthing + +properties: + compatible: + const: starfive,jh7100-clkgen + + reg: + maxItems: 1 + + clocks: + items: + - description: Main clock source (25 MHz) + - description: Application-specific clock source (12-27 MHz) + - description: RMII reference clock (50 MHz) + - description: RGMII RX clock (125 MHz) + + clock-names: + items: + - const: osc_sys + - const: osc_aud + - const: gmac_rmii_ref + - const: gmac_gr_mii_rxclk + + '#clock-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clkgen: clock-controller@11800000 { + compatible = "starfive,jh7100-clkgen"; + reg = <0x11800000 0x10000>; + clocks = <&osc_sys>, <&osc_aud>, <&gmac_rmii_ref>, <&gmac_gr_mii_rxclk>; + clock-names = "osc_sys", "osc_aud", "gmac_rmii_ref", "gmac_gr_mii_rxclk"; + #clock-cells = <1>; + }; -- 2.33.1