Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp724836pxb; Fri, 21 Jan 2022 01:36:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqQiN0v3iZeXhcX+9o3QhGZsgYitPxSFbyBY/kSdUpPf4R5ndAmRZnMxZLpMbx8PrrmRED X-Received: by 2002:a63:2205:: with SMTP id i5mr2341184pgi.365.1642757763440; Fri, 21 Jan 2022 01:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642757763; cv=none; d=google.com; s=arc-20160816; b=O6aU95CKVOifWVnBsNvx6+YWgKMoaxR6dIOJlxDSimTk4CCu6bcBg7eZ1+FHbsL3UY 7QOWa02oaZS/ie2Grk73auYsFBZcC1tOaODgVQH5CEowehqTYbkyioFD0r+aXwzIySkm +KRWBzNKpTPZjdVC6mwWT3cwtPhefL/Bwbl15TsIoOhRLMpbFJvEasfb4Q/M7XA5YK62 lFHyv0yp7fCEaqvxGsX4TWtFy+FfLWOjS8G2FRFsrW60lXPD6dVevEia7Sc71cBZhFGF 5X6H+xGypS4yDD+42k503qq4QMmwuz1B9VTgXXbLzkFlWGjQqPkDtqpeACe4rXOB9iD4 Ms+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-transfer-encoding :mime-version:references:subject:in-reply-to:cc:to:from:date; bh=HV7RA/DGxW912tMmgA++utD+4UmD71oNPNePOwhgAK0=; b=EqGzIF2/52XGMkjZ1XYV6XtFHwsLgkTLHW1j7TimbMzrL1pkbE4zr3wq4GxXED0Fq0 dw3lmKNeelBCQ7BEtuYKPagcX0P5yRsKWiFbck3QmIGEt09DfjtWYA0D/ygZVXFuHyQk 0lAS9+Yzxzx8KdVdhZIqZP5jKbYajRhoOs8+7UkTVpjRUujuuM8mxEVzy29HUkkl4eKn ymewJ6aU97FRoMEatA+qp1xdkAEC/cZYNp3SGW8VZAPjBmE8FzAMPO23+vARbCxdTxUO +I1rpDkNL1sIM5f8RiSWWKDnRf+3M3jouTj8qF6xvZ6T6TcMMBh7xXUdKuIBvVZvmhEx ptlw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si5918317pgn.491.2022.01.21.01.35.51; Fri, 21 Jan 2022 01:36:03 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349696AbiARWBA (ORCPT + 99 others); Tue, 18 Jan 2022 17:01:00 -0500 Received: from sibelius.xs4all.nl ([83.163.83.176]:50797 "EHLO sibelius.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234970AbiARWAz (ORCPT ); Tue, 18 Jan 2022 17:00:55 -0500 Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 4cdc8265; Tue, 18 Jan 2022 23:00:52 +0100 (CET) Date: Tue, 18 Jan 2022 23:00:52 +0100 (CET) From: Mark Kettenis To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kettenis@openbsd.org, povik+lin@protonmail.com In-Reply-To: <20220118191839.64086-2-povik+lin@protonmail.com> (message from Martin =?utf-8?Q?Povi=C5=A1er?= on Tue, 18 Jan 2022 19:21:03 +0000) Subject: Re: [PATCH v2 1/3] dt-bindings: clock: Add Apple NCO References: <20220118191839.64086-1-povik+lin@protonmail.com> <20220118191839.64086-2-povik+lin@protonmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Date: Tue, 18 Jan 2022 19:21:03 +0000 > From: Martin Povišer > > The NCO block found on Apple SoCs is a programmable clock generator > performing fractional division of a high frequency input clock. > > Signed-off-by: Martin Povišer Reviewed-by: Mark Kettenis > --- > .../devicetree/bindings/clock/apple,nco.yaml | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/apple,nco.yaml > > diff --git a/Documentation/devicetree/bindings/clock/apple,nco.yaml b/Documentation/devicetree/bindings/clock/apple,nco.yaml > new file mode 100644 > index 000000000000..da56b64b8fff > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/apple,nco.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/apple,nco.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Apple SoCs' NCO block > + > +maintainers: > + - Martin Povišer > + > +description: | > + The NCO (Numerically Controlled Oscillator) block found on Apple SoCs > + such as the t8103 (M1) is a programmable clock generator performing > + fractional division of a high frequency input clock. > + > + It carries a number of independent channels and is typically used for > + generation of audio bitclocks. > + > +properties: > + compatible: > + items: > + - enum: > + - apple,t6000-nco > + - apple,t8103-nco > + - const: apple,nco > + > + clocks: > + description: > + Specifies the reference clock from which the output clocks > + are derived through fractional division. > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - clocks > + - '#clock-cells' > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + nco_clkref: clock-ref { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <900000000>; > + clock-output-names = "nco-ref"; > + }; > + > + nco: clock-controller@23b044000 { > + compatible = "apple,t8103-nco", "apple,nco"; > + reg = <0x3b044000 0x14000>; > + #clock-cells = <1>; > + clocks = <&nco_clkref>; > + }; > -- > 2.33.0 > > >