From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Michael Walle <michael@walle.cc>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Li Yang <leoyang.li@nxp.com>, Shawn Guo <shawnguo@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: fsl: convert fsl,layerscape-scfg to YAML
Date: Sat, 23 Apr 2022 12:17:29 +0200 [thread overview]
Message-ID: <fb8c2c57-38bf-065f-a781-beb2fb89353e@linaro.org> (raw)
In-Reply-To: <20220421153115.3496834-1-michael@walle.cc>
On 21/04/2022 17:31, Michael Walle wrote:
> Convert the fsl,layerscape-scfg binding to the new YAML format.
>
> Added, compared to the original binding, is the interrupt-controller
> subnode as used in arch/arm/boot/dts/ls1021a.dtsi as well as the
> litte-endian and big-endian properties.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
> .../arm/freescale/fsl,layerscape-scfg.txt | 19 ------
> .../arm/freescale/fsl,layerscape-scfg.yaml | 58 +++++++++++++++++++
> 2 files changed, 58 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt
> create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.yaml
This should be moved to bindings/soc/freescale. Arm directory is only
for top-level stuff.
(...)
> +description: |
> + SCFG is the supplemental configuration unit, that provides SoC specific
> + configuration and status registers for the chip. Such as getting PEX port
> + status.
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - fsl,ls1012a-scfg
> + - fsl,ls1021a-scfg
> + - fsl,ls1028a-scfg
> + - fsl,ls1043a-scfg
> + - fsl,ls1046a-scfg
> + - const: syscon
This was not present in old bindings, so please mention it in commit msg.
> +
> + reg:
> + maxItems: 1
> +
> + little-endian: true
> + big-endian: true
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 1
> +
> + ranges: true
> +
> +patternProperties:
> + "^interrupt-controller@[a-z0-9]+$":
> + $ref: /schemas/interrupt-controller.yaml#
Do you have a specific FSL schema (bindings) for the child?
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + scfg@1570000 {
Generic node name, so I guess here it would be a "syscon".
> + compatible = "fsl,ls1021a-scfg", "syscon";
> + reg = <0x1570000 0x10000>;
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-04-23 10:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 15:31 [PATCH] dt-bindings: fsl: convert fsl,layerscape-scfg to YAML Michael Walle
2022-04-23 10:17 ` Krzysztof Kozlowski [this message]
2022-04-23 14:05 ` Michael Walle
2022-04-23 19:00 ` Krzysztof Kozlowski
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=fb8c2c57-38bf-065f-a781-beb2fb89353e@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@walle.cc \
--cc=robh+dt@kernel.org \
--cc=shawnguo@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 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).