Re: [PATCH net-next 1/4] dt-bindings: net: add dt binding for realtek rtl82xx phy

From: Andrew Lunn
Date: Tue Jun 01 2021 - 22:39:30 EST


> +properties:
> + rtl821x,clkout-disable:
> + description: Disable CLKOUT clock.
> + type: boolean
> +
> + rtl821x,aldps-disable:
> + description: Disable ALDPS mode.
> + type: boolean

I think most of the problems are the ambiguity in the binding.

If rtl821x,clkout-disable is not present, should it enable the CLKOUT?
That needs clear define here.

Do we actually want a tristate here?

rtl821x,clkout = <true>;

means ensure the clock is outputting.

rtl821x,clkout = <false>;

means ensure the clock is not outputting.

And if the property is not in DT at all, leave the hardware alone, at
either its default value, or whatever came before has set it to?

Andrew