diff mbox series

dt-bindings: nvmem: use base meta-schema for consumer schema

Message ID 20210316195111.3531755-1-robh@kernel.org
State Accepted
Commit 962e62128feb60df633de93f58e84c9390da060d
Headers show
Series dt-bindings: nvmem: use base meta-schema for consumer schema | expand

Commit Message

Rob Herring March 16, 2021, 7:51 p.m. UTC
Common consumer schemas need to use the base.yaml meta-schema because
they need to define different constraints (e.g. the type) from what
users of the common schema need to define (e.g. how many entries).

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>

---
 Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.27.0

Comments

Srinivas Kandagatla March 17, 2021, 8:54 a.m. UTC | #1
On 16/03/2021 19:51, Rob Herring wrote:
> Common consumer schemas need to use the base.yaml meta-schema because

> they need to define different constraints (e.g. the type) from what

> users of the common schema need to define (e.g. how many entries).

> 

> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> Signed-off-by: Rob Herring <robh@kernel.org>

> ---


Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>


--srini


>   Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml b/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml

> index 828e4a1ece41..b1da238c8bcb 100644

> --- a/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml

> +++ b/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml

> @@ -2,7 +2,7 @@

>   %YAML 1.2

>   ---

>   $id: http://devicetree.org/schemas/nvmem/nvmem-consumer.yaml#

> -$schema: http://devicetree.org/meta-schemas/core.yaml#

> +$schema: http://devicetree.org/meta-schemas/base.yaml#

>   

>   title: NVMEM (Non Volatile Memory) Consumer Device Tree Bindings

>   

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml b/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml
index 828e4a1ece41..b1da238c8bcb 100644
--- a/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml
+++ b/Documentation/devicetree/bindings/nvmem/nvmem-consumer.yaml
@@ -2,7 +2,7 @@ 
 %YAML 1.2
 ---
 $id: http://devicetree.org/schemas/nvmem/nvmem-consumer.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
+$schema: http://devicetree.org/meta-schemas/base.yaml#
 
 title: NVMEM (Non Volatile Memory) Consumer Device Tree Bindings