Re: [PATCH 1/2] dt-bindings: net: Add TI DP83640

From: Conor Dooley
Date: Tue Jan 30 2024 - 12:57:05 EST


Hey,

On Tue, Jan 30, 2024 at 09:59:34AM +0100, Bastien Curutchet wrote:
> +description: |
> + The DP83640 Precision PHYTER device delivers the highest level of precision

This is not a marketing document.

> + clock synchronization for real time industrial connectivity based on the
> + IEEE 1588 standard. The DP83640 has deterministic, low latency and allows
> + choice of microcontroller with no hardware customization required
> +
> + This device interfaces directly to the MAC layer through the
> + IEEE 802.3 Standard Media Independent Interface (MII), or Reduced MII (RMII).
> +
> + Specifications about the Ethernet PHY can be found at:
> + https://www.ti.com/lit/gpn/dp83640
> +
> +properties:
> + reg:
> + maxItems: 1
> +
> + ti,clk-output:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1]
> + description: |
> + If present, enables or disables the CLK_OUT pin.
> + CLK_OUT pin disabling can also be strapped. If the strap pin is not set
> + correctly or not set at all then this can be used to configure it.
> + - 0 = CLK_OUT pin disabled
> + - 1 = CLK_OUT pin enabled
> + - unset = Configured by straps

If you are providing a clock, why is there no clock-controller property
here? I don't think the 3-way nature of this property is needed, if you
make this a "real" clock controller.

> + ti,fiber-mode:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1]
> + description: |
> + If present, enables or disables the FX Fiber Mode.
> + Fiber mode support can also be strapped. If the strap pin is not set
> + correctly or not set at all then this can be used to configure it.
> + - 0 = FX Fiber Mode disabled
> + - 1 = FX Fiber Mode enabled
> + - unset = Configured by straps

I don't like these properties that map meanings onto numbers. We can
have enums of strings in bindings that allow you to use something more
meaningful than "0" or "1".

Cheers,
Conor.

Attachment: signature.asc
Description: PGP signature