From: Rob Herring <robh@kernel.org>
To: Michal Wilczynski <m.wilczynski@samsung.com>
Cc: drew@pdp7.com, guoren@kernel.org, wefu@redhat.com,
jassisinghbrar@gmail.com, krzk+dt@kernel.org,
conor+dt@kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu,
m.szyprowski@samsung.com, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH RFC v1 2/3] dt-bindings: mailbox: Add thead,th1520-mailbox bindings
Date: Wed, 18 Sep 2024 15:36:27 -0500 [thread overview]
Message-ID: <20240918203627.GA2069046-robh@kernel.org> (raw)
In-Reply-To: <20240918134901.193033-3-m.wilczynski@samsung.com>
On Wed, Sep 18, 2024 at 03:49:00PM +0200, Michal Wilczynski wrote:
> Add bindings for the mailbox controller. This work is based on the vendor
> kernel. [1]
>
> Link: https://github.com/revyos/thead-kernel.git [1]
>
> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
> ---
> .../bindings/mailbox/thead,th1520-mbox.yaml | 83 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
>
> diff --git a/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml b/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
> new file mode 100644
> index 000000000000..f446fae76398
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
> @@ -0,0 +1,83 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mailbox/thead,th1520-mbox.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: T-head TH1520 Mailbox Controller
> +
> +description: |
Don't need '|' if no formatting.
> + The T-head mailbox controller enables two cores within the SoC to
> + communicate and coordinate by passing messages (e.g., data, status,
> + and control) through the mailbox channels. It also provides the ability
> + for one core to signal the other processor using interrupts.
> +
> +maintainers:
> + - Michal Wilczynski <m.wilczynski@samsung.com>
> +
> +properties:
> + compatible:
> + const: thead,th1520-mbox
> +
> + reg:
> + description: Contains base addresses and sizes for the mailbox and remote ICUs.
Drop. Redundant.
> + items:
> + - description: Mailbox local base address
> + - description: Remote ICU 0 base address
> + - description: Remote ICU 1 base address
> + - description: Remote ICU 2 base address
> +
> + reg-names:
> + items:
> + - const: local_base
Just 'local'
> + - const: remote_icu0
> + - const: remote_icu1
> + - const: remote_icu2
> +
> + interrupts:
> + maxItems: 1
> + description: Interrupt for the mailbox controller.
Drop description. That's obvious.
> +
> + clocks:
> + maxItems: 1
> + description: Clock phandle for the mailbox controller.
Drop
> +
> + clock-names:
> + items:
> + - const: ipg
> +
> + icu_cpu_id:
Needs a vendor prefix and s/_/-/.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: CPU ID for the ICU.
Constraints?
Nowhere in this patch is ICU defined.
> +
> + '#mbox-cells':
> + const: 2
> + description: Number of cells required to encode the mailbox specifier.
You need to say what each cell contains.
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - reg-names
> + - interrupts
> + - icu_cpu_id
> + - '#mbox-cells'
> +
> +dependencies:
> + clock-names: [ clocks ]
Core schema already does this.
> +
> +examples:
> + - |
> + mbox_910t: mbox@ffffc38000 {
Drop unused labels.
Standard name is 'mailbox', not 'mbox'.
> + compatible = "thead,th1520-mbox";
> + reg = <0xff 0xffc38000 0x0 0x4000>,
> + <0xff 0xffc44000 0x0 0x1000>,
> + <0xff 0xffc4c000 0x0 0x1000>,
> + <0xff 0xffc54000 0x0 0x1000>;
> + reg-names = "local_base", "remote_icu0", "remote_icu1", "remote_icu2";
> + interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
> + icu_cpu_id = <0>;
> + #mbox-cells = <2>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 7331b30deef8..49198b2ed2e7 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -19719,6 +19719,7 @@ L: linux-riscv@lists.infradead.org
> S: Maintained
> T: git https://github.com/pdp7/linux.git
> F: Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml
> +F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
> F: arch/riscv/boot/dts/thead/
> F: drivers/clk/thead/clk-th1520-ap.c
> F: drivers/mailbox/mailbox-th1520.c
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-09-18 20:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20240918134923eucas1p1a9233b712f86b97ba8d4b9f4d7a7adbb@eucas1p1.samsung.com>
2024-09-18 13:48 ` [PATCH RFC v1 0/3] Introduce support for T-head TH1520 Mailbox Michal Wilczynski
[not found] ` <CGME20240918134925eucas1p268a994fb26a9a139ff7314cd19124653@eucas1p2.samsung.com>
2024-09-18 13:48 ` [PATCH RFC v1 1/3] mailbox: Introduce support for T-head TH1520 Mailbox driver Michal Wilczynski
[not found] ` <CGME20240918134926eucas1p1df23a583b356505939d4c5501bd6c80f@eucas1p1.samsung.com>
2024-09-18 13:49 ` [PATCH RFC v1 2/3] dt-bindings: mailbox: Add thead,th1520-mailbox bindings Michal Wilczynski
2024-09-18 15:21 ` Rob Herring (Arm)
2024-09-18 20:36 ` Rob Herring [this message]
2024-09-19 13:34 ` Michal Wilczynski
[not found] ` <CGME20240918134928eucas1p216ff09a6f98681def7e8e38e02c27145@eucas1p2.samsung.com>
2024-09-18 13:49 ` [PATCH RFC v1 3/3] riscv: dts: thead: Add mailbox node Michal Wilczynski
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=20240918203627.GA2069046-robh@kernel.org \
--to=robh@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=drew@pdp7.com \
--cc=guoren@kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=m.wilczynski@samsung.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=wefu@redhat.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 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).