Skip to content

Commit d00ba1d

Browse files
nxpfranklikuba-moo
authored andcommitted
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. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ab896aa commit d00ba1d

File tree

4 files changed

+161
-119
lines changed

4 files changed

+161
-119
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/fsl,enetc-ierb.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Integrated Endpoint Register Block
8+
9+
description:
10+
The fsl_enetc driver can probe on the Integrated Endpoint Register Block,
11+
which preconfigures the FIFO limits for the ENETC ports.
12+
13+
maintainers:
14+
- Frank Li <[email protected]>
15+
- Vladimir Oltean <[email protected]>
16+
- Wei Fang <[email protected]>
17+
- Claudiu Manoil <[email protected]>
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- fsl,ls1028a-enetc-ierb
23+
24+
reg:
25+
maxItems: 1
26+
27+
required:
28+
- compatible
29+
- reg
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
endpoint-config@f0800000 {
36+
compatible = "fsl,ls1028a-enetc-ierb";
37+
reg = <0xf0800000 0x10000>;
38+
};
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/fsl,enetc-mdio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ENETC external MDIO PCIe endpoint device
8+
9+
description:
10+
NETC provides an external master MDIO interface (EMDIO) for managing external
11+
devices (PHYs). EMDIO supports both Clause 22 and 45 protocols. And the EMDIO
12+
provides a means for different software modules to share a single set of MDIO
13+
signals to access their PHYs.
14+
15+
maintainers:
16+
- Frank Li <[email protected]>
17+
- Vladimir Oltean <[email protected]>
18+
- Wei Fang <[email protected]>
19+
- Claudiu Manoil <[email protected]>
20+
21+
properties:
22+
compatible:
23+
items:
24+
- enum:
25+
- pci1957,ee01
26+
- const: fsl,enetc-mdio
27+
28+
reg:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
35+
allOf:
36+
- $ref: mdio.yaml
37+
- $ref: /schemas/pci/pci-device.yaml
38+
39+
unevaluatedProperties: false
40+
41+
examples:
42+
- |
43+
pcie{
44+
#address-cells = <3>;
45+
#size-cells = <2>;
46+
47+
mdio@0,3 {
48+
compatible = "pci1957,ee01", "fsl,enetc-mdio";
49+
reg = <0x000300 0 0 0 0>;
50+
#address-cells = <1>;
51+
#size-cells = <0>;
52+
53+
ethernet-phy@2 {
54+
reg = <0x2>;
55+
};
56+
};
57+
};
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/fsl,enetc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: The NIC functionality of NXP NETC
8+
9+
description:
10+
The NIC functionality in NETC is known as EtherNET Controller (ENETC). ENETC
11+
supports virtualization/isolation based on PCIe Single Root IO Virtualization
12+
(SR-IOV), advanced QoS with 8 traffic classes and 4 drop resilience levels,
13+
and a full range of TSN standards and NIC offload capabilities
14+
15+
maintainers:
16+
- Frank Li <[email protected]>
17+
- Vladimir Oltean <[email protected]>
18+
- Wei Fang <[email protected]>
19+
- Claudiu Manoil <[email protected]>
20+
21+
properties:
22+
compatible:
23+
items:
24+
- enum:
25+
- pci1957,e100
26+
- const: fsl,enetc
27+
28+
reg:
29+
maxItems: 1
30+
31+
mdio:
32+
$ref: mdio.yaml
33+
unevaluatedProperties: false
34+
description: Optional child node for ENETC instance, otherwise use NETC EMDIO.
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
allOf:
41+
- $ref: /schemas/pci/pci-device.yaml
42+
- $ref: ethernet-controller.yaml
43+
44+
unevaluatedProperties: false
45+
46+
examples:
47+
- |
48+
pcie {
49+
#address-cells = <3>;
50+
#size-cells = <2>;
51+
52+
ethernet@0,0 {
53+
compatible = "pci1957,e100", "fsl,enetc";
54+
reg = <0x000000 0 0 0 0>;
55+
phy-handle = <&sgmii_phy0>;
56+
phy-connection-type = "sgmii";
57+
58+
mdio {
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
phy@2 {
62+
reg = <0x2>;
63+
};
64+
};
65+
};
66+
};

Documentation/devicetree/bindings/net/fsl-enetc.txt

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)