[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <77f94763-5604-484f-93c8-dc018c166b37@kernel.org>
Date: Tue, 25 Mar 2025 11:36:18 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Guomin Chen <guomin.chen@...tech.com>,
Jassi Brar <jassisinghbrar@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>
Cc: linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
cix-kernel-upstream@...tech.com, Peter Chen <peter.chen@...tech.com>,
Lihua Liu <Lihua.Liu@...tech.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: mailbox: add cix,sky1-mbox
On 25/03/2025 11:18, Guomin Chen wrote:
> +
> +description:
> + The Cixtech mailbox controller, used in the Cixtech Sky1 SoC,
> + is used for message transmission between multiple processors
> + within the SoC, such as the AP, PM, audio DSP, SensorHub MCU,
> + and others
> +
> + Each Cixtech mailbox controller is unidirectional, so they are
> + typically used in pairs-one for receiving and one for transmitting.
> +
> + Each Cixtech mailbox supports 11 channels with different transmission modes
> + channel 0-7 - Fast channel with 32bit transmit register and IRQ support
> + channel 8 - Doorbell mode,using the mailbox as an interrupt-generating
> + mechanism.
> + channel 9 - Fifo based channel with 32*32bit depth fifo and IRQ support
> + channel 10 - Reg based channel with 32*32bit transmit register and
> + Doorbell+transmit acknowledgment IRQ support
Maybe you split one device into two and that's why you have
unidirectional mailboxes?
> +
> +properties:
> + compatible:
> + const: cix,sky1-mbox
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + "#mbox-cells":
> + description: Common mailbox binding property to identify the number
Drop
> + of cells required for the mailbox specifier. Should be 1
Drop
Don't repeat constraints in free form text. Missing const.
You kept here pieces I asked to drop. You dropped pieces I did not
comment under. Please observe where the comments appear.
So again: explain what each cell argument means.
> +> + cix,mbox-dir:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Direction of the mailbox (0:TX or 1:RX)
> + enum: [0, 1]
Respond to comments or implement them. Previous discussion was not
resolved - you did not respond. Sending the same with unfinished
discussion is not way to convince maintainer. Opposite: you will get
NAKed because you try to finish discussion and push your patch over the
wall.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - "#mbox-cells"
> + - cix,mbox-dir
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + mbox_ap2pm: mailbox@...00000 {
> + compatible = "cix,sky1-mbox";
> + reg = <0 0x30000000 0 0x10000>;
> + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH 0>;
> + #mbox-cells = <1>;
> + cix,mbox-dir = <0>; /* 0:tx; 1:rx */
Drop comment. If you need comment, then this should be string.
> + };
> +
> + mbox_pm2ap: mailbox@...10000 {
> + compatible = "cix,sky1-mbox";
> + reg = <0 0x30010000 0 0x10000>;
> + interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH 0>;
> + #mbox-cells = <1>;
> + cix,mbox-dir = <1>; /* 0:tx; 1:rx */
Drop second example. Wasn't here and is not needed. Same properties,
difference in one value is not that much.
Best regards,
Krzysztof
Powered by blists - more mailing lists