Devicetree
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Minghuan Lian <minghuan.lian@nxp.com>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	 andrew+netdev@lunn.ch, olteanv@gmail.com, davem@davemloft.net,
	edumazet@google.com,  kuba@kernel.org, pabeni@redhat.com,
	robh@kernel.org, krzk+dt@kernel.org,  conor+dt@kernel.org
Subject: Re: [PATCH net-next 1/4] dt-bindings: net: dsa: add NXP i.MX RT1180 NETC switch
Date: Fri, 15 May 2026 09:29:18 +0200	[thread overview]
Message-ID: <20260515-encouraging-hopeful-spider-aee4ae@quoll> (raw)
In-Reply-To: <20260509090632.2959553-2-minghuan.lian@nxp.com>

On Sat, May 09, 2026 at 06:06:29PM +0900, Minghuan Lian wrote:
> +allOf:
> +  # Base: always a DSA switch

I have no clue what you want to say here.

> +  - $ref: /schemas/net/dsa/dsa.yaml#
> +
> +  # If the SPI-specific compatible is used, allow SPI properties and require reg.
> +  - if:
> +      properties:
> +        compatible:
> +          type: array

??? What? From where did you get such syntax?

> +          contains:
> +            const: nxp,imxrt1180-netc-switch-spi
> +    then:
> +      $ref: /schemas/spi/spi-peripheral-props.yaml#
> +      required:
> +        - reg
> +
> +properties:
> +  compatible:
> +    oneOf:
> +      # SPI-attached switch representation (current integration)
> +      - items:
> +          - const: nxp,imxrt1180-netc-switch-spi
> +          - const: nxp,imxrt1180-netc-switch

Drop both. You have one compatible.

Please do not send us AI slop.

> +      # Transport-agnostic representation (future integration)

Drop comment. Get the binding reviewed internally in NXP.

> +      - const: nxp,imxrt1180-netc-switch
> +
> +  reg:
> +    description: |
> +      SPI chip select number (only for SPI-attached deployments).

Drop description.

> +    maxItems: 1
> +
> +required:
> +  - compatible

Best regards,
Krzysztof


  reply	other threads:[~2026-05-15  7:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-09  9:06 [PATCH net-next 0/4] net: dsa: Add NXP i.MX RT1180 NETC switch support Minghuan Lian
2026-05-09  9:06 ` [PATCH net-next 1/4] dt-bindings: net: dsa: add NXP i.MX RT1180 NETC switch Minghuan Lian
2026-05-15  7:29   ` Krzysztof Kozlowski [this message]
2026-05-09  9:06 ` [PATCH net-next 2/4] net: dsa: tag_hms: Add HMS tag protocol Minghuan Lian
2026-05-10  9:10   ` sashiko-bot
2026-05-09  9:06 ` [PATCH net-next 3/4] net: dsa: hms: Add NXP i.MX RT1180 NETC switch driver Minghuan Lian
2026-05-10  9:10   ` sashiko-bot
2026-05-09  9:06 ` [PATCH net-next 4/4] net: dsa: hms: Add ethtool statistics support Minghuan Lian
2026-05-10  9:10   ` sashiko-bot
2026-05-13  1:39 ` [PATCH net-next 0/4] net: dsa: Add NXP i.MX RT1180 NETC switch support Jakub Kicinski

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=20260515-encouraging-hopeful-spider-aee4ae@quoll \
    --to=krzk@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=minghuan.lian@nxp.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox