Re: [PATCH v2 2/2] dt-bindings: net: adin: Document bindings for fast link down disable
From: Krzysztof Kozlowski
Date: Wed Mar 08 2023 - 05:19:31 EST
On 07/03/2023 19:19, Ken Sloat wrote:
>>> Document the new optional flags "adi,disable-fast-down-1000base-t" and
>>> "adi,disable-fast-down-100base-tx" which disable the "Fast Link Down"
>>> feature in the ADI PHY.
>>
>> You did not explain why do you need it.
>
> My thoughts were this was explained in the feature patch and so was redundant here which is why I gave a brief summary, but if the norm is to duplicate this information I can certainly do that.
At least something should be here. Bindings are separate from Linux, so
the commit should stand on its own.
>>> description: Enable 25MHz reference clock output on CLK25_REF pin.
>>> type: boolean
>>>
>>> + adi,disable-fast-down-1000base-t:
>>> + $ref: /schemas/types.yaml#definitions/flag
>>> + description: |
>>> + If set, disables any ADI fast link down ("Enhanced Link Detection")
>>> + function bits for 1000base-t interfaces.
>>
>> And why disabling it per board should be a property of DT?
>>
> That seemed like a logical place to allow override on boards where it is undesired. Would you say that properties such as this should instead be custom PHY tunables, which may require patching of ethtool as well?
First, your other commit says that it breaks IEEE standard, so maybe it
should be always disabled?
Second, tunable per board, but why? DT describes the hardware, so just
because someone wants to tune something is not a reason to put it in DT.
The reason to put it in DT is - this boards requires or cannot work with
the feature because of some board characteristic.
Best regards,
Krzysztof