Skip to contentSkip to conversation

dt-bindings: net: convert enetc to yaml

PATCH Applied Frank Li 3 participants 3 messages Jul 9, 2024 – Jul 11, 2024

Subsystems (5)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v3 1/1 dt-bindings: net: convert enetc to yaml

Convert enetc device binding file to yaml. Split to 3 yaml files, 'fsl,enetc.yaml', 'fsl,enetc-mdio.yaml', 'fsl,enetc-ierb.yaml'.

Additional Changes:
- Add pci<vendor id>,<production id> in compatible string.
- Ref to common ethernet-controller.yaml and mdio.yaml.
- Add Wei fang, Vladimir and Claudiu as maintainer.
- Update ENETC description.
- Remove fixed-link part.

---
Change from v2 to v3
- use endpoint-config as node name for fsl,enetc-ierb.yaml,
- wrap to 80 in fsl,enetc-ierb.yaml.
- fix unit address don't match
- Remove reg/compatible string for pci
- Add pci-device.yaml, which need absolute path.
- Use example which have mdio sub node.

Change from v1 to v2
- renamee file as fsl,enetc-mdio.yaml, fsl,enetc-ierb.yaml, fsl,enetc.yaml
- example include pcie node

---
 .../bindings/net/fsl,enetc-ierb.yaml          |  38 ++++++
 .../bindings/net/fsl,enetc-mdio.yaml          |  57 +++++++++
 .../devicetree/bindings/net/fsl,enetc.yaml    |  66 ++++++++++
 .../devicetree/bindings/net/fsl-enetc.txt     | 119 ------------------
 4 files changed, 161 insertions(+), 119 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc-ierb.yaml
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc-mdio.yaml
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/fsl-enetc.txt
Documentation/devicetree/bindings/net/fsl,enetc-ierb.yaml new file +38 -0
new file mode 100644
index 0000000000000..c8a654310b905
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/fsl,enetc-ierb.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Integrated Endpoint Register Block
+
+description:
+  The fsl_enetc driver can probe on the Integrated Endpoint Register Block,
+  which preconfigures the FIFO limits for the ENETC ports.
+
+maintainers:
+  - Frank Li <[email protected]>
+  - Vladimir Oltean <[email protected]>
+  - Wei Fang <[email protected]>
+  - Claudiu Manoil <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - fsl,ls1028a-enetc-ierb
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    endpoint-config@f0800000 {
+        compatible = "fsl,ls1028a-enetc-ierb";
+        reg = <0xf0800000 0x10000>;
+    };
Documentation/devicetree/bindings/net/fsl,enetc-mdio.yaml new file +57 -0

57 lines not on this page · raw message

Documentation/devicetree/bindings/net/fsl,enetc.yaml new file +66 -0

66 lines not on this page · raw message

Documentation/devicetree/bindings/net/fsl-enetc.txt deleted +0 -119

119 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 1/1
#1 lore raw
Quoted 24 lines · Frank Li

Convert enetc device binding file to yaml. Split to 3 yaml files, 'fsl,enetc.yaml', 'fsl,enetc-mdio.yaml', 'fsl,enetc-ierb.yaml'.

Additional Changes:
- Add pci<vendor id>,<production id> in compatible string.
- Ref to common ethernet-controller.yaml and mdio.yaml.
- Add Wei fang, Vladimir and Claudiu as maintainer.
- Update ENETC description.
- Remove fixed-link part.

---
Change from v2 to v3
- use endpoint-config as node name for fsl,enetc-ierb.yaml,
- wrap to 80 in fsl,enetc-ierb.yaml.
- fix unit address don't match
- Remove reg/compatible string for pci
- Add pci-device.yaml, which need absolute path.
- Use example which have mdio sub node.

Change from v1 to v2
- renamee file as fsl,enetc-mdio.yaml, fsl,enetc-ierb.yaml, fsl,enetc.yaml
- example include pcie node

Quoted 10 lines
---
 .../bindings/net/fsl,enetc-ierb.yaml          |  38 ++++++
 .../bindings/net/fsl,enetc-mdio.yaml          |  57 +++++++++
 .../devicetree/bindings/net/fsl,enetc.yaml    |  66 ++++++++++
 .../devicetree/bindings/net/fsl-enetc.txt     | 119 ------------------
 4 files changed, 161 insertions(+), 119 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc-ierb.yaml
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc-mdio.yaml
 create mode 100644 Documentation/devicetree/bindings/net/fsl,enetc.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/fsl-enetc.txt
#2 lore raw
In reply to Frank Li
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Tue, 9 Jul 2024 17:48:41 -0400 you wrote:

Convert enetc device binding file to yaml. Split to 3 yaml files, 'fsl,enetc.yaml', 'fsl,enetc-mdio.yaml', 'fsl,enetc-ierb.yaml'.

Additional Changes:
- Add pci<vendor id>,<production id> in compatible string.
- Ref to common ethernet-controller.yaml and mdio.yaml.
- Add Wei fang, Vladimir and Claudiu as maintainer.
- Update ENETC description.
- Remove fixed-link part.

[...]

Here is the summary with links:
- [v3,1/1] dt-bindings: net: convert enetc to yaml

    https://git.kernel.org/netdev/net-next/c/d00ba1d734f7

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html