From: Conor Dooley <mail@conchuod.ie>
To: Rob Herring <robh@kernel.org>, conor.dooley@microchip.com
Cc: linus.walleij@linaro.org, brgl@bgdev.pl,
jassisinghbrar@gmail.com, thierry.reding@gmail.com,
u.kleine-koenig@pengutronix.de, lee.jones@linaro.org,
a.zummo@towertech.it, alexandre.belloni@bootlin.com,
paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu, geert@linux-m68k.org,
krzysztof.kozlowski@canonical.com, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-rtc@vger.kernel.org, linux-riscv@lists.infradead.org,
bin.meng@windriver.com, heiko@sntech.de,
lewis.hanly@microchip.com, daire.mcnamara@microchip.com,
ivan.griffin@microchip.com, atishp@rivosinc.com,
Palmer Dabbelt <palmer@rivosinc.com>
Subject: Re: [PATCH v6 02/12] dt-bindings: soc/microchip: add services as sub devs of sys ctrlr
Date: Mon, 7 Feb 2022 20:32:44 +0000 [thread overview]
Message-ID: <1cce8adf-1f49-b908-ee6e-f7c2ff6b5218@conchuod.ie> (raw)
In-Reply-To: <YgF8G/Eed03xn9iI@robh.at.kernel.org>
On 07/02/2022 20:07, Rob Herring wrote:
> On Mon, Feb 07, 2022 at 04:26:28PM +0000, conor.dooley@microchip.com wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> Document mpfs-rng and mpfs-generic-service as subdevices of the system
>> controller.
>>
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
>> ---
>> .../microchip,mpfs-sys-controller.yaml | 35 +++++++++++++++++--
>> 1 file changed, 33 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml b/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml
>> index f699772fedf3..b02c8bd72605 100644
>> --- a/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml
>> +++ b/Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml
>> @@ -13,7 +13,6 @@ description: |
>> The PolarFire SoC system controller is communicated with via a mailbox.
>> This document describes the bindings for the client portion of that mailbox.
>>
>> -
>> properties:
>> mboxes:
>> maxItems: 1
>> @@ -21,6 +20,38 @@ properties:
>> compatible:
>> const: microchip,mpfs-sys-controller
>>
>> + rng:
>> + type: object
>> +
>> + description: |
>> + The hardware random number generator on the Polarfire SoC is
>> + accessed via the mailbox interface provided by the system controller
>> +
>> + properties:
>> + compatible:
>> + const: microchip,mpfs-rng
>> +
>> + required:
>> + - compatible
>> +
>> + sysserv:
>> + type: object
>> +
>> + description: |
>> + The PolarFire SoC system controller is communicated with via a mailbox.
>> + This binding represents several of the functions provided by the system
>> + controller which do not belong in a specific subsystem, such as reading
>> + the fpga device certificate, all of which follow the same format:
>> + - a command + optional payload sent to the sys controller
>> + - a status + a payload returned to Linux
>> +
>> + properties:
>> + compatible:
>> + const: microchip,mpfs-generic-service
>> +
>> + required:
>> + - compatible
>> +
>> required:
>> - compatible
>> - mboxes
>> @@ -29,7 +60,7 @@ additionalProperties: false
>>
>> examples:
>> - |
>> - syscontroller: syscontroller {
>> + syscontroller {
>> compatible = "microchip,mpfs-sys-controller";
>> mboxes = <&mbox 0>;
>
> Removing the child nodes in the example doesn't address my comment. You
> still have them in the schema. IOW, this patch should be dropped unless
> you have reasons for child nodes other than I want to partition the OS
> drivers a certain way and creating DT nodes instantiates them for me.
>
Obviously dropping this patch doesn't prevent me from instantiating the
sub devices since it's not going to be done via DT anymore. Would you
rather I replaced this patch with one adding a link to the online
documentation [0] for them in the main description? I had left them in
as I wasn't sure if you wanted the descriptions dropped entirely or not.
And yes, partition of the services is why I had originally gone for
different drivers for the different aspects. Some of the services, like
the RNG or reprogramming the FPGA from Linux have obvious subsystems to
put them under, if it was just the eclectic mix of Microchip FPGA
specific items I'd have not bothered with the partitioning.
Cheers,
Conor.
[0]
https://onlinedocs.microchip.com/pr/GUID-1409CF11-8EF9-4C24-A94E-70979A688632-en-US-1/index.html
>> };
>> --
>> 2.35.1
>>
>>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2022-02-07 20:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-07 16:26 [PATCH v6 00/12] Update the Icicle Kit device tree conor.dooley
2022-02-07 16:26 ` [PATCH v6 01/12] dt-bindings: soc/microchip: update syscontroller compatibles conor.dooley
2022-02-07 16:26 ` [PATCH v6 02/12] dt-bindings: soc/microchip: add services as sub devs of sys ctrlr conor.dooley
2022-02-07 20:07 ` Rob Herring
2022-02-07 20:32 ` Conor Dooley [this message]
2022-02-07 16:26 ` [PATCH v6 03/12] dt-bindings: i2c: add bindings for microchip mpfs i2c conor.dooley
2022-02-08 12:18 ` Wolfram Sang
2022-02-08 12:32 ` Conor Dooley
2022-02-11 17:53 ` Wolfram Sang
2022-02-07 16:26 ` [PATCH v6 04/12] dt-bindings: rtc: add bindings for microchip mpfs rtc conor.dooley
2022-02-07 20:08 ` Rob Herring
2022-02-07 16:26 ` [PATCH v6 05/12] dt-bindings: gpio: add bindings for microchip mpfs gpio conor.dooley
2022-02-08 11:09 ` Bartosz Golaszewski
2022-02-07 16:26 ` [PATCH v6 06/12] dt-bindings: pwm: add microchip corepwm binding conor.dooley
2022-02-07 16:26 ` [PATCH v6 07/12] riscv: dts: microchip: use clk defines for icicle kit conor.dooley
2022-02-07 16:26 ` [PATCH v6 08/12] riscv: dts: microchip: add fpga fabric section to " conor.dooley
2022-02-07 16:26 ` [PATCH v6 09/12] riscv: dts: microchip: refactor icicle kit device tree conor.dooley
2022-02-07 16:26 ` [PATCH v6 10/12] riscv: dts: microchip: update peripherals in " conor.dooley
2022-02-07 16:26 ` [PATCH v6 11/12] riscv: dts: microchip: add new peripherals to " conor.dooley
2022-02-07 16:26 ` [PATCH v6 12/12] MAINTAINERS: update riscv/microchip entry conor.dooley
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=1cce8adf-1f49-b908-ee6e-f7c2ff6b5218@conchuod.ie \
--to=mail@conchuod.ie \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=aou@eecs.berkeley.edu \
--cc=atishp@rivosinc.com \
--cc=bin.meng@windriver.com \
--cc=brgl@bgdev.pl \
--cc=conor.dooley@microchip.com \
--cc=daire.mcnamara@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=heiko@sntech.de \
--cc=ivan.griffin@microchip.com \
--cc=jassisinghbrar@gmail.com \
--cc=krzysztof.kozlowski@canonical.com \
--cc=lee.jones@linaro.org \
--cc=lewis.hanly@microchip.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-rtc@vger.kernel.org \
--cc=palmer@dabbelt.com \
--cc=palmer@rivosinc.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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).