Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: net: dp83826: support TX data voltage tuning
@ 2024-02-07 17:58 Catalin Popescu
  2024-02-07 17:58 ` [PATCH v2 2/2] net: phy: " Catalin Popescu
  2024-02-08  7:35 ` [PATCH v2 1/2] dt-bindings: net: " Krzysztof Kozlowski
  0 siblings, 2 replies; 14+ messages in thread
From: Catalin Popescu @ 2024-02-07 17:58 UTC (permalink / raw)
  To: davem, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	afd, andrew, hkallweit1, linux
  Cc: netdev, devicetree, linux-kernel, bsp-development.geo, m.felsch,
	Catalin Popescu

Add properties ti,cfg-dac-minus-one-milli-percent and
ti,cfg-dac-plus-one-milli-percent to support voltage tuning
of logical levels -1/+1 of the MLT-3 encoded TX data.

Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
---
Changes in v2:
 - squash the 2 DT bindings patches in one single patch
 - drop redundant "binding" from the DT bindings patch title
 - rename DT properties and define them as percentage
 - add default value for each new DT property
---
 .../devicetree/bindings/net/ti,dp83822.yaml    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml
index db74474207ed..6bbd465e51d6 100644
--- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml
+++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml
@@ -62,6 +62,24 @@ properties:
        for the PHY.  The internal delay for the PHY is fixed to 3.5ns relative
        to transmit data.
 
+  ti,cfg-dac-minus-one-milli-percent:
+    description: |
+       DP83826 PHY only.
+       Sets the voltage ratio (with respect to the nominal value)
+       of the logical level -1 for the MLT-3 encoded TX data.
+    enum: [50000, 56250, 62500, 68750, 75000, 81250, 87500, 93750, 100000,
+           106250, 112500, 118750, 125000, 131250, 137500, 143750, 150000]
+    default: 100000
+
+  ti,cfg-dac-plus-one-milli-percent:
+    description: |
+       DP83826 PHY only.
+       Sets the voltage ratio (with respect to the nominal value)
+       of the logical level +1 for the MLT-3 encoded TX data.
+    enum: [50000, 56250, 62500, 68750, 75000, 81250, 87500, 93750, 100000,
+           106250, 112500, 118750, 125000, 131250, 137500, 143750, 150000]
+    default: 100000
+
 required:
   - reg
 

base-commit: 6d280f4d760e3bcb4a8df302afebf085b65ec982
prerequisite-patch-id: 0000000000000000000000000000000000000000
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-02-08 16:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 17:58 [PATCH v2 1/2] dt-bindings: net: dp83826: support TX data voltage tuning Catalin Popescu
2024-02-07 17:58 ` [PATCH v2 2/2] net: phy: " Catalin Popescu
2024-02-07 18:35   ` Andrew Lunn
2024-02-08  8:58     ` POPESCU Catalin
2024-02-08 13:56       ` Andrew Lunn
2024-02-08 16:14         ` POPESCU Catalin
2024-02-08 16:50           ` Andrew Lunn
2024-02-08 16:54             ` POPESCU Catalin
2024-02-08  7:35 ` [PATCH v2 1/2] dt-bindings: net: " Krzysztof Kozlowski
2024-02-08  8:48   ` POPESCU Catalin
2024-02-08  8:50     ` Krzysztof Kozlowski
2024-02-08  9:08       ` POPESCU Catalin
2024-02-08  9:12         ` Krzysztof Kozlowski
2024-02-08  9:19           ` POPESCU Catalin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox