Thread (9 messages) 9 messages, 3 authors, 9d ago

Re: [PATCH net-next 1/2] dt-bindings: net: add DAPU Telecom DAP8211R(I) PHY binding

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-07-14 21:10:33
Also in: linux-devicetree, lkml

+  rx-internal-delay-ps:
+    description:
+      RGMII RX clock delay in picoseconds. The PHY supports 150 ps steps
+      from 0 to 2250 ps. If not specified, defaults to 1950 ps. If the
+      requested value does not exactly match a supported step, the driver
+      selects the nearest supported value and issues a warning.
+    enum: [0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500,
+           1650, 1800, 1950, 2100, 2250]
+    default: 1950
The cover letter says you round to the nearest, but here you list
specific values.

Please remove the rounding and return EINVAL for the value is not one
of the listed values.

   Andrew
+examples:
+  - |
+    mdio {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        ethernet-phy@1 {
+            compatible = "ethernet-phy-ieee802.3-c22";
+            reg = <1>;
+            rx-internal-delay-ps = <1050>;
+            tx-internal-delay-ps = <1150>;
Using values which probably don't work is maybe not a good idea. There
are too many DT developers who just cut/paste and don't think.

These are optional, so don't even bother? Or 2100 which probably does
actually work.

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help