]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'dp83822-gpio2'
authorDavid S. Miller <davem@davemloft.net>
Sun, 15 Dec 2024 21:12:37 +0000 (21:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Dec 2024 21:12:37 +0000 (21:12 +0000)
commitab2cedb0d4fcecba6d241ad1bdc674a0af625641
tree06cba92567ef73190ef16e23c5f33b3f1e00b940
parent2c2b61d2138f472e50b5531ec0cb4a1485837e21
parent53e3b540952c14aa190233c173ba56d2987aa527
Merge branch 'dp83822-gpio2'

Dimitri Fedrau says:

====================
net: phy: dp83822: Add support for GPIO2 clock output

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 v3:
- Dropped <dt-bindings/net/ti-dp83822.h>
- Moved defines from <dt-bindings/net/ti-dp83822.h> to dp83822.c
- Switched to enum of type string for property ti,gpio2-clk-out and added
  explanation for values, added example.
- Link to v2: https://lore.kernel.org/r/20241211-dp83822-gpio2-clk-out-v2-0-614a54f6acab@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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>