[PATCH] dt-bindings: net: nxp,dwmac-imx: allow nvmem cells property

Peng Fan (OSS) posted 1 patch 1 year, 9 months ago
Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 4 ++++
1 file changed, 4 insertions(+)
[PATCH] dt-bindings: net: nxp,dwmac-imx: allow nvmem cells property
Posted by Peng Fan (OSS) 1 year, 9 months ago
From: Peng Fan <peng.fan@nxp.com>

Allow nvmem-cells and nvmem-cell-names to get mac_address from onchip
fuse.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
index 4c01cae7c93a..87bc4416eadf 100644
--- a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
+++ b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
@@ -66,6 +66,10 @@ properties:
       Should be phandle/offset pair. The phandle to the syscon node which
       encompases the GPR register, and the offset of the GPR register.
 
+  nvmem-cells: true
+
+  nvmem-cell-names: true
+
   snps,rmii_refclk_ext:
     $ref: /schemas/types.yaml#/definitions/flag
     description:
-- 
2.37.1
Re: [PATCH] dt-bindings: net: nxp,dwmac-imx: allow nvmem cells property
Posted by Conor Dooley 1 year, 9 months ago
On Mon, Apr 15, 2024 at 06:36:21PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Allow nvmem-cells and nvmem-cell-names to get mac_address from onchip
> fuse.

Is this valid for all 3 devices in this binding?

> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> index 4c01cae7c93a..87bc4416eadf 100644
> --- a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> +++ b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> @@ -66,6 +66,10 @@ properties:
>        Should be phandle/offset pair. The phandle to the syscon node which
>        encompases the GPR register, and the offset of the GPR register.
>  
> +  nvmem-cells: true
> +
> +  nvmem-cell-names: true
> +
>    snps,rmii_refclk_ext:
>      $ref: /schemas/types.yaml#/definitions/flag
>      description:
> -- 
> 2.37.1
> 
Re: [PATCH] dt-bindings: net: nxp,dwmac-imx: allow nvmem cells property
Posted by Frank Li 1 year, 9 months ago
On Mon, Apr 15, 2024 at 06:36:21PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Allow nvmem-cells and nvmem-cell-names to get mac_address from onchip
> fuse.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> ---
>  Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> index 4c01cae7c93a..87bc4416eadf 100644
> --- a/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> +++ b/Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
> @@ -66,6 +66,10 @@ properties:
>        Should be phandle/offset pair. The phandle to the syscon node which
>        encompases the GPR register, and the offset of the GPR register.
>  
> +  nvmem-cells: true
> +
> +  nvmem-cell-names: true
> +
>    snps,rmii_refclk_ext:
>      $ref: /schemas/types.yaml#/definitions/flag
>      description:
> -- 
> 2.37.1
>