From: Ricardo Pardini Add a binding for fixed/soldered Realtek RTL8125 PCIe Ethernet controller. As a PCIe device, its "pci10ec,8125" compatible is the Open Firmware spelling auto-derived from its PCI-SIG vendor/device IDs and is already covered by the generic dtschema pci-device.yaml. The compatible itself therefore needs no binding to be valid. A dedicated binding is needed because board DTs describe these soldered function nodes in order to attach ethernet-controller properties to them: a placeholder local-mac-address that the bootloader fills in today, and potentially nvmem-cells, phy-handle, etc. in the future. This binding references ethernet-controller.yaml so those properties are validated on the RTL8125 PCI function nodes. Suggested-by: Sebastian Reichel Signed-off-by: Ricardo Pardini --- .../devicetree/bindings/net/realtek,rtl8125.yaml | 43 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/net/realtek,rtl8125.yaml b/Documentation/devicetree/bindings/net/realtek,rtl8125.yaml new file mode 100644 index 0000000000000..eee13fbc1e6a6 --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek,rtl8125.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/realtek,rtl8125.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTL8125 2.5 Gigabit PCIe Ethernet Controller + +maintainers: + - Heiner Kallweit + +description: + The Realtek RTL8125 is a 2.5GBASE-T Ethernet controller with a PCIe host + interface. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: pci10ec,8125 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + pcie { + #address-cells = <3>; + #size-cells = <2>; + + ethernet@0,0 { + compatible = "pci10ec,8125"; + reg = <0x10000 0 0 0 0>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 6215fcb077705..f74c559a3fd06 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -134,6 +134,7 @@ M: Heiner Kallweit M: nic_swsd@realtek.com L: netdev@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/net/realtek,rtl8125.yaml F: drivers/net/ethernet/realtek/r8169* 8250/16?50 (AND CLONE UARTS) SERIAL DRIVER -- 2.55.0