aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Looijmans <mike.looijmans@topic.nl>2016-10-05 10:03:08 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-06 20:49:12 -0400
commit3d9e133fe611a4efc9be3ff04a0dcdf705fa6d84 (patch)
treed0089102107d0070571f0e154357e7d8a43da07d
parent0a55c12f9734105c004e464b5eebb79f08634d7a (diff)
devicetree: net: micrel-ksz90x1.txt: Properly explain skew settings
The KSZ9031 skew registers contain an offset, the chip's default value is "neutral" which does not add any skew. Programming a 0 into a skew property will actually set it the maximal negative adjustment and not to a neutral position as one would expect. Explain this situation in the devicetree binding documentation and list the settings that the chip considers neutral. Changing the implementation to accept negative values would have been a better solution, but would break existing configurations. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--Documentation/devicetree/bindings/net/micrel-ksz90x1.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/net/micrel-ksz90x1.txt b/Documentation/devicetree/bindings/net/micrel-ksz90x1.txt
index f9c32adab5c6..c35b5b428a7f 100644
--- a/Documentation/devicetree/bindings/net/micrel-ksz90x1.txt
+++ b/Documentation/devicetree/bindings/net/micrel-ksz90x1.txt
@@ -34,16 +34,17 @@ KSZ9031:
34 34
35 All skew control options are specified in picoseconds. The minimum 35 All skew control options are specified in picoseconds. The minimum
36 value is 0, and the maximum is property-dependent. The increment 36 value is 0, and the maximum is property-dependent. The increment
37 step is 60ps. 37 step is 60ps. The default value is the neutral setting, so setting
38 rxc-skew-ps=<0> actually results in -900 picoseconds adjustment.
38 39
39 Optional properties: 40 Optional properties:
40 41
41 Maximum value of 1860: 42 Maximum value of 1860, default value 900:
42 43
43 - rxc-skew-ps : Skew control of RX clock pad 44 - rxc-skew-ps : Skew control of RX clock pad
44 - txc-skew-ps : Skew control of TX clock pad 45 - txc-skew-ps : Skew control of TX clock pad
45 46
46 Maximum value of 900: 47 Maximum value of 900, default value 420:
47 48
48 - rxdv-skew-ps : Skew control of RX CTL pad 49 - rxdv-skew-ps : Skew control of RX CTL pad
49 - txen-skew-ps : Skew control of TX CTL pad 50 - txen-skew-ps : Skew control of TX CTL pad