devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Frank Li <Frank.Li@nxp.com>, Thomas Gleixner <tglx@linutronix.de>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"open list:IRQCHIP DRIVERS" <linux-kernel@vger.kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>
Cc: imx@lists.linux.dev
Subject: Re: [PATCH 1/1] dt-bindings: interrupt-controller: convert fsl,ls-scfg-msi to yaml
Date: Wed, 26 Jun 2024 10:28:26 +0200	[thread overview]
Message-ID: <8c820056-ff20-441a-af7f-17d184c0b396@kernel.org> (raw)
In-Reply-To: <20240625201028.3923845-1-Frank.Li@nxp.com>

On 25/06/2024 22:10, Frank Li wrote:
> Convert device tree binding fsl,ls-scfg-msi to yaml format.
> 
> Additional changes:
> - Include gic.h and use predefined macro in example.
> - Remove label in example.
> - Change node name to interrupt-controller in example.
> - Fix error in example.
> - ls1046a allow 4 irqs, other platform only 1 irq.
> 


> +
> +properties:
> +  compatible:
> +    enum:
> +      - fsl,ls1021a-msi
> +      - fsl,ls1043a-msi
> +      - fsl,ls1046a-msi
> +      - fsl,ls1043a-v1.1-msi
> +      - fsl,ls1012a-msi

Keep the list ordered alpha-numerically.

> +
> +  reg:
> +    maxItems: 1
> +
> +  msi-controller: true

No msi-cells?

> +
> +  interrupts:
> +    minItems: 1
> +    maxItems: 4

Please describe the interrupts (items: - description: ...)

> +
> +required:
> +  - compatible
> +  - reg
> +  - msi-controller
> +  - interrupts
> +
> +additionalProperties: false

This goes after allOf: block.

> +
> +allOf:

No $ref to msi-controller.yaml?

> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - fsl,ls1046a-msi
> +    then:
> +      properties:
> +        interrupts:
> +          minItems: 4
> +    else:
> +      properties:
> +        interrupts:
> +          maxItems: 1
Best regards,
Krzysztof


      reply	other threads:[~2024-06-26  8:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25 20:10 [PATCH 1/1] dt-bindings: interrupt-controller: convert fsl,ls-scfg-msi to yaml Frank Li
2024-06-26  8:28 ` Krzysztof Kozlowski [this message]

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=8c820056-ff20-441a-af7f-17d184c0b396@kernel.org \
    --to=krzk@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=tglx@linutronix.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).