mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 04:31:30 +00:00
98 lines
3.0 KiB
Diff
98 lines
3.0 KiB
Diff
From 3be6c1ed0ae21099b733ce16c709fad3061994ea Mon Sep 17 00:00:00 2001
|
|
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
Date: Sat, 14 Nov 2020 17:37:09 +0100
|
|
Subject: [PATCH 19/88] FROMGIT: dt-bindings: net: dwmac-meson: use picoseconds
|
|
for the RGMII RX delay
|
|
|
|
Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX
|
|
delay register which allows picoseconds precision. Deprecate the old
|
|
"amlogic,rx-delay-ns" in favour of the generic "rx-internal-delay-ps"
|
|
property.
|
|
|
|
For older SoCs the only known supported values were 0ns and 2ns. The new
|
|
SoCs have support for RGMII RX delays between 0ps and 3000ps in 200ps
|
|
steps.
|
|
|
|
Don't carry over the description for the "rx-internal-delay-ps" property
|
|
and inherit that from ethernet-controller.yaml instead.
|
|
|
|
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
---
|
|
.../bindings/net/amlogic,meson-dwmac.yaml | 55 +++++++++++++++++--
|
|
1 file changed, 49 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
|
|
index 1f133f4a2924..0467441d7037 100644
|
|
--- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
|
|
+++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
|
|
@@ -74,17 +74,60 @@ allOf:
|
|
Any configuration is ignored when the phy-mode is set to "rmii".
|
|
|
|
amlogic,rx-delay-ns:
|
|
+ deprecated: true
|
|
enum:
|
|
- 0
|
|
- 2
|
|
default: 0
|
|
description:
|
|
- The internal RGMII RX clock delay (provided by this IP block) in
|
|
- nanoseconds. When phy-mode is set to "rgmii" then the RX delay
|
|
- should be explicitly configured. When the phy-mode is set to
|
|
- either "rgmii-id" or "rgmii-rxid" the RX clock delay is already
|
|
- provided by the PHY. Any configuration is ignored when the
|
|
- phy-mode is set to "rmii".
|
|
+ The internal RGMII RX clock delay in nanoseconds. Deprecated, use
|
|
+ rx-internal-delay-ps instead.
|
|
+
|
|
+ rx-internal-delay-ps:
|
|
+ default: 0
|
|
+
|
|
+ - if:
|
|
+ properties:
|
|
+ compatible:
|
|
+ contains:
|
|
+ enum:
|
|
+ - amlogic,meson8b-dwmac
|
|
+ - amlogic,meson8m2-dwmac
|
|
+ - amlogic,meson-gxbb-dwmac
|
|
+ - amlogic,meson-axg-dwmac
|
|
+ then:
|
|
+ properties:
|
|
+ rx-internal-delay-ps:
|
|
+ enum:
|
|
+ - 0
|
|
+ - 2000
|
|
+
|
|
+ - if:
|
|
+ properties:
|
|
+ compatible:
|
|
+ contains:
|
|
+ enum:
|
|
+ - amlogic,meson-g12a-dwmac
|
|
+ then:
|
|
+ properties:
|
|
+ rx-internal-delay-ps:
|
|
+ enum:
|
|
+ - 0
|
|
+ - 200
|
|
+ - 400
|
|
+ - 600
|
|
+ - 800
|
|
+ - 1000
|
|
+ - 1200
|
|
+ - 1400
|
|
+ - 1600
|
|
+ - 1800
|
|
+ - 2000
|
|
+ - 2200
|
|
+ - 2400
|
|
+ - 2600
|
|
+ - 2800
|
|
+ - 3000
|
|
|
|
properties:
|
|
compatible:
|
|
--
|
|
2.17.1
|
|
|