From: Conor Dooley <conor@kernel.org>
To: Lucas Tanure <tanure@linux.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Nick <nick@khadas.com>, Artem <art@khadas.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-serial@vger.kernel.org
Subject: Re: [PATCH 2/6] dt-bindings: clock: Bindings for Meson T7 clock controller
Date: Thu, 15 Jun 2023 22:41:14 +0100 [thread overview]
Message-ID: <20230615-capable-implicit-90a8f0265616@spud> (raw)
In-Reply-To: <20230615182938.18487-3-tanure@linux.com>
[-- Attachment #1.1: Type: text/plain, Size: 3184 bytes --]
Hey Lucas,
On Thu, Jun 15, 2023 at 07:29:34PM +0100, Lucas Tanure wrote:
> Add documentation for T7 the clock controller.
Other than the bot's complaint, few comments for ya.
> Signed-off-by: Lucas Tanure <tanure@linux.com>
> ---
> .../bindings/clock/amlogic,mesont7.yaml | 69 +++
> include/dt-bindings/clock/mesont7-clkc.h | 487 ++++++++++++++++++
> 2 files changed, 556 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> create mode 100644 include/dt-bindings/clock/mesont7-clkc.h
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> new file mode 100644
> index 000000000000..18e7cca0c0e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
The filename should match the compatible - please test the bindings,
dt_binding_check will complain.
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/amlogic,mesont7-clk.yaml#
and this should match the filename
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic Meson T7 Clock Controller
> +
> +maintainers:
> + - Lucas Tanure <tanure@linux.com>
> +
> +description: |
> + The Amlogic Meson T7 clock controller generates and supplies clock to
> + various peripherals within the SoC.
> +
> + This binding uses common clock bindings
> + [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
This doesn't add anything as you're adding a yaml binding. I'd drop it
(and the | from description: since you would no longer have formatting
to preserve).
> +
> +properties:
> + compatible:
> + const: amlogic,t7-clkc
> +
> + reg:
> + items:
> + - description: basic registers
What does "basic registers" mean? I think you should be more specific in
your description.
> + - description: pll registers
> + - description: cpu_clk registers
> +
> + reg-names:
> + items:
> + - const: basic
> + - const: pll
> + - const: cpu_clk
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: xtal
> +
> + '#clock-cells':
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - clocks
> + - clock-names
> + - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + # Clock controller node:
> + - |
> + clkc: clock-controller {
The comment above and the node name here can be dropped.
You do however need to change "clock-controller" to
"clock-controller@<addr>".
> + compatible = "amlogic,t7-clkc";
> + #clock-cells = <1>;
> + reg = <0x0 0x0000 0x00 0x49c>,
> + <0x0 0x8000 0x00 0x320>,
> + <0x0 0xe040 0x00 0x0bc>;
Drop the 0x0 stuff from here.
> + reg-names = "basic", "pll", "cpu_clk";
> + clocks = <&xtal>;
> + clock-names = "xtal";
> + status = "okay";
status can be dropped, okay is the default.
Cheers,
Conor.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
WARNING: multiple messages have this Message-ID (diff)
From: Conor Dooley <conor@kernel.org>
To: Lucas Tanure <tanure@linux.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Nick <nick@khadas.com>, Artem <art@khadas.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-serial@vger.kernel.org
Subject: Re: [PATCH 2/6] dt-bindings: clock: Bindings for Meson T7 clock controller
Date: Thu, 15 Jun 2023 22:41:14 +0100 [thread overview]
Message-ID: <20230615-capable-implicit-90a8f0265616@spud> (raw)
In-Reply-To: <20230615182938.18487-3-tanure@linux.com>
[-- Attachment #1: Type: text/plain, Size: 3184 bytes --]
Hey Lucas,
On Thu, Jun 15, 2023 at 07:29:34PM +0100, Lucas Tanure wrote:
> Add documentation for T7 the clock controller.
Other than the bot's complaint, few comments for ya.
> Signed-off-by: Lucas Tanure <tanure@linux.com>
> ---
> .../bindings/clock/amlogic,mesont7.yaml | 69 +++
> include/dt-bindings/clock/mesont7-clkc.h | 487 ++++++++++++++++++
> 2 files changed, 556 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> create mode 100644 include/dt-bindings/clock/mesont7-clkc.h
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> new file mode 100644
> index 000000000000..18e7cca0c0e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
The filename should match the compatible - please test the bindings,
dt_binding_check will complain.
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/amlogic,mesont7-clk.yaml#
and this should match the filename
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic Meson T7 Clock Controller
> +
> +maintainers:
> + - Lucas Tanure <tanure@linux.com>
> +
> +description: |
> + The Amlogic Meson T7 clock controller generates and supplies clock to
> + various peripherals within the SoC.
> +
> + This binding uses common clock bindings
> + [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
This doesn't add anything as you're adding a yaml binding. I'd drop it
(and the | from description: since you would no longer have formatting
to preserve).
> +
> +properties:
> + compatible:
> + const: amlogic,t7-clkc
> +
> + reg:
> + items:
> + - description: basic registers
What does "basic registers" mean? I think you should be more specific in
your description.
> + - description: pll registers
> + - description: cpu_clk registers
> +
> + reg-names:
> + items:
> + - const: basic
> + - const: pll
> + - const: cpu_clk
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: xtal
> +
> + '#clock-cells':
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - clocks
> + - clock-names
> + - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + # Clock controller node:
> + - |
> + clkc: clock-controller {
The comment above and the node name here can be dropped.
You do however need to change "clock-controller" to
"clock-controller@<addr>".
> + compatible = "amlogic,t7-clkc";
> + #clock-cells = <1>;
> + reg = <0x0 0x0000 0x00 0x49c>,
> + <0x0 0x8000 0x00 0x320>,
> + <0x0 0xe040 0x00 0x0bc>;
Drop the 0x0 stuff from here.
> + reg-names = "basic", "pll", "cpu_clk";
> + clocks = <&xtal>;
> + clock-names = "xtal";
> + status = "okay";
status can be dropped, okay is the default.
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Conor Dooley <conor@kernel.org>
To: Lucas Tanure <tanure@linux.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Nick <nick@khadas.com>, Artem <art@khadas.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-serial@vger.kernel.org
Subject: Re: [PATCH 2/6] dt-bindings: clock: Bindings for Meson T7 clock controller
Date: Thu, 15 Jun 2023 22:41:14 +0100 [thread overview]
Message-ID: <20230615-capable-implicit-90a8f0265616@spud> (raw)
In-Reply-To: <20230615182938.18487-3-tanure@linux.com>
[-- Attachment #1.1: Type: text/plain, Size: 3184 bytes --]
Hey Lucas,
On Thu, Jun 15, 2023 at 07:29:34PM +0100, Lucas Tanure wrote:
> Add documentation for T7 the clock controller.
Other than the bot's complaint, few comments for ya.
> Signed-off-by: Lucas Tanure <tanure@linux.com>
> ---
> .../bindings/clock/amlogic,mesont7.yaml | 69 +++
> include/dt-bindings/clock/mesont7-clkc.h | 487 ++++++++++++++++++
> 2 files changed, 556 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> create mode 100644 include/dt-bindings/clock/mesont7-clkc.h
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
> new file mode 100644
> index 000000000000..18e7cca0c0e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml
The filename should match the compatible - please test the bindings,
dt_binding_check will complain.
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/amlogic,mesont7-clk.yaml#
and this should match the filename
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Amlogic Meson T7 Clock Controller
> +
> +maintainers:
> + - Lucas Tanure <tanure@linux.com>
> +
> +description: |
> + The Amlogic Meson T7 clock controller generates and supplies clock to
> + various peripherals within the SoC.
> +
> + This binding uses common clock bindings
> + [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
This doesn't add anything as you're adding a yaml binding. I'd drop it
(and the | from description: since you would no longer have formatting
to preserve).
> +
> +properties:
> + compatible:
> + const: amlogic,t7-clkc
> +
> + reg:
> + items:
> + - description: basic registers
What does "basic registers" mean? I think you should be more specific in
your description.
> + - description: pll registers
> + - description: cpu_clk registers
> +
> + reg-names:
> + items:
> + - const: basic
> + - const: pll
> + - const: cpu_clk
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + const: xtal
> +
> + '#clock-cells':
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - clocks
> + - clock-names
> + - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + # Clock controller node:
> + - |
> + clkc: clock-controller {
The comment above and the node name here can be dropped.
You do however need to change "clock-controller" to
"clock-controller@<addr>".
> + compatible = "amlogic,t7-clkc";
> + #clock-cells = <1>;
> + reg = <0x0 0x0000 0x00 0x49c>,
> + <0x0 0x8000 0x00 0x320>,
> + <0x0 0xe040 0x00 0x0bc>;
Drop the 0x0 stuff from here.
> + reg-names = "basic", "pll", "cpu_clk";
> + clocks = <&xtal>;
> + clock-names = "xtal";
> + status = "okay";
status can be dropped, okay is the default.
Cheers,
Conor.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-06-15 21:41 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 18:29 [PATCH 0/6] Add Amlogic A311D2 and Khadas Vim4 Board Support Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` [PATCH 1/6] dt-bindings: arm: amlogic: add Amlogic T7 based Khadas VIM4 bindings Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 21:27 ` Conor Dooley
2023-06-15 21:27 ` Conor Dooley
2023-06-15 21:27 ` Conor Dooley
2023-06-15 18:29 ` [PATCH 2/6] dt-bindings: clock: Bindings for Meson T7 clock controller Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 19:47 ` Rob Herring
2023-06-15 19:47 ` Rob Herring
2023-06-15 19:47 ` Rob Herring
2023-06-15 21:41 ` Conor Dooley [this message]
2023-06-15 21:41 ` Conor Dooley
2023-06-15 21:41 ` Conor Dooley
2023-06-18 17:39 ` Lucas Tanure
2023-06-18 17:39 ` Lucas Tanure
2023-06-18 17:39 ` Lucas Tanure
2023-06-18 19:16 ` Conor Dooley
2023-06-18 19:16 ` Conor Dooley
2023-06-18 19:16 ` Conor Dooley
2023-06-15 18:29 ` [PATCH 3/6] clk: meson: t7: add peripheral " Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-16 7:21 ` Jerome Brunet
2023-06-16 7:21 ` Jerome Brunet
2023-06-16 11:23 ` kernel test robot
2023-06-16 11:23 ` kernel test robot
2023-06-16 11:23 ` kernel test robot
2023-06-18 17:42 ` Lucas Tanure
2023-06-18 17:42 ` Lucas Tanure
2023-06-18 17:42 ` Lucas Tanure
2023-06-21 4:41 ` kernel test robot
2023-06-21 4:41 ` kernel test robot
2023-06-21 4:41 ` kernel test robot
2023-06-15 18:29 ` [PATCH 4/6] dt-bindings: serial: amlogic, meson-uart: support T7 Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 21:25 ` Conor Dooley
2023-06-15 21:25 ` Conor Dooley
2023-06-15 21:25 ` Conor Dooley
2023-06-18 17:37 ` Lucas Tanure
2023-06-18 17:37 ` Lucas Tanure
2023-06-18 17:37 ` Lucas Tanure
2023-06-18 19:18 ` Conor Dooley
2023-06-18 19:18 ` Conor Dooley
2023-06-18 19:18 ` Conor Dooley
2023-06-15 18:29 ` [PATCH 5/6] tty: serial: meson: Added T7 SOC compatibility Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 23:30 ` Yixun Lan
2023-06-15 23:30 ` Yixun Lan
2023-06-15 23:30 ` Yixun Lan
2023-06-18 17:40 ` Lucas Tanure
2023-06-18 17:40 ` Lucas Tanure
2023-06-18 17:40 ` Lucas Tanure
2023-06-18 19:15 ` Conor Dooley
2023-06-18 19:15 ` Conor Dooley
2023-06-18 19:15 ` Conor Dooley
2023-06-15 18:29 ` [PATCH 6/6] arm64: dts: meson-t7-a311d2-khadas-vim4: add initial device-tree Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-15 18:29 ` Lucas Tanure
2023-06-16 0:01 ` Yixun Lan
2023-06-16 0:01 ` Yixun Lan
2023-06-16 0:01 ` Yixun Lan
2023-06-18 17:41 ` Lucas Tanure
2023-06-18 17:41 ` Lucas Tanure
2023-06-18 17:41 ` Lucas Tanure
2023-06-18 17:44 ` Lucas Tanure
2023-06-18 17:44 ` Lucas Tanure
2023-06-18 17:44 ` Lucas Tanure
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=20230615-capable-implicit-90a8f0265616@spud \
--to=conor@kernel.org \
--cc=art@khadas.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=nick@khadas.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=tanure@linux.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.