devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: Add vendor prefix for Espressif
@ 2019-05-23  8:14 Maxime Ripard
  2019-05-23 14:57 ` Rob Herring
  2019-05-24 20:51 ` Rob Herring
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Ripard @ 2019-05-23  8:14 UTC (permalink / raw)
  To: Mark Rutland, Rob Herring, Frank Rowand; +Cc: devicetree, Maxime Ripard

Add Espressif Systems DT vendor prefix. That prefix has been used for quite
some time for WiFi chips, but has never been documented.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index c0881d51aa91..19cc3240a445 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -277,6 +277,8 @@ patternProperties:
     description: Ecole Polytechnique Fédérale de Lausanne
   "^epson,.*":
     description: Seiko Epson Corp.
+  "^esp,.*":
+    description: Espressif Systems Co. Ltd.
   "^est,.*":
     description: ESTeem Wireless Modems
   "^ettus,.*":
-- 
2.21.0

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

* Re: [PATCH] dt-bindings: Add vendor prefix for Espressif
  2019-05-23  8:14 [PATCH] dt-bindings: Add vendor prefix for Espressif Maxime Ripard
@ 2019-05-23 14:57 ` Rob Herring
  2019-05-24 14:14   ` Maxime Ripard
  2019-05-24 20:51 ` Rob Herring
  1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2019-05-23 14:57 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: Mark Rutland, Frank Rowand, devicetree

On Thu, May 23, 2019 at 3:14 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
>
> Add Espressif Systems DT vendor prefix. That prefix has been used for quite
> some time for WiFi chips, but has never been documented.

Just 1 of about 100...

Here's a script to generate a schema for compatible string checks. Not
yet sure what to do with it or how to integrate it in.

#!/bin/sh

vnd_file="Documentation/devicetree/bindings/vendor-prefixes.yaml"

vendor_pattern="$(sed -n -e 's/.*\^\([-a-zA-Z0-9]*\),.*/
\1\|\\/p' ${vnd_file})"

cat << EOF
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
\$id: http://devicetree.org/schemas/compatible-vendor-prefixes.yaml#
\$schema: http://devicetree.org/meta-schemas/base.yaml#

title: Devicetree Vendor Prefix Registry

maintainers:
  - Rob Herring <robh@kernel.org>

select: true

properties:
  compatible:
    maxItems: 32
    items:
      if:
        allOf:
          - pattern: ","
          - not: { pattern: "^usb[0-9a-f]+," }
      then:
        pattern: "^(\\
${vendor_pattern}
          ),"

EOF

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

* Re: [PATCH] dt-bindings: Add vendor prefix for Espressif
  2019-05-23 14:57 ` Rob Herring
@ 2019-05-24 14:14   ` Maxime Ripard
  0 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2019-05-24 14:14 UTC (permalink / raw)
  To: Rob Herring; +Cc: Mark Rutland, Frank Rowand, devicetree

[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]

Hi Rob,

On Thu, May 23, 2019 at 09:57:22AM -0500, Rob Herring wrote:
> On Thu, May 23, 2019 at 3:14 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
> >
> > Add Espressif Systems DT vendor prefix. That prefix has been used for quite
> > some time for WiFi chips, but has never been documented.
>
> Just 1 of about 100...

Indeed, it turns out that we have much more undocumented prefixes in
the board compatibles....

How do you want to handle this, should we work gradually to support
all the prefixes, or should I send one patch fixing all of the
warnings on my DTs at once?

> Here's a script to generate a schema for compatible string checks. Not
> yet sure what to do with it or how to integrate it in.
>
> #!/bin/sh
>
> vnd_file="Documentation/devicetree/bindings/vendor-prefixes.yaml"
>
> vendor_pattern="$(sed -n -e 's/.*\^\([-a-zA-Z0-9]*\),.*/
> \1\|\\/p' ${vnd_file})"
>
> cat << EOF
> # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> %YAML 1.2
> ---
> \$id: http://devicetree.org/schemas/compatible-vendor-prefixes.yaml#
> \$schema: http://devicetree.org/meta-schemas/base.yaml#
>
> title: Devicetree Vendor Prefix Registry
>
> maintainers:
>   - Rob Herring <robh@kernel.org>
>
> select: true
>
> properties:
>   compatible:
>     maxItems: 32
>     items:
>       if:
>         allOf:
>           - pattern: ","
>           - not: { pattern: "^usb[0-9a-f]+," }
>       then:
>         pattern: "^(\\
> ${vendor_pattern}
>           ),"
>
> EOF

It turned out pretty useful, but yeah, it's not super easy to merge
anywhere in the kernel tree. Maybe you could put it in the tools
directory, with a wrapper that would run make dtbs_check, plus a nice
grep to only report the vendors missing it could find for the current
configuration?

Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH] dt-bindings: Add vendor prefix for Espressif
  2019-05-23  8:14 [PATCH] dt-bindings: Add vendor prefix for Espressif Maxime Ripard
  2019-05-23 14:57 ` Rob Herring
@ 2019-05-24 20:51 ` Rob Herring
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2019-05-24 20:51 UTC (permalink / raw)
  To: Maxime Ripard; +Cc: Mark Rutland, Frank Rowand, devicetree

On Thu, 23 May 2019 10:14:15 +0200, Maxime Ripard wrote:
> Add Espressif Systems DT vendor prefix. That prefix has been used for quite
> some time for WiFi chips, but has never been documented.
> 
> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied, thanks.

Rob

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

end of thread, other threads:[~2019-05-24 20:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23  8:14 [PATCH] dt-bindings: Add vendor prefix for Espressif Maxime Ripard
2019-05-23 14:57 ` Rob Herring
2019-05-24 14:14   ` Maxime Ripard
2019-05-24 20:51 ` Rob Herring

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).