[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240130-impulsive-widow-9142a069b7fd@spud>
Date: Tue, 30 Jan 2024 17:56:37 +0000
From: Conor Dooley <conor@...nel.org>
To: Bastien Curutchet <bastien.curutchet@...tlin.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Richard Cochran <richardcochran@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Herve Codina <herve.codina@...tlin.com>
Subject: Re: [PATCH 1/2] dt-bindings: net: Add TI DP83640
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.
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists