From: <Conor.Dooley@microchip.com>
To: <robh@kernel.org>
Cc: <damien.lemoal@wdc.com>, <jassisinghbrar@gmail.com>,
<aou@eecs.berkeley.edu>, <paul.walmsley@sifive.com>,
<palmer@dabbelt.com>, <devicetree@vger.kernel.org>,
<linux-riscv@lists.infradead.org>, <j.neuschaefer@gmx.net>,
<Lewis.Hanly@microchip.com>, <Cyril.Jean@microchip.com>,
<Daire.McNamara@microchip.com>, <atish.patra@wdc.com>,
<anup.patel@wdc.com>, <david.abdurachmanov@gmail.com>
Subject: Re: [PATCH v4 4/5] dt-bindings: add bindings for polarfire soc system controller
Date: Fri, 12 Mar 2021 14:42:00 +0000 [thread overview]
Message-ID: <b4c99657-e28c-cf4f-31e5-67a83ecbb4d0@microchip.com> (raw)
In-Reply-To: <20210311174305.GA926017@robh.at.kernel.org>
On 11/03/2021 17:43, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Thu, Mar 11, 2021 at 11:34:56AM +0000, conor.dooley@microchip.com wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> Add device tree bindings for the MSS system controller on
>> the Microchip PolarFire SoC.
>>
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
>> ...icrochip,polarfire-soc-sys-controller.yaml | 36 +++++++++++++++++++
>> 1 file changed, 36 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml b/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>> new file mode 100644
>> index 000000000000..222557f96a13
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>> @@ -0,0 +1,36 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: "http://devicetree.org/schemas/soc/microchip/microchip,polarfire-soc-sys-controller.yaml#"
>> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
>> +
>> +title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) system controller
>> +
>> +maintainers:
>> + - Conor Dooley <conor.dooley@microchip.com>
>> +
>> +description: |
>> + The PolarFire SoC system controller can be accessed as a mailbox device.
>> + This document describes the bindings for that device.
>> +
>> +
>> +properties:
>> +
>> + allOf:
>> + - $ref: /schemas/mbox/mbox-consumer.yaml#properties
> This defines a DT property 'allOf'. This would need to be at the top
> level with 'properties' dropped. However, you generally don't want to
> include consumer schemas. You need to define 'mboxes' property here
> because you need to define how many and what they are if more than 1.
In a previous version i was defining it like the below, but you didnt like the redefinition of the common property.
Is there something in between the two that you are looking for?
mboxes:
maxItems: 1
description: |
phandle and index of the mailbox controller device node.
>
> What does 'can be accessed as a mailbox device' mean? Is there another
> way? Is it a mailbox device (provider)?
this is the bindings for the mailbox client, ill rephrase the description and make it clearer.
>
>> +
>> + compatible:
>> + const: microchip,polarfire-soc-sys-controller
>> +
>> +required:
>> + - compatible
>> + - mboxes
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + syscontroller: syscontroller {
>> + compatible = "microchip,polarfire-soc-sys-controller";
>> + mboxes = <&mbox 0>;
>> + };
>> --
>> 2.17.1
>>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: <Conor.Dooley@microchip.com>
To: <robh@kernel.org>
Cc: <damien.lemoal@wdc.com>, <jassisinghbrar@gmail.com>,
<aou@eecs.berkeley.edu>, <paul.walmsley@sifive.com>,
<palmer@dabbelt.com>, <devicetree@vger.kernel.org>,
<linux-riscv@lists.infradead.org>, <j.neuschaefer@gmx.net>,
<Lewis.Hanly@microchip.com>, <Cyril.Jean@microchip.com>,
<Daire.McNamara@microchip.com>, <atish.patra@wdc.com>,
<anup.patel@wdc.com>, <david.abdurachmanov@gmail.com>
Subject: Re: [PATCH v4 4/5] dt-bindings: add bindings for polarfire soc system controller
Date: Fri, 12 Mar 2021 14:42:00 +0000 [thread overview]
Message-ID: <b4c99657-e28c-cf4f-31e5-67a83ecbb4d0@microchip.com> (raw)
In-Reply-To: <20210311174305.GA926017@robh.at.kernel.org>
On 11/03/2021 17:43, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Thu, Mar 11, 2021 at 11:34:56AM +0000, conor.dooley@microchip.com wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> Add device tree bindings for the MSS system controller on
>> the Microchip PolarFire SoC.
>>
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
>> ...icrochip,polarfire-soc-sys-controller.yaml | 36 +++++++++++++++++++
>> 1 file changed, 36 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml b/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>> new file mode 100644
>> index 000000000000..222557f96a13
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
>> @@ -0,0 +1,36 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: "http://devicetree.org/schemas/soc/microchip/microchip,polarfire-soc-sys-controller.yaml#"
>> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
>> +
>> +title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) system controller
>> +
>> +maintainers:
>> + - Conor Dooley <conor.dooley@microchip.com>
>> +
>> +description: |
>> + The PolarFire SoC system controller can be accessed as a mailbox device.
>> + This document describes the bindings for that device.
>> +
>> +
>> +properties:
>> +
>> + allOf:
>> + - $ref: /schemas/mbox/mbox-consumer.yaml#properties
> This defines a DT property 'allOf'. This would need to be at the top
> level with 'properties' dropped. However, you generally don't want to
> include consumer schemas. You need to define 'mboxes' property here
> because you need to define how many and what they are if more than 1.
In a previous version i was defining it like the below, but you didnt like the redefinition of the common property.
Is there something in between the two that you are looking for?
mboxes:
maxItems: 1
description: |
phandle and index of the mailbox controller device node.
>
> What does 'can be accessed as a mailbox device' mean? Is there another
> way? Is it a mailbox device (provider)?
this is the bindings for the mailbox client, ill rephrase the description and make it clearer.
>
>> +
>> + compatible:
>> + const: microchip,polarfire-soc-sys-controller
>> +
>> +required:
>> + - compatible
>> + - mboxes
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + syscontroller: syscontroller {
>> + compatible = "microchip,polarfire-soc-sys-controller";
>> + mboxes = <&mbox 0>;
>> + };
>> --
>> 2.17.1
>>
next prev parent reply other threads:[~2021-03-12 14:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 11:34 [PATCH v4 4/5] dt-bindings: add bindings for polarfire soc system controller conor.dooley
2021-03-11 11:34 ` conor.dooley
2021-03-11 16:41 ` Rob Herring
2021-03-11 16:41 ` Rob Herring
2021-03-11 17:43 ` Rob Herring
2021-03-11 17:43 ` Rob Herring
2021-03-12 14:42 ` Conor.Dooley [this message]
2021-03-12 14:42 ` Conor.Dooley
2021-03-12 15:49 ` Rob Herring
2021-03-12 15:49 ` Rob Herring
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=b4c99657-e28c-cf4f-31e5-67a83ecbb4d0@microchip.com \
--to=conor.dooley@microchip.com \
--cc=Cyril.Jean@microchip.com \
--cc=Daire.McNamara@microchip.com \
--cc=Lewis.Hanly@microchip.com \
--cc=anup.patel@wdc.com \
--cc=aou@eecs.berkeley.edu \
--cc=atish.patra@wdc.com \
--cc=damien.lemoal@wdc.com \
--cc=david.abdurachmanov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=j.neuschaefer@gmx.net \
--cc=jassisinghbrar@gmail.com \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--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 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.