[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52fb81e2-0d9b-600d-42af-1405fdd6509b@linaro.org>
Date: Mon, 6 Mar 2023 09:35:18 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Brad Larson <blarson@....com>, linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org,
linux-spi@...r.kernel.org, adrian.hunter@...el.com,
alcooperx@...il.com, andy.shevchenko@...il.com, arnd@...db.de,
brendan.higgins@...ux.dev, briannorris@...omium.org,
brijeshkumar.singh@....com, catalin.marinas@....com,
davidgow@...gle.com, gsomlo@...il.com, gerg@...ux-m68k.org,
krzk@...nel.org, krzysztof.kozlowski+dt@...aro.org, lee@...nel.org,
lee.jones@...aro.org, broonie@...nel.org,
yamada.masahiro@...ionext.com, p.zabel@...gutronix.de,
piotrs@...ence.com, p.yadav@...com, rdunlap@...radead.org,
robh+dt@...nel.org, samuel@...lland.org, fancer.lancer@...il.com,
skhan@...uxfoundation.org, suravee.suthikulpanit@....com,
thomas.lendacky@....com, tonyhuang.sunplus@...il.com,
ulf.hansson@...aro.org, vaishnav.a@...com, will@...nel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH v10 05/15] dt-bindings: soc: amd: amd,pensando-elbasr: Add
AMD Pensando SoC System Controller
On 06/03/2023 05:07, Brad Larson wrote:
> Support the AMD Pensando SoC Controller which is a SPI connected device
> providing a miscellaneous set of essential board control/status registers.
> This device is present in all Pensando SoC based designs.
>
> Signed-off-by: Brad Larson <blarson@....com>
> ---
>
> v10 changes:
> - Property renamed to amd,pensando-ctrl
> - Driver is renamed and moved to soc/drivers/amd affecting binding
> - Delete cs property, driver handles device node creation from parent num-cs
> fixing schema reg error in a different way
>
> v9 changes:
> - Instead of four nodes, one per chip-select, a single
> node is used with reset-cells in the parent.
> - No MFD API is used anymore in the driver so it made
> sense to move this to drivers/spi.
> - This driver is common for all Pensando SoC based designs
> so changed the name to pensando-sr.c to not make it Elba
> SoC specific.
> - Added property cs for the chip-select number which is used
> by the driver to create /dev/pensr0.<cs>
>
> ---
> .../bindings/soc/amd/amd,pensando-ctrl.yaml | 60 +++++++++++++++++++
> 1 file changed, 60 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/soc/amd/amd,pensando-ctrl.yaml
>
> diff --git a/Documentation/devicetree/bindings/soc/amd/amd,pensando-ctrl.yaml b/Documentation/devicetree/bindings/soc/amd/amd,pensando-ctrl.yaml
> new file mode 100644
> index 000000000000..36694077b2e6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/amd/amd,pensando-ctrl.yaml
Your subject suggests this is pensando-elbasr but you write everywhere
pensando-ctrl. Confusing. Pick one.
> @@ -0,0 +1,60 @@
> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/amd/amd,pensando-ctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: AMD Pensando SoC Controller
> +
> +description: |
No need for |
> + The AMD Pensando SoC Controller is a SPI connected device with essential
> + control/status registers accessed on chip select 0. This device is present
> + in all Pensando SoC based designs.
> +
> +maintainers:
> + - Brad Larson <blarson@....com>
> +
> +properties:
> + compatible:
> + contains:
Drop 'contains'. That's not a correct syntax here.
> + enum:
> + - amd,pensando-ctrl
> +
> + reg:
> + minItems: 1
maxItems instead
> +
> + '#reset-cells':
> + const: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + spi-max-frequency: true
Drop, not needed.
> +
> +required:
> + - compatible
> + - spi-max-frequency
> + - '#reset-cells'
allOf with ref to spi-peripheral-props.yaml
> +
> +unevaluatedProperties: false
This is not correct without allOf (should be additionalProperties if you
are not using allOf), which leads you to the missing allOf.
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + num-cs = <4>;
Drop num-cs, not important in this context.
> +
> + system-controller@0 {
> + compatible = "amd,pensando-ctrl";
> + reg = <0>;
> + spi-max-frequency = <12000000>;
> + interrupt-parent = <&porta>;
> + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
> + #reset-cells = <1>;
> + };
> + };
> +
> +...
Best regards,
Krzysztof
Powered by blists - more mailing lists