dts: bindings: ethernet: Remove fixed link

Remove ethernet-fixed-link binding as it is redundant with the
phy bindings. Clearly, ethernet does not work without the L1
layer, which is a phy device, or an integrated mac/phy device,
and all of these things should be described properly in DT.
The schema did not even come with a compatible, meaning nodelabels
were hardcoded into the drivers, which is unacceptable.

- Remove the binding file for ethernet-fixed-link.yaml.
- Remove fixed link functionality from the nxp s32 gmac driver.
  Since this functionality is already covered by the phy support,
  it is redundant.
- Remove fixed link include from the s32 gmac binding.
- Remove fixed link include from the nuvoton numaker binding.
  As far as I can tell the corresonding driver does not even
  use it anyways, and I did not find any board with this device
  that describes a "fixed link".
- Move the definition into the nxp,kinetis-ethernet binding
  as the eth_mcux driver, which is already being deprecated,
  does use this, contain the debt to the legacy driver.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-03-19 17:26:23 -05:00 committed by Fabio Baltieri
commit 353c6a66cb
6 changed files with 21 additions and 49 deletions

View file

@ -1,17 +0,0 @@
# Copyright (c) 2020, DENX Software Engineering GmbH
# Lukasz Majewski <lukma@denx.de>
# SPDX-License-Identifier: Apache-2.0
child-binding:
description: Fixed link ethernet node
properties:
speed:
type: int
required: true
description: The speed of fixed link
enum:
- 100
- 10
full-duplex:
type: boolean
description: The fixed link operates in full duplex mode

View file

@ -7,7 +7,6 @@ compatible: "nuvoton,numaker-ethernet"
include:
- ethernet-controller.yaml
- ethernet,fixed-link.yaml
- reset-device.yaml
- pinctrl-device.yaml

View file

@ -5,7 +5,7 @@ description: NXP ENET MAC/L2 Device
compatible: "nxp,enet-mac"
include: ["ethernet-controller.yaml", "ethernet,fixed-link.yaml", "pinctrl-device.yaml"]
include: ["ethernet-controller.yaml", "pinctrl-device.yaml"]
properties:
interrupts:

View file

@ -5,7 +5,7 @@ description: NXP Kinetis Ethernet
compatible: "nxp,kinetis-ethernet"
include: ["ethernet-controller.yaml", "ethernet,fixed-link.yaml", "pinctrl-device.yaml"]
include: ["ethernet-controller.yaml", "pinctrl-device.yaml"]
properties:
reg:
@ -23,3 +23,17 @@ properties:
type: phandle-array
description:
interrupt GPIO for PHY. Will be pulled high before reset is asserted.
child-binding:
description: Fixed link ethernet node
properties:
speed:
type: int
required: true
description: The speed of fixed link
enum:
- 100
- 10
full-duplex:
type: boolean
description: The fixed link operates in full duplex mode

View file

@ -5,7 +5,7 @@ description: NXP S32 GMAC/EMAC driver
compatible: "nxp,s32-gmac"
include: [ethernet-controller.yaml, "ethernet,fixed-link.yaml", pinctrl-device.yaml]
include: [ethernet-controller.yaml, pinctrl-device.yaml]
properties:
reg: