netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: phy: dp83822: Add support for GPIO2 clock output
@ 2024-12-11  8:04 Dimitri Fedrau via B4 Relay
  2024-12-11  8:04 ` [PATCH net-next v2 1/2] dt-bindings: net: " Dimitri Fedrau via B4 Relay
  2024-12-11  8:04 ` [PATCH net-next v2 2/2] net: phy: " Dimitri Fedrau via B4 Relay
  0 siblings, 2 replies; 8+ messages in thread
From: Dimitri Fedrau via B4 Relay @ 2024-12-11  8:04 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Andrew Davis, Andrew Lunn, Heiner Kallweit, Russell King
  Cc: netdev, devicetree, linux-kernel, Dimitri Fedrau, Dimitri Fedrau

The DP83822 has several clock configuration options for pins GPIO1, GPIO2
and GPIO3. Clock options include:
  - MAC IF clock
  - XI clock
  - Free-Running clock
  - Recovered clock
This patch adds support for GPIO2, the support for GPIO1 and GPIO3 can be
easily added if needed. Code and device tree bindings are derived from
dp83867 which has a similar feature.

Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
---
Changes in v2:
- Move MII_DP83822_IOCTRL2 before MII_DP83822_GENCFG
- List case statements together, and have one break at the end.
- Move dp83822->set_gpio2_clk_out = true at the end of the validation
- Link to v1: https://lore.kernel.org/r/20241209-dp83822-gpio2-clk-out-v1-0-fd3c8af59ff5@liebherr.com

---
Dimitri Fedrau (2):
      dt-bindings: net: dp83822: Add support for GPIO2 clock output
      net: phy: dp83822: Add support for GPIO2 clock output

 .../devicetree/bindings/net/ti,dp83822.yaml        |  7 ++++
 drivers/net/phy/dp83822.c                          | 40 ++++++++++++++++++++++
 include/dt-bindings/net/ti-dp83822.h               | 21 ++++++++++++
 3 files changed, 68 insertions(+)
---
base-commit: 65fb414c93f486cef5408951350f20552113abd0
change-id: 20241206-dp83822-gpio2-clk-out-cd9cf63e37df

Best regards,
-- 
Dimitri Fedrau <dimitri.fedrau@liebherr.com>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-11 13:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11  8:04 [PATCH net-next v2 0/2] net: phy: dp83822: Add support for GPIO2 clock output Dimitri Fedrau via B4 Relay
2024-12-11  8:04 ` [PATCH net-next v2 1/2] dt-bindings: net: " Dimitri Fedrau via B4 Relay
2024-12-11  9:43   ` Krzysztof Kozlowski
2024-12-11 10:51     ` Dimitri Fedrau
2024-12-11 13:40       ` Krzysztof Kozlowski
2024-12-11  8:04 ` [PATCH net-next v2 2/2] net: phy: " Dimitri Fedrau via B4 Relay
2024-12-11  9:45   ` Krzysztof Kozlowski
2024-12-11 10:52     ` Dimitri Fedrau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).