From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: "Martin Povišer" <povik+lin@protonmail.com>
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
Subject: Re: [PATCH v2 1/3] dt-bindings: clock: Add Apple NCO
Date: Tue, 18 Jan 2022 23:00:52 +0100 (CET) [thread overview]
Message-ID: <d3cbbeb0d20fbd64@bloch.sibelius.xs4all.nl> (raw)
In-Reply-To: <20220118191839.64086-2-povik+lin@protonmail.com> (message from Martin Povišer on Tue, 18 Jan 2022 19:21:03 +0000)
> Date: Tue, 18 Jan 2022 19:21:03 +0000
> From: Martin Povišer <povik+lin@protonmail.com>
>
> 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 <povik+lin@protonmail.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
> ---
> .../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 <povik+lin@protonmail.com>
> +
> +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
>
>
>
next prev parent reply other threads:[~2022-01-18 22:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-18 19:20 [PATCH v2 0/3] Support for Apple SoCs' NCO blocks Martin Povišer
2022-01-18 19:21 ` [PATCH v2 1/3] dt-bindings: clock: Add Apple NCO Martin Povišer
2022-01-18 22:00 ` Mark Kettenis [this message]
2022-01-19 2:55 ` Rob Herring
2022-01-19 14:01 ` Rob Herring
2022-01-18 19:21 ` [PATCH v2 2/3] clk: clk-apple-nco: Add driver for " Martin Povišer
2022-01-20 5:38 ` Stephen Boyd
2022-01-20 12:11 ` Martin Povišer
2022-01-20 20:59 ` Stephen Boyd
2022-01-18 19:21 ` [PATCH v2 3/3] MAINTAINERS: Add clk-apple-nco under ARM/APPLE MACHINE Martin Povišer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d3cbbeb0d20fbd64@bloch.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=alyssa@rosenzweig.io \
--cc=devicetree@vger.kernel.org \
--cc=kettenis@openbsd.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=mturquette@baylibre.com \
--cc=povik+lin@protonmail.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=sven@svenpeter.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).