From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BFE6BC433EF for ; Sun, 28 Nov 2021 23:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hTjh/mMdmmXtJT592upClZmxPEflKM+GUdQdzDGo1hg=; b=aBrksQnhnKBpO6 o7FVAUoS6EXN9TPEhtv2sS/9WS16/BWjnReVpoF5z+42Civjqkr28+Rjst5qHsvImb8PFPX1VTNIM bVe8N7RN2h6JZS+fX4p6lk2FU+c+l05TSnvsf3eehuXLZIb+THzcoMxWSguHGNYzD/2Fjv1fvb+X0 qnhhf4i0eWPsnwEMnnIeWwkEHHucgsfIxqw4w4pyDwrfypRVicEEP1Lig4JbYwDwcbe6slHapjigI spZfbv/r6GJJ9NgHdaKEskA6X34hUPPuB+Oz+9SgxaFWsLLou8BxDaTaA0RGv9S4uNbRNqH4q1VY6 hWPtJhUgvEDBIyiMdxDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrTdw-00GpEq-38; Sun, 28 Nov 2021 23:31:36 +0000 Received: from mail-oi1-f182.google.com ([209.85.167.182]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrTdr-00GpDr-MK for linux-arm-kernel@lists.infradead.org; Sun, 28 Nov 2021 23:31:33 +0000 Received: by mail-oi1-f182.google.com with SMTP id m6so31145897oim.2 for ; Sun, 28 Nov 2021 15:31:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QET+jdkbVPh/SQ0E0SV6gfyzyI+VzCHBKFph86iBVuI=; b=btePtGJ46ukUzQ35Dif+DTnq0Hj7IYCHGqxO6hQe/+Gjpi4/EMNP2i7QeNQD4oD0fv C8RQS7UqhmxsDNyz9wGGJ0pQSQCUfzkDqopXTJSm0NaFl//NkX/vqWcvhIK12INiJ+Je j12PG2OJZYhnWCOJ7Iw0E3bC2GvanY03TrWFGmlP1OGLQknxzSCUlAUqPv93rSgm2qzj rBIs+w/qnPnDm47CnPub376646siWYDqTYEhfxih5mifoom1svDLDDNbetd3CjbYBWwQ myv3DQm/IxE4cmPx95KN0odF8ytwqyJa8B5Iros0Epbi049D7wANKEGFzqK+XtK4k315 j9sg== X-Gm-Message-State: AOAM530SB4gxFrfKfslrkFd07vflCMCX1UQFggThl9yO7yK+4CmMBHzQ pv+xLG4CDA3Ou/UduTj1Sf7kptXd4A== X-Google-Smtp-Source: ABdhPJzslttEOkuwy/oleEd5Ys0yMUiNW7c+Qbcm4LL8SNl/R6L/JzsSUm7brAh5VfBYY0PToz5q1Q== X-Received: by 2002:a05:6808:f15:: with SMTP id m21mr37776303oiw.68.1638142290840; Sun, 28 Nov 2021 15:31:30 -0800 (PST) Received: from robh.at.kernel.org ([2607:fb90:5fe7:4487:4f99:dbc0:75d1:3e27]) by smtp.gmail.com with ESMTPSA id o2sm2733175oik.11.2021.11.28.15.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 15:31:30 -0800 (PST) Received: (nullmailer pid 2819138 invoked by uid 1000); Sun, 28 Nov 2021 23:31:26 -0000 Date: Sun, 28 Nov 2021 17:31:26 -0600 From: Rob Herring To: Felix Fietkau Cc: linux-arm-kernel@lists.infradead.org, Michael Turquette , Stephen Boyd , john@phrozen.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 06/12] dt-bindings: Add en7523-scu device tree binding documentation Message-ID: References: <20211125110738.41028-1-nbd@nbd.name> <20211125110738.41028-7-nbd@nbd.name> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211125110738.41028-7-nbd@nbd.name> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211128_153132_026253_132E86CA X-CRM114-Status: GOOD ( 22.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Nov 25, 2021 at 12:07:32PM +0100, Felix Fietkau wrote: > From: John Crispin > > Adds device tree binding documentation for clocks in the EN7523 SOC. > > Signed-off-by: Felix Fietkau > Signed-off-by: John Crispin > --- > .../bindings/clock/airoha,en7523-scu.yaml | 58 +++++++++++++++++++ > include/dt-bindings/clock/en7523-clk.h | 17 ++++++ > 2 files changed, 75 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml > create mode 100644 include/dt-bindings/clock/en7523-clk.h > > diff --git a/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml > new file mode 100644 > index 000000000000..79660f8126fa > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/airoha,en7523-scu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: EN7523 Clock Device Tree Bindings > + > +maintainers: > + - Felix Fietkau > + - John Crispin > + > +description: | > + This node defines the System Control Unit of the EN7523 SoC, > + a collection of registers configuring many different aspects of the SoC. > + > + The clock driver uses it to read and configure settings of the > + PLL controller, which provides clocks for the CPU, the bus and > + other SoC internal peripherals. > + > + Each clock is assigned an identifier and client nodes use this identifier > + to specify which clock they consume. > + > + All these identifiers can be found in: > + [1]: . > + > + The clocks are provided inside a system controller node. > + > +properties: > + compatible: > + items: > + - const: airoha,en7523-scu > + > + reg: > + maxItems: 2 > + > + "#clock-cells": > + description: > + The first cell indicates the clock number, see [1] for available > + clocks. > + const: 1 > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + #include > + scu: scu@1fa20000 { > + compatible = "airoha,en7523-scu"; > + reg = <0x1fa20000 0x400>, > + <0x1fb00000 0x1000>; > + #clock-cells = <1>; > + }; > diff --git a/include/dt-bindings/clock/en7523-clk.h b/include/dt-bindings/clock/en7523-clk.h > new file mode 100644 > index 000000000000..7c8414a7cb66 > --- /dev/null > +++ b/include/dt-bindings/clock/en7523-clk.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ Using DT with non-GPL OS? Dual license header and dts files. > + > +#ifndef _DT_BINDINGS_CLOCK_AIROHA_EN7523_H_ > +#define _DT_BINDINGS_CLOCK_AIROHA_EN7523_H_ > + > +#define EN7523_CLK_GSW 0 > +#define EN7523_CLK_EMI 1 > +#define EN7523_CLK_BUS 2 > +#define EN7523_CLK_SLIC 3 > +#define EN7523_CLK_SPI 4 > +#define EN7523_CLK_NPU 5 > +#define EN7523_CLK_CRYPTO 6 > +#define EN7523_CLK_PCIE 7 > + > +#define EN7523_NUM_CLOCKS 8 > + > +#endif /* _DT_BINDINGS_CLOCK_AIROHA_EN7523_H_ */ > -- > 2.30.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel