[PATCH v3 net-next 03/15] dt-bindings: net: add an example for ENETC v4

Wei Fang posted 15 patches 1 month, 3 weeks ago
There is a newer version of this series
[PATCH v3 net-next 03/15] dt-bindings: net: add an example for ENETC v4
Posted by Wei Fang 1 month, 3 weeks ago
Add a DT node example for ENETC v4 device.

Signed-off-by: Wei Fang <wei.fang@nxp.com>

---
v2 changes:
new patch
v3 changes:
1. Rename the subject
2. Remove nxp,netc-timer property and use ptp-timer in the example
---
 .../devicetree/bindings/net/fsl,enetc.yaml        | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/fsl,enetc.yaml b/Documentation/devicetree/bindings/net/fsl,enetc.yaml
index ca70f0050171..a545b54c9e5d 100644
--- a/Documentation/devicetree/bindings/net/fsl,enetc.yaml
+++ b/Documentation/devicetree/bindings/net/fsl,enetc.yaml
@@ -86,3 +86,18 @@ examples:
             };
         };
     };
+  - |
+    pcie {
+      #address-cells = <3>;
+      #size-cells = <2>;
+
+      ethernet@0,0 {
+          compatible = "pci1131,e101";
+          reg = <0x000000 0 0 0 0>;
+          clocks = <&scmi_clk 102>;
+          clock-names = "ref";
+          phy-handle = <&ethphy0>;
+          phy-mode = "rgmii-id";
+          ptp-timer = <&netc_timer>;
+      };
+    };
-- 
2.34.1
Re: [PATCH v3 net-next 03/15] dt-bindings: net: add an example for ENETC v4
Posted by Frank Li 1 month, 3 weeks ago
On Tue, Aug 12, 2025 at 05:46:22PM +0800, Wei Fang wrote:
> Add a DT node example for ENETC v4 device.

Not sure why need add examples here? Any big difference with existed
example?

Frank

>
> Signed-off-by: Wei Fang <wei.fang@nxp.com>
>
> ---
> v2 changes:
> new patch
> v3 changes:
> 1. Rename the subject
> 2. Remove nxp,netc-timer property and use ptp-timer in the example
> ---
>  .../devicetree/bindings/net/fsl,enetc.yaml        | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/fsl,enetc.yaml b/Documentation/devicetree/bindings/net/fsl,enetc.yaml
> index ca70f0050171..a545b54c9e5d 100644
> --- a/Documentation/devicetree/bindings/net/fsl,enetc.yaml
> +++ b/Documentation/devicetree/bindings/net/fsl,enetc.yaml
> @@ -86,3 +86,18 @@ examples:
>              };
>          };
>      };
> +  - |
> +    pcie {
> +      #address-cells = <3>;
> +      #size-cells = <2>;
> +
> +      ethernet@0,0 {
> +          compatible = "pci1131,e101";
> +          reg = <0x000000 0 0 0 0>;
> +          clocks = <&scmi_clk 102>;
> +          clock-names = "ref";
> +          phy-handle = <&ethphy0>;
> +          phy-mode = "rgmii-id";
> +          ptp-timer = <&netc_timer>;
> +      };
> +    };
> --
> 2.34.1
>