All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
@ 2022-05-25 20:57 Rob Herring
  2022-05-26  0:32 ` Vladimir Oltean
  2022-05-26 14:31 ` Linus Walleij
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Herring @ 2022-05-25 20:57 UTC (permalink / raw)
  To: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut
  Cc: Woojung Huh, netdev, devicetree, linux-kernel

SPI peripheral device bindings need to reference spi-peripheral-props.yaml
in order to use various SPI controller specific properties. Otherwise,
the unevaluatedProperties check will reject any controller specific
properties.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 +
 Documentation/devicetree/bindings/net/dsa/realtek.yaml       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
index 184152087b60..6bbd8145b6c1 100644
--- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
@@ -12,6 +12,7 @@ maintainers:
 
 allOf:
   - $ref: dsa.yaml#
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
 
 properties:
   # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
index 99ee4b5b9346..4f99aff029dc 100644
--- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
@@ -108,6 +108,7 @@ if:
     - reg
 
 then:
+  $ref: /schemas/spi/spi-peripheral-props.yaml#
   not:
     required:
       - mdc-gpios
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-25 20:57 [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references Rob Herring
@ 2022-05-26  0:32 ` Vladimir Oltean
  2022-05-26 22:04   ` Rob Herring
  2022-05-26 14:31 ` Linus Walleij
  1 sibling, 1 reply; 7+ messages in thread
From: Vladimir Oltean @ 2022-05-26  0:32 UTC (permalink / raw)
  To: Rob Herring
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Wed, May 25, 2022 at 03:57:50PM -0500, Rob Herring wrote:
> SPI peripheral device bindings need to reference spi-peripheral-props.yaml
> in order to use various SPI controller specific properties. Otherwise,
> the unevaluatedProperties check will reject any controller specific
> properties.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 +
>  Documentation/devicetree/bindings/net/dsa/realtek.yaml       | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> index 184152087b60..6bbd8145b6c1 100644
> --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> @@ -12,6 +12,7 @@ maintainers:
>  
>  allOf:
>    - $ref: dsa.yaml#
> +  - $ref: /schemas/spi/spi-peripheral-props.yaml#
>  
>  properties:
>    # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
> diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> index 99ee4b5b9346..4f99aff029dc 100644
> --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> @@ -108,6 +108,7 @@ if:
>      - reg
>  
>  then:
> +  $ref: /schemas/spi/spi-peripheral-props.yaml#
>    not:
>      required:
>        - mdc-gpios
> -- 
> 2.34.1
> 

Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
	brcm,bcm5325
	brcm,bcm5365
	brcm,bcm5395
	brcm,bcm5397
	brcm,bcm5398
	brcm,bcm53115
	brcm,bcm53125
	brcm,bcm53128

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-25 20:57 [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references Rob Herring
  2022-05-26  0:32 ` Vladimir Oltean
@ 2022-05-26 14:31 ` Linus Walleij
  1 sibling, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2022-05-26 14:31 UTC (permalink / raw)
  To: Rob Herring
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Krzysztof Kozlowski,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Wed, May 25, 2022 at 10:58 PM Rob Herring <robh@kernel.org> wrote:

> SPI peripheral device bindings need to reference spi-peripheral-props.yaml
> in order to use various SPI controller specific properties. Otherwise,
> the unevaluatedProperties check will reject any controller specific
> properties.
>
> Signed-off-by: Rob Herring <robh@kernel.org>

Very nice!
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-26  0:32 ` Vladimir Oltean
@ 2022-05-26 22:04   ` Rob Herring
  2022-05-26 23:18     ` Vladimir Oltean
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2022-05-26 22:04 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Thu, May 26, 2022 at 03:32:16AM +0300, Vladimir Oltean wrote:
> On Wed, May 25, 2022 at 03:57:50PM -0500, Rob Herring wrote:
> > SPI peripheral device bindings need to reference spi-peripheral-props.yaml
> > in order to use various SPI controller specific properties. Otherwise,
> > the unevaluatedProperties check will reject any controller specific
> > properties.
> > 
> > Signed-off-by: Rob Herring <robh@kernel.org>
> > ---
> >  Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 +
> >  Documentation/devicetree/bindings/net/dsa/realtek.yaml       | 1 +
> >  2 files changed, 2 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> > index 184152087b60..6bbd8145b6c1 100644
> > --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> > +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> > @@ -12,6 +12,7 @@ maintainers:
> >  
> >  allOf:
> >    - $ref: dsa.yaml#
> > +  - $ref: /schemas/spi/spi-peripheral-props.yaml#
> >  
> >  properties:
> >    # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
> > diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> > index 99ee4b5b9346..4f99aff029dc 100644
> > --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> > +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
> > @@ -108,6 +108,7 @@ if:
> >      - reg
> >  
> >  then:
> > +  $ref: /schemas/spi/spi-peripheral-props.yaml#
> >    not:
> >      required:
> >        - mdc-gpios
> > -- 
> > 2.34.1
> > 
> 
> Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
> 	brcm,bcm5325
> 	brcm,bcm5365
> 	brcm,bcm5395
> 	brcm,bcm5397
> 	brcm,bcm5398
> 	brcm,bcm53115
> 	brcm,bcm53125
> 	brcm,bcm53128

Okay. Looks like you missed bcm5389?

Rob

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-26 22:04   ` Rob Herring
@ 2022-05-26 23:18     ` Vladimir Oltean
  2022-05-31 15:01       ` Rob Herring
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Oltean @ 2022-05-26 23:18 UTC (permalink / raw)
  To: Rob Herring
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Thu, May 26, 2022 at 05:04:50PM -0500, Rob Herring wrote:
> On Thu, May 26, 2022 at 03:32:16AM +0300, Vladimir Oltean wrote:
> > Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
> > 	brcm,bcm5325
> > 	brcm,bcm5365
> > 	brcm,bcm5395
> > 	brcm,bcm5397
> > 	brcm,bcm5398
> > 	brcm,bcm53115
> > 	brcm,bcm53125
> > 	brcm,bcm53128
> 
> Okay. Looks like you missed bcm5389?

I went to the end of drivers/net/dsa/b53/b53_spi.c and copied the
compatible strings. "brcm,bcm5389" is marked in b53_mdio.c, so I would
guess not.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-26 23:18     ` Vladimir Oltean
@ 2022-05-31 15:01       ` Rob Herring
  2022-05-31 21:41         ` Vladimir Oltean
  0 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2022-05-31 15:01 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Fri, May 27, 2022 at 02:18:59AM +0300, Vladimir Oltean wrote:
> On Thu, May 26, 2022 at 05:04:50PM -0500, Rob Herring wrote:
> > On Thu, May 26, 2022 at 03:32:16AM +0300, Vladimir Oltean wrote:
> > > Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
> > > 	brcm,bcm5325
> > > 	brcm,bcm5365
> > > 	brcm,bcm5395
> > > 	brcm,bcm5397
> > > 	brcm,bcm5398
> > > 	brcm,bcm53115
> > > 	brcm,bcm53125
> > > 	brcm,bcm53128
> > 
> > Okay. Looks like you missed bcm5389?
> 
> I went to the end of drivers/net/dsa/b53/b53_spi.c and copied the
> compatible strings. "brcm,bcm5389" is marked in b53_mdio.c, so I would
> guess not.

The datasheet I found says it is SPI interface, but I guess someone that 
cares about this h/w can sort that out if needed.

Rob


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
  2022-05-31 15:01       ` Rob Herring
@ 2022-05-31 21:41         ` Vladimir Oltean
  0 siblings, 0 replies; 7+ messages in thread
From: Vladimir Oltean @ 2022-05-31 21:41 UTC (permalink / raw)
  To: Rob Herring
  Cc: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vivien Didelot,
	Florian Fainelli, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Krzysztof Kozlowski, Linus Walleij,
	Alvin Šipraga, Marek Vasut, netdev, devicetree,
	linux-kernel

On Tue, May 31, 2022 at 10:01:01AM -0500, Rob Herring wrote:
> On Fri, May 27, 2022 at 02:18:59AM +0300, Vladimir Oltean wrote:
> > On Thu, May 26, 2022 at 05:04:50PM -0500, Rob Herring wrote:
> > > On Thu, May 26, 2022 at 03:32:16AM +0300, Vladimir Oltean wrote:
> > > > Also needed by nxp,sja1105.yaml and the following from brcm,b53.yaml:
> > > > 	brcm,bcm5325
> > > > 	brcm,bcm5365
> > > > 	brcm,bcm5395
> > > > 	brcm,bcm5397
> > > > 	brcm,bcm5398
> > > > 	brcm,bcm53115
> > > > 	brcm,bcm53125
> > > > 	brcm,bcm53128
> > > 
> > > Okay. Looks like you missed bcm5389?
> > 
> > I went to the end of drivers/net/dsa/b53/b53_spi.c and copied the
> > compatible strings. "brcm,bcm5389" is marked in b53_mdio.c, so I would
> > guess not.
> 
> The datasheet I found says it is SPI interface, but I guess someone that 
> cares about this h/w can sort that out if needed.
> 
> Rob

If someone adds a new compatible string for a SPI controlled DSA switch,
I will remember to remind him to update the dt-bindings doc as well.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-31 21:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 20:57 [PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references Rob Herring
2022-05-26  0:32 ` Vladimir Oltean
2022-05-26 22:04   ` Rob Herring
2022-05-26 23:18     ` Vladimir Oltean
2022-05-31 15:01       ` Rob Herring
2022-05-31 21:41         ` Vladimir Oltean
2022-05-26 14:31 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.