On 5/27/25 3:08 PM, Andrew Lunn wrote:
quoted
quoted
quoted
quoted
quoted
quoted
Would qcom,phy-to-phy-dac (boolean) do?
Seems fine to me.
Can the driver instead check for a phy reference?
Do you mean using the existing phy-handle DT property or create a new DT property called 'qcom,phy-reference'? Either way, can add it for v2.
I'm not sure how this is all wired up. Do you have an example of a DT
with both configurations you described in your reply to Andrew?
When a SoC interface is connected to a switch, the SoC interface has
no real knowledge it is actually connected to a switch. All it knows
is it has a link peer, and it does not know if that peer is 1cm away
or 100m. It does nothing different.
The switch has a phandle to the SoC interface, so it knows a bit more,
but it would be a bit around about for the SoC interface to search the
whole device tree to see if there is a switch with a phandle pointing
to it. So for me, a bool property indicating a short 'cable' is the
better solution.
OK
does this sound like a generic enough problem to contemplate something
common, or should we go with something like qcom,dac-preset-short-cable
Konrad