Re: [PATCH v2 01/14] dt-bindings: phy: Sierra: Add bindings for Sierra in TI's J721E

From: Rob Herring
Date: Tue Oct 29 2019 - 14:59:23 EST


On Wed, Oct 23, 2019 at 06:27:22PM +0530, Kishon Vijay Abraham I wrote:
> Add DT binding documentation for Sierra PHY IP used in TI's J721E
> SoC.
>
> Signed-off-by: Kishon Vijay Abraham I <kishon@xxxxxx>
> ---
> .../devicetree/bindings/phy/phy-cadence-sierra.txt | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.txt b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.txt
> index 6e1b47bfce43..bf90ef7e005e 100644
> --- a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.txt
> +++ b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.txt
> @@ -2,21 +2,24 @@ Cadence Sierra PHY
> -----------------------
>
> Required properties:
> -- compatible: cdns,sierra-phy-t0
> -- clocks: Must contain an entry in clock-names.
> - See ../clocks/clock-bindings.txt for details.
> -- clock-names: Must be "phy_clk"
> +- compatible: Must be "cdns,sierra-phy-t0" for Sierra in Cadence platform
> + Must be "ti,sierra-phy-t0" for Sierra in TI's J721E SoC.
> - resets: Must contain an entry for each in reset-names.
> See ../reset/reset.txt for details.
> - reset-names: Must include "sierra_reset" and "sierra_apb".
> "sierra_reset" must control the reset line to the PHY.
> "sierra_apb" must control the reset line to the APB PHY
> - interface.
> + interface ("sierra_apb" is optional).
> - reg: register range for the PHY.
> - #address-cells: Must be 1
> - #size-cells: Must be 0
>
> Optional properties:
> +- clocks: Must contain an entry in clock-names.
> + See ../clocks/clock-bindings.txt for details.
> +- clock-names: Must be "phy_clk". Must contain "cmn_refclk" and
> + "cmn_refclk1" for configuring the frequency of the
> + clock to the lanes.

I don't understand how the same block can have completely different
clocks. Did the original binding forget some?

TI needs 0, 1 or 3 clocks? Reads like it could be any.

Rob