From: Krzysztof Kozlowski <krzk@kernel.org>
To: justin.chen@broadcom.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: florian.fainelli@broadcom.com, conor+dt@kernel.org,
krzk+dt@kernel.org, robh@kernel.org, jassisinghbrar@gmail.com,
bcm-kernel-feedback-list@broadcom.com
Subject: Re: [PATCH 2/2] dt-bindings: mailbox: Add devicetree binding for bcm74110 mbox
Date: Fri, 28 Mar 2025 08:31:19 +0100 [thread overview]
Message-ID: <e7f51014-10b2-4f9c-9929-f2a4f32b023c@kernel.org> (raw)
In-Reply-To: <20250327221628.651042-3-justin.chen@broadcom.com>
On 27/03/2025 23:16, justin.chen@broadcom.com wrote:
> From: Justin Chen <justin.chen@broadcom.com>
>
> Add devicetree YAML binding for brcmstb bcm74110 mailbox used
> for communicating with a co-processor.
>
> Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Bindings are before users, see DT submitting patches.
> ---
> .../bindings/mailbox/brcm,bcm74110-mbox.yaml | 68 +++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mailbox/brcm,bcm74110-mbox.yaml
>
> diff --git a/Documentation/devicetree/bindings/mailbox/brcm,bcm74110-mbox.yaml b/Documentation/devicetree/bindings/mailbox/brcm,bcm74110-mbox.yaml
> new file mode 100644
> index 000000000000..139728a35303
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mailbox/brcm,bcm74110-mbox.yaml
> @@ -0,0 +1,68 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mailbox/brcm,bcm74110-mbox.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM74110 Mailbox Driver
Driver as Linux driver? Drop, bindings describe hardware.
> +
> +maintainers:
> + - Justin Chen <justin.chen@broadcom.com>
> + - Florian Fainelli <florian.fainelli@broadcom.com>
> +
> +description: Broadcom mailbox driver first introduced with 74110
Same comments.
> +
> +properties:
> + compatible:
> + enum:
> + - brcm,bcm74110-mbox
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + "#mbox-cells":
> + const: 2
> + description:
> + The first cell is channel type and second cell is shared memory slot
> +
> + brcm,mbox_tx:
No underscores. See DTS coding style.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Mailbox transmit doorbell
Why is this needed in DT? How many instances do you have in one SoC?
Where is the SoC DTS?
> +
> + brcm,mbox_rx:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Mailbox receive doorbell
> +
> + brcm,mbox_shmem:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + maxItems: 2
> + description: Mailbox shared memory region and size
No, use existing properties, e.g. memory region.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - "#mbox-cells"
> + - brcm,mbox_tx
> + - brcm,mbox_rx
> + - brcm,mbox_shmem
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + brcm_pmc_mailbox: brcm_pmc_mailbox@a552000 {
Use indentation we expect. See writing schema, example-schema.
> + #mbox-cells = <2>;
> + compatible = "brcm,bcm74110-mbox";
Fix order, see DTS coding style.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-03-28 7:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 22:16 [PATCH 0/2] mailbox: Add support for bcm74110 mailbox justin.chen
2025-03-27 22:16 ` [PATCH 1/2] " justin.chen
2025-03-28 7:35 ` Krzysztof Kozlowski
2025-03-27 22:16 ` [PATCH 2/2] dt-bindings: mailbox: Add devicetree binding for bcm74110 mbox justin.chen
2025-03-28 7:31 ` Krzysztof Kozlowski [this message]
2025-03-28 18:36 ` Justin Chen
2025-03-29 4:35 ` Krzysztof Kozlowski
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=e7f51014-10b2-4f9c-9929-f2a4f32b023c@kernel.org \
--to=krzk@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=jassisinghbrar@gmail.com \
--cc=justin.chen@broadcom.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®