diff mbox series

[1/1] dt-bindings: nvmem: sfp: add child node unique-id

Message ID 20240621165637.2283864-1-Frank.Li@nxp.com (mailing list archive)
State Superseded
Headers show
Series [1/1] dt-bindings: nvmem: sfp: add child node unique-id | expand

Commit Message

Frank Li June 21, 2024, 4:56 p.m. UTC
Add child node unique-id to fix below CHECK_DTBS warning.
efuse@1e80000: Unevaluated properties are not allowed ('unique-id@1c' was unexpected)

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../bindings/nvmem/fsl,layerscape-sfp.yaml      | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Conor Dooley June 22, 2024, 11:48 a.m. UTC | #1
On Fri, Jun 21, 2024 at 12:56:37PM -0400, Frank Li wrote:
> Add child node unique-id to fix below CHECK_DTBS warning.
> efuse@1e80000: Unevaluated properties are not allowed ('unique-id@1c' was unexpected)

That's not sufficient justification. Why is this even needed? What can't
it be determined from a compatible etc? Just because it slipped into a
dts doesn't mean you get to avoid the usual requirements for justifying
new properties.

Thanks,
Conor.

> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  .../bindings/nvmem/fsl,layerscape-sfp.yaml      | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
> index 70fb2ad251037..8c0bdaab711a7 100644
> --- a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
> @@ -42,6 +42,23 @@ properties:
>        The regulator for the TA_PROG_SFP pin. It will be enabled for programming
>        and disabled for reading.
>  
> +patternProperties:
> +  '^unique-id@[0-9a-f]*$':
> +    type: object
> +    description:
> +      Chip unique id.
> +
> +    properties:
> +      reg:
> +        description:
> +          Byte offset where the unique id is stored
> +        maxItems: 1
> +
> +    required:
> +      - reg
> +
> +    additionalProperties: false
> +
>  required:
>    - compatible
>    - reg
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
index 70fb2ad251037..8c0bdaab711a7 100644
--- a/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
+++ b/Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml
@@ -42,6 +42,23 @@  properties:
       The regulator for the TA_PROG_SFP pin. It will be enabled for programming
       and disabled for reading.
 
+patternProperties:
+  '^unique-id@[0-9a-f]*$':
+    type: object
+    description:
+      Chip unique id.
+
+    properties:
+      reg:
+        description:
+          Byte offset where the unique id is stored
+        maxItems: 1
+
+    required:
+      - reg
+
+    additionalProperties: false
+
 required:
   - compatible
   - reg