Skip to content

Commit 980066e

Browse files
Trent Piephodavem330
authored andcommitted
dt-bindings: phy: dp83867: Add documentation for disabling clock output
The clock output is generally only used for testing and development and not used to daisy-chain PHYs. It's just a source of RF noise afterward. Add a mux value for "off". I've added it as another enumeration to the output property. In the actual PHY, the mux and the output enable are independently controllable. However, it doesn't seem useful to be able to describe the mux setting when the output is disabled. Document that PHY's default setting will be left as is if the property is omitted. Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Trent Piepho <tpiepho@impinj.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9c3f341 commit 980066e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎Documentation/devicetree/bindings/net/ti,dp83867.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ Optional property:
3333
software needs to take when this pin is
3434
strapped in these modes. See data manual
3535
for details.
36-
- ti,clk-output-sel - Muxing option for CLK_OUT pin - see dt-bindings/net/ti-dp83867.h
37-
for applicable values.
36+
- ti,clk-output-sel - Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h
37+
for applicable values. The CLK_OUT pin can also
38+
be disabled by this property. When omitted, the
39+
PHY's default will be left as is.
3840

3941
Note: ti,min-output-impedance and ti,max-output-impedance are mutually
4042
exclusive. When both properties are present ti,max-output-impedance

‎include/dt-bindings/net/ti-dp83867.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@
5656
#define DP83867_CLK_O_SEL_CHN_C_TCLK 0xA
5757
#define DP83867_CLK_O_SEL_CHN_D_TCLK 0xB
5858
#define DP83867_CLK_O_SEL_REF_CLK 0xC
59+
/* Special flag to indicate clock should be off */
60+
#define DP83867_CLK_O_SEL_OFF 0xFFFFFFFF
5961
#endif

0 commit comments

Comments
 (0)