linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] reset: bcm6345: add support for internal ephy resets on bcm63xx
@ 2025-07-15 23:46 Kyle Hendry
  2025-07-15 23:46 ` [PATCH v2 1/2] reset: bcm6345: add support for bcm63xx ephy control register Kyle Hendry
  2025-07-15 23:46 ` [PATCH v2 2/2] dt-bindings: reset: add compatible for bcm63xx ephy control Kyle Hendry
  0 siblings, 2 replies; 3+ messages in thread
From: Kyle Hendry @ 2025-07-15 23:46 UTC (permalink / raw)
  To: Philipp Zabel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fernández Rojas
  Cc: Kyle Hendry, devicetree, linux-kernel

bcm63xx SoCs have a register in the gpio controller that controls some
of the phy functionality. Some of the bits reset individual phys and 
need a driver to set. 

The other fields in the register configure phy power and will be set
by the network device driver. 

v2:
- Drop SoC specific patches since bits are sequential

v1: https://lore.kernel.org/all/20250709024740.194520-1-kylehendrydev@gmail.com/

Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>

Kyle Hendry (2):
  reset: bcm6345: add support for bcm63xx ephy control register
  dt-bindings: reset: add compatible for bcm63xx ephy control

 .../devicetree/bindings/reset/brcm,bcm6345-reset.yaml         | 4 +++-
 drivers/reset/reset-bcm6345.c                                 | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.43.0


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

* [PATCH v2 1/2] reset: bcm6345: add support for bcm63xx ephy control register
  2025-07-15 23:46 [PATCH v2 0/2] reset: bcm6345: add support for internal ephy resets on bcm63xx Kyle Hendry
@ 2025-07-15 23:46 ` Kyle Hendry
  2025-07-15 23:46 ` [PATCH v2 2/2] dt-bindings: reset: add compatible for bcm63xx ephy control Kyle Hendry
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Hendry @ 2025-07-15 23:46 UTC (permalink / raw)
  To: Philipp Zabel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fernández Rojas
  Cc: Kyle Hendry, devicetree, linux-kernel

The ephy control register on bcm63xx SoCs contain bits for
resetting individual internal phys. Use the existing bcm6345-reset
driver to set bits.

Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>
---
 drivers/reset/reset-bcm6345.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c
index aa9353439e70..56518f7bfbb3 100644
--- a/drivers/reset/reset-bcm6345.c
+++ b/drivers/reset/reset-bcm6345.c
@@ -119,6 +119,7 @@ static int bcm6345_reset_probe(struct platform_device *pdev)
 
 static const struct of_device_id bcm6345_reset_of_match[] = {
 	{ .compatible = "brcm,bcm6345-reset" },
+	{ .compatible = "brcm,bcm63xx-ephy-ctrl" },
 	{ /* sentinel */ },
 };
 
-- 
2.43.0


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

* [PATCH v2 2/2] dt-bindings: reset: add compatible for bcm63xx ephy control
  2025-07-15 23:46 [PATCH v2 0/2] reset: bcm6345: add support for internal ephy resets on bcm63xx Kyle Hendry
  2025-07-15 23:46 ` [PATCH v2 1/2] reset: bcm6345: add support for bcm63xx ephy control register Kyle Hendry
@ 2025-07-15 23:46 ` Kyle Hendry
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Hendry @ 2025-07-15 23:46 UTC (permalink / raw)
  To: Philipp Zabel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fernández Rojas
  Cc: Kyle Hendry, devicetree, linux-kernel

Add compatible string for bcm63xx ephy control.

Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../devicetree/bindings/reset/brcm,bcm6345-reset.yaml         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/reset/brcm,bcm6345-reset.yaml b/Documentation/devicetree/bindings/reset/brcm,bcm6345-reset.yaml
index 00150b93fca0..b8a320bb1776 100644
--- a/Documentation/devicetree/bindings/reset/brcm,bcm6345-reset.yaml
+++ b/Documentation/devicetree/bindings/reset/brcm,bcm6345-reset.yaml
@@ -13,7 +13,9 @@ maintainers:
 
 properties:
   compatible:
-    const: brcm,bcm6345-reset
+    enum:
+      - brcm,bcm6345-reset
+      - brcm,bcm63xx-ephy-ctrl
 
   reg:
     maxItems: 1
-- 
2.43.0


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

end of thread, other threads:[~2025-07-15 23:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 23:46 [PATCH v2 0/2] reset: bcm6345: add support for internal ephy resets on bcm63xx Kyle Hendry
2025-07-15 23:46 ` [PATCH v2 1/2] reset: bcm6345: add support for bcm63xx ephy control register Kyle Hendry
2025-07-15 23:46 ` [PATCH v2 2/2] dt-bindings: reset: add compatible for bcm63xx ephy control Kyle Hendry

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).