Skip to contentSkip to conversation

mailbox: starfive: Add Support for StarFive Meu Mailbox driver

PATCH In review Joshua Yeong 4 participants 9 messages Dec 18, 2023 – Dec 19, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover mailbox: starfive: Add Support for StarFive Meu Mailbox driver

This patch series adds support for StarFive Meu Mailbox driver.

Joshua Yeong (3):
mailbox: starfive: Add StarFive Meu Mailbox Driver
dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver
MAINTAINERS: Add entry for StarFive Mailbox MEU

 .../bindings/mailbox/starfive-meu.yaml        |  66 ++++
 MAINTAINERS                                   |   7 +
 drivers/mailbox/Kconfig                       |  11 +
 drivers/mailbox/Makefile                      |   2 +
 drivers/mailbox/starfive-meu.c                | 334 ++++++++++++++++++
 5 files changed, 420 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml
 create mode 100644 drivers/mailbox/starfive-meu.c

--
2.25.1

#1 lore raw

PATCH 1/3 mailbox: starfive: Add StarFive Meu Mailbox Driver

This patch adds support for the StarFive Meu Mailbox driver. This enables communication using mailbox doorbell between AP and SCP cores.

---
 drivers/mailbox/Kconfig        |  11 ++
 drivers/mailbox/Makefile       |   2 +
 drivers/mailbox/starfive-meu.c | 334 +++++++++++++++++++++++++++++++++
 3 files changed, 347 insertions(+)
 create mode 100644 drivers/mailbox/starfive-meu.c
drivers/mailbox/Kconfig +11 -0
index bc2e265cb02d..b5e38a50b3d5 100644
@@ -295,4 +295,15 @@ config QCOM_IPCC
 	  acts as an interrupt controller for receiving interrupts from clients.
 	  Say Y here if you want to build this driver.
 
+config STARFIVE_MEU_MBOX
+	tristate "Starfive MEU Mailbox"
+	depends on OF
+	depends on SOC_STARFIVE || COMPILE_TEST
+	help
+	  Say Y here if you want to build the Starfive MEU mailbox controller
+	  driver.
+
+	  The StarFive mailbox controller has 2 channels. Each channel has a
+	  pair of Tx/Rx link and each link has 31 slots/doorbells.
+
 endif
drivers/mailbox/Makefile +2 -0
index fc9376117111..122cc691c256 100644
@@ -62,3 +62,5 @@ obj-$(CONFIG_SPRD_MBOX)		+= sprd-mailbox.o
 obj-$(CONFIG_QCOM_IPCC)		+= qcom-ipcc.o
 
 obj-$(CONFIG_APPLE_MAILBOX)	+= apple-mailbox.o
+
+obj-$(CONFIG_STARFIVE_MEU_MBOX)	+= starfive-meu.o
drivers/mailbox/starfive-meu.c new file +334 -0

334 lines not on this page · raw message

Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH 1/3] mailbox: starfive: Add StarFive Meu Mailbox Driver

kernel test robot noticed the following build warnings:

Hi Joshua,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7-rc6]
[cannot apply to next-20231218]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Joshua-Yeong/mailbox-starfive-Add-StarFive-Meu-Mailbox-Driver/20231218-141510
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20231218061201.98136-2-joshua.yeong%40starfivetech.com
patch subject: [PATCH 1/3] mailbox: starfive: Add StarFive Meu Mailbox Driver
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20231219/[email protected]/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231219/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/mailbox/starfive-meu.c:50: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

* StarFive MEU Mailbox allocated channel information

vim +50 drivers/mailbox/starfive-meu.c

    48	
    49	/**
  > 50	 * StarFive MEU Mailbox allocated channel information
    51	 *
    52	 * @meu: Pointer to parent mailbox device
    53	 * @pchan: Physical channel within which this doorbell resides in
    54	 * @doorbell: doorbell number pertaining to this channel
    55	 */
    56	struct meu_db_channel {
    57		struct starfive_meu *meu;
    58		unsigned int pchan;
    59		unsigned int doorbell;
    60	};
    61	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#3 lore raw

Re: [PATCH 1/3] mailbox: starfive: Add StarFive Meu Mailbox Driver

In reply to Joshua Yeong
Quoted 2 lines · Joshua Yeong

This patch adds support for the StarFive Meu Mailbox driver. This enables communication using mailbox doorbell between AP and SCP cores.

I think the naming here is a bit confusing. As far as I can tell, this is not a mailbox at all but just a doorbell, so maybe clarify that in the wording.

It could be turned into a mailbox if you add a shared memory segment of course, but neither the driver nor the binding specifies how to use that.

drivers/mailbox/Kconfig config QCOM_IPCC · line 299

Quoted 2 lines
drivers/mailbox/Kconfig +2 -0
+config STARFIVE_MEU_MBOX
+	tristate "Starfive MEU Mailbox"

Please spell out MEU here, I don't think that is a well understood acronynm, at least I have never heard of it.

drivers/mailbox/Kconfig config QCOM_IPCC · line 307

Quoted 8 lines
drivers/mailbox/Kconfig +8 -0
+	depends on OF
+	depends on SOC_STARFIVE || COMPILE_TEST
+	help
+	  Say Y here if you want to build the Starfive MEU mailbox controller
+	  driver.
+
+	  The StarFive mailbox controller has 2 channels. Each channel has a
+	  pair of Tx/Rx link and each link has 31 slots/doorbells.

What is the significance of the "channels" as opposed to "slots"?

The binding seems to indicate that there are just 62 fully equal doorbell channels as far as consumers are concerned. For efficiency one might want to of course only use one doorbell per channel here to avoid the interrupt sharing.

Quoted 7 lines
(quoted diff) +2 -0
+static inline struct mbox_chan *
+meu_db_mbox_to_channel(struct mbox_controller *mbox, unsigned int 

pchan,

drivers/mailbox/starfive-meu.c new file +4 -0
+		       unsigned int doorbell)
+{
+	struct meu_db_channel *chan_info;
+	int i;

drivers/mailbox/starfive-meu.c line 77

Quoted 10 lines
drivers/mailbox/starfive-meu.c new file +10 -0
+
+	for (i = 0; i < mbox->num_chans; i++) {
+		chan_info = mbox->chans[i].con_priv;
+		if (chan_info && chan_info->pchan == pchan &&
+		    chan_info->doorbell == doorbell)
+			return &mbox->chans[i];
+	}
+
+	return NULL;
+}

If the number of doorbells is known in advance, maybe use use it as the array index here?

drivers/mailbox/starfive-meu.c line 85

Quoted 7 lines
drivers/mailbox/starfive-meu.c new file +7 -0
+static void meu_db_mbox_clear_irq(struct mbox_chan *chan)
+{
+	struct meu_db_channel *chan_info = chan->con_priv;
+	void __iomem *base = chan_info->meu->mlink[chan_info->pchan].rx_reg;
+
+	writel_relaxed(BIT(chan_info->doorbell), base + CHAN_CLR_OFFSET);
+}

Any reason to use writel_relaxed() instead of writel() here? Please add a comment if this is necessary, otherwise this risks adding races if someone tries to use the doorbell in combination with shared memory.

Quoted 12 lines
(quoted diff) +2 -0
+static struct mbox_chan *
+meu_db_mbox_irq_to_channel(struct starfive_meu *meu, unsigned int 

pchan)

drivers/mailbox/starfive-meu.c new file +8 -0
+{
+	void __iomem *base = meu->mlink[pchan].rx_reg;
+	struct mbox_controller *mbox = &meu->mbox;
+	struct mbox_chan *chan = NULL;
+	unsigned int doorbell;
+	unsigned long bits;
+
+	bits = FIELD_GET(CHAN_RX_DOORBELL, readl_relaxed(base + 

CHAN_RX_STAT_OFFSET));

drivers/mailbox/starfive-meu.c line 114

Quoted 8 lines
drivers/mailbox/starfive-meu.c new file +8 -0
+	if (!bits)
+		/* No IRQs fired in specified physical channel */
+		return NULL;
+
+	/* An IRQ has fired, find the associated channel */
+	for (doorbell = 0; bits; doorbell++) {
+		if (!test_and_clear_bit(doorbell, &bits))
+			continue;

There is no need to use atomic updates on stack variables. Just use for_each_set_bit() to do the loop here.

drivers/mailbox/starfive-meu.c line 121

Quoted 6 lines
drivers/mailbox/starfive-meu.c new file +6 -0
+		chan = meu_db_mbox_to_channel(mbox, pchan, doorbell);
+		if (chan)
+			break;
+
+		/* Clear IRQ for unregistered doorbell */
+		writel_relaxed(BIT(doorbell), base + CHAN_CLR_OFFSET);

Again, add a comment about the use of _relaxed() here.

Quoted 7 lines
drivers/mailbox/starfive-meu.c new file +6 -0
+static bool meu_db_last_tx_done(struct mbox_chan *chan)
+{
+	struct meu_db_channel *chan_info = chan->con_priv;
+	void __iomem *base = chan_info->meu->mlink[chan_info->pchan].tx_reg;
+
+	if (readl_relaxed(base + CHAN_TX_STAT_OFFSET) & 

BIT(chan_info->doorbell))

The readl_relaxed() again prevents the use of shared memory, so change it to a normal readl() or add a comment about how ordering is maintained.

Arnd

#4 lore raw

PATCH 2/3 dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver

In reply to Joshua Yeong

The StarFive Meu Mailbox allow communication between AP and SCP cores through mailbox doorbell.

---
 .../bindings/mailbox/starfive-meu.yaml        | 66 +++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +66 -0
new file mode 100644
index 000000000000..dbc5cfdb90ff
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mailbox/starfive-meu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive MEU Mailbox Controller
+
+maintainers:
+  - Jee Heng Sia <[email protected]>
+  - Joshua Yeong <[email protected]>
+
+description: |
+  StarFive's Message-Exchange-Unit (MEU) is a mailbox controller that has 62
+  independent doorbells. Each MEU channel consist of 31 doorbells and consist of
+  a pair of Tx/Rx links that shall communicates with remote processor. The
+  sender set the bit in the SET register to indicate data readiness for the
+  receiver. An interrupt will be raised whenever receiving notification doorbell
+  from remote processor. The receiver will clear the bit in the CLR register
+  upon handling the doorbell notification. The sender should poll the STAT
+  register before starting any transaction to ensure all on-going doorbells are
+  processed.
+
+properties:
+  compatible:
+    enum:
+      - starfive,jh8100-meu
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: mailbox0
+      - description: mailbox1
+
+  '#mbox-cells':
+    description: represents index of the mailbox/doorbell paired channel
+      channel  0 - 30 for mailbox0 doorbell
+      channel 31 - 61 for mailbox1 doorbell
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - '#mbox-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        meu: mailbox@1f370000 {
+            compatible = "starfive,jh8100-meu";
+            reg = <0x0 0x1f370000 0 0x8000>;
+            interrupts = <170>, /* Mailbox0 */
+                         <171>; /* Mailbox1 */
+            #mbox-cells = <1>;
+        };
+    };
+
+...
Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH 2/3] dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver

Quoted 30 lines · Joshua Yeong

The StarFive Meu Mailbox allow communication between AP and SCP cores through mailbox doorbell.

---
 .../bindings/mailbox/starfive-meu.yaml        | 66 +++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +12 -0
new file mode 100644
index 000000000000..dbc5cfdb90ff
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mailbox/starfive-meu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive MEU Mailbox Controller
+
+maintainers:
+  - Jee Heng Sia <[email protected]>
+  - Joshua Yeong <[email protected]>
+

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 22

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +10 -0
+description: |
+  StarFive's Message-Exchange-Unit (MEU) is a mailbox controller that has 62
+  independent doorbells. Each MEU channel consist of 31 doorbells and consist of
+  a pair of Tx/Rx links that shall communicates with remote processor. The
+  sender set the bit in the SET register to indicate data readiness for the
+  receiver. An interrupt will be raised whenever receiving notification doorbell
+  from remote processor. The receiver will clear the bit in the CLR register
+  upon handling the doorbell notification. The sender should poll the STAT
+  register before starting any transaction to ensure all on-going doorbells are
+  processed.

What is/are the consumer(s) of this mailbox?
Is part of your RPMI implementation?

Cheers,
Conor.

Quoted 47 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +44 -0
+
+properties:
+  compatible:
+    enum:
+      - starfive,jh8100-meu
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: mailbox0
+      - description: mailbox1
+
+  '#mbox-cells':
+    description: represents index of the mailbox/doorbell paired channel
+      channel  0 - 30 for mailbox0 doorbell
+      channel 31 - 61 for mailbox1 doorbell
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - '#mbox-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        meu: mailbox@1f370000 {
+            compatible = "starfive,jh8100-meu";
+            reg = <0x0 0x1f370000 0 0x8000>;
+            interrupts = <170>, /* Mailbox0 */
+                         <171>; /* Mailbox1 */
+            #mbox-cells = <1>;
+        };
+    };
+
+...
Signature · 1 line
2.25.1
#6 lore raw

Re: [PATCH 2/3] dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver

Quoted 44 lines · Conor Dooley
Quoted 30 lines · Joshua Yeong

The StarFive Meu Mailbox allow communication between AP and SCP cores through mailbox doorbell.

---
  .../bindings/mailbox/starfive-meu.yaml        | 66 +++++++++++++++++++
  1 file changed, 66 insertions(+)

create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +12 -0
new file mode 100644
index 000000000000..dbc5cfdb90ff
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mailbox/starfive-meu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive MEU Mailbox Controller
+
+maintainers:
+  - Jee Heng Sia <[email protected]>
+  - Joshua Yeong <[email protected]>
+

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 22

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +10 -0
+description: |
+  StarFive's Message-Exchange-Unit (MEU) is a mailbox controller that has 62
+  independent doorbells. Each MEU channel consist of 31 doorbells and consist of
+  a pair of Tx/Rx links that shall communicates with remote processor. The
+  sender set the bit in the SET register to indicate data readiness for the
+  receiver. An interrupt will be raised whenever receiving notification doorbell
+  from remote processor. The receiver will clear the bit in the CLR register
+  upon handling the doorbell notification. The sender should poll the STAT
+  register before starting any transaction to ensure all on-going doorbells are
+  processed.

What is/are the consumer(s) of this mailbox?
Is part of your RPMI implementation?

Quoted 2 lines

Cheers,
Conor.

Yes, it would be part of StarFive RPMI implementation.

Regards,
Joshua

Quoted 48 lines
Quoted 48 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +44 -0
+
+properties:
+  compatible:
+    enum:
+      - starfive,jh8100-meu
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: mailbox0
+      - description: mailbox1
+
+  '#mbox-cells':
+    description: represents index of the mailbox/doorbell paired channel
+      channel  0 - 30 for mailbox0 doorbell
+      channel 31 - 61 for mailbox1 doorbell
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - '#mbox-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        meu: mailbox@1f370000 {
+            compatible = "starfive,jh8100-meu";
+            reg = <0x0 0x1f370000 0 0x8000>;
+            interrupts = <170>, /* Mailbox0 */
+                         <171>; /* Mailbox1 */
+            #mbox-cells = <1>;
+        };
+    };
+
+...
Signature · 1 line
2.25.1
#7 lore raw

Re: [PATCH 2/3] dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver

Quoted 14 lines · Joshua Yeong
Quoted 13 lines · Conor Dooley
Quoted 12 lines · Joshua Yeong

The StarFive Meu Mailbox allow communication between AP and SCP cores through mailbox doorbell.

---
  .../bindings/mailbox/starfive-meu.yaml        | 66 +++++++++++++++++++
  1 file changed, 66 insertions(+)

create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml

Quoted 10 lines
Quoted 10 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 4

Quoted 10 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +4 -0
new file mode 100644
index 000000000000..dbc5cfdb90ff
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mailbox/starfive-meu.yaml#

Filename should match the compatible.

Quoted 9 lines
Quoted 9 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 13

Quoted 9 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +9 -0
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive MEU Mailbox Controller
+
+maintainers:
+  - Jee Heng Sia <[email protected]>
+  - Joshua Yeong <[email protected]>
+
+description: |

This | is not needed, there's no formatting here to preserve.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +9 -0
+  StarFive's Message-Exchange-Unit (MEU) is a mailbox controller that has 62
+  independent doorbells. Each MEU channel consist of 31 doorbells and consist of
+  a pair of Tx/Rx links that shall communicates with remote processor. The
+  sender set the bit in the SET register to indicate data readiness for the
+  receiver. An interrupt will be raised whenever receiving notification doorbell
+  from remote processor. The receiver will clear the bit in the CLR register
+  upon handling the doorbell notification. The sender should poll the STAT
+  register before starting any transaction to ensure all on-going doorbells are
+  processed.
Quoted 7 lines
Quoted 5 lines

What is/are the consumer(s) of this mailbox?
Is part of your RPMI implementation?

Cheers,
Conor.

Yes, it would be part of StarFive RPMI implementation.

I see. Seems a bit weird to submit the mailbox provider without a consumer, since it'll be dead code until a provider arrives, but that's for the mailbox driver maintainer to decide if he has a problem with.

Quoted 10 lines

Regards,
Joshua

Quoted 6 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 27

Quoted 6 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +5 -0
+
+properties:
+  compatible:
+    enum:
+      - starfive,jh8100-meu

I would just make this const: starfive,jh8100-meu unless you already expect your other SoCs to use a different programming model.

Quoted 12 lines
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +11 -0
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: mailbox0
+      - description: mailbox1
+
+  '#mbox-cells':
+    description: represents index of the mailbox/doorbell paired channel
Quoted 2 lines
Quoted 2 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 40

Quoted 2 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +2 -0
+      channel  0 - 30 for mailbox0 doorbell
+      channel 31 - 61 for mailbox1 doorbell

I'd probably move this channel to doorbell interrupt mapping into the main description and leave this as just

'#mbox-cells':
const: 1

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +9 -0
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - '#mbox-cells'
+
+additionalProperties: false
Quoted 8 lines
Quoted 8 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 57

Quoted 8 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +8 -0
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        meu: mailbox@1f370000 {

Drop the label here, it has no user.

Quoted 4 lines
Quoted 4 lines

Documentation/devicetree/bindings/mailbox/starfive-meu.yaml line 61

Quoted 4 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +4 -0
+            compatible = "starfive,jh8100-meu";
+            reg = <0x0 0x1f370000 0 0x8000>;
+            interrupts = <170>, /* Mailbox0 */
+                         <171>; /* Mailbox1 */

I'd also probably drop the comments here, since the binding enforces this ordering.

Cheers,
Conor.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/mailbox/starfive-meu.yaml new file +5 -0
+            #mbox-cells = <1>;
+        };
+    };
+
+...
Signature · 1 line
2.25.1
#8 lore raw

PATCH 3/3 MAINTAINERS: Add entry for StarFive Mailbox MEU

In reply to Joshua Yeong

Add StarFive Meu Mailbox driver contact point.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 9104430e148e..dc2db4eca31a 100644
@@ -20685,6 +20685,13 @@ F:	Documentation/devicetree/bindings/phy/starfive,jh7110-usb-phy.yaml
 F:	drivers/phy/starfive/phy-jh7110-pcie.c
 F:	drivers/phy/starfive/phy-jh7110-usb.c
 
+STARFIVE MEU DRIVER
+M:	Joshua Yeong <[email protected]>
+M:	Sia Jee Heng <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/mailbox/starfive-meu.yaml
+F:	drivers/mailbox/starfive-meu.c
+
 STATIC BRANCH/CALL
 M:	Peter Zijlstra <[email protected]>
 M:	Josh Poimboeuf <[email protected]>
Signature · 1 line
2.25.1