Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: pcs: rzn1-miic: Deassert resets on RZ/N1
@ 2026-11-27 18:14 Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets Kyle Hendry via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kyle Hendry via B4 Relay @ 2026-11-27 18:14 UTC (permalink / raw)
  To: Clément Léger, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, Lad Prabhakar, Andrew Lunn, Heiner Kallweit,
	Russell King
  Cc: linux-renesas-soc, netdev, devicetree, Kyle Hendry

Two resets are held at boot and need to be cleared for the mii converted
to work. They are in the system controller managed by the clock driver and
are supported by this series:
https://lore.kernel.org/linux-renesas-soc/20261126-rzn1-miic-resets-v4-0-4f73af81d779@reliablecontrols.com

Add the reset information to the rzn1 info structure and device tree so
the miic driver can clear the resets the same way the rz/t2h does.

Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
---
Kyle Hendry (3):
      dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets
      net: pcs: rzn1-miic: Add resets to rzn1 info structure
      ARM: dts: renesas: r9a06g032: Add resets to mii converter

 .../bindings/net/pcs/renesas,rzn1-miic.yaml        | 36 +++++++++++++++-------
 arch/arm/boot/dts/renesas/r9a06g032.dtsi           |  3 ++
 drivers/net/pcs/pcs-rzn1-miic.c                    |  7 +++++
 3 files changed, 35 insertions(+), 11 deletions(-)
---
base-commit: ccb81d5e317b0ae2cc66ca1c628c0ca907928f94
change-id: 20261126-miic-reset-consumer-1fd4999e4cd0
prerequisite-change-id: 20261027-rzn1-miic-resets-8308515aa2c0:v4
prerequisite-patch-id: be35edd6b8532456aa90c8b32fb7e1d7adbde798
prerequisite-patch-id: 077c1ad53beb244026822f9591c1808527f852db
prerequisite-patch-id: b56a4d7c0efa9bb17aa898bdc619733f30f9097c

Best regards,
-- 
Kyle Hendry <khendry@reliablecontrols.com>



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

* [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets
  2026-11-27 18:14 [PATCH net-next 0/3] net: pcs: rzn1-miic: Deassert resets on RZ/N1 Kyle Hendry via B4 Relay
@ 2026-11-27 18:14 ` Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 3/3] ARM: dts: renesas: r9a06g032: Add resets to mii converter Kyle Hendry via B4 Relay
  2 siblings, 0 replies; 5+ messages in thread
From: Kyle Hendry via B4 Relay @ 2026-11-27 18:14 UTC (permalink / raw)
  To: Clément Léger, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, Lad Prabhakar, Andrew Lunn, Heiner Kallweit,
	Russell King
  Cc: linux-renesas-soc, netdev, devicetree, Kyle Hendry

From: Kyle Hendry <khendry@reliablecontrols.com>

On the rzn1, there are two resets for the miic. Add documentation for them.

Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
---
 .../bindings/net/pcs/renesas,rzn1-miic.yaml        | 36 +++++++++++++++-------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml b/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
index f9d39114e667..5ad1f993e8bd 100644
--- a/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
+++ b/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
@@ -51,14 +51,12 @@ properties:
       - const: hclk
 
   resets:
-    items:
-      - description: Converter register reset
-      - description: Converter reset
+    minItems: 2
+    maxItems: 2
 
   reset-names:
-    items:
-      - const: rst
-      - const: crst
+    minItems: 2
+    maxItems: 2
 
   renesas,miic-switch-portin:
     description: MII Switch PORTIN configuration. This value should use one of
@@ -109,8 +107,14 @@ allOf:
       properties:
         renesas,miic-switch-portin:
           enum: [1, 2]
-        resets: false
-        reset-names: false
+        resets:
+          items:
+            - description: Timestamp selector reset
+            - description: Converter reset
+        reset-names:
+          items:
+            - const: rst_ts
+            - const: rst_miic
       patternProperties:
         "^mii-conv@[0-5]$":
           properties:
@@ -161,9 +165,14 @@ allOf:
       properties:
         renesas,miic-switch-portin:
           const: 0
-      required:
-        - resets
-        - reset-names
+      resets:
+        items:
+          - description: Converter register reset
+          - description: Converter reset
+      reset-names:
+        items:
+          - const: rst
+          - const: crst
       patternProperties:
         "^mii-conv@[0-5]$":
           properties:
@@ -210,6 +219,8 @@ required:
   - reg
   - clocks
   - clock-names
+  - resets
+  - reset-names
   - power-domains
 
 additionalProperties: false
@@ -229,6 +240,9 @@ examples:
               <&sysctrl R9A06G032_CLK_RMII_REF>,
               <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
       clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
+      resets = <&sysctrl R9A06G032_RST_TS>,
+               <&sysctrl R9A06G032_RST_MIIC>;
+      reset-names = "rst_ts", "rst_miic";
       renesas,miic-switch-portin = <MIIC_GMAC2_PORT>;
       power-domains = <&sysctrl>;
 

-- 
2.53.0



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

* [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure
  2026-11-27 18:14 [PATCH net-next 0/3] net: pcs: rzn1-miic: Deassert resets on RZ/N1 Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets Kyle Hendry via B4 Relay
@ 2026-11-27 18:14 ` Kyle Hendry via B4 Relay
  2026-11-27 18:28   ` Clement Leger
  2026-11-27 18:14 ` [PATCH net-next 3/3] ARM: dts: renesas: r9a06g032: Add resets to mii converter Kyle Hendry via B4 Relay
  2 siblings, 1 reply; 5+ messages in thread
From: Kyle Hendry via B4 Relay @ 2026-11-27 18:14 UTC (permalink / raw)
  To: Clément Léger, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, Lad Prabhakar, Andrew Lunn, Heiner Kallweit,
	Russell King
  Cc: linux-renesas-soc, netdev, devicetree, Kyle Hendry

From: Kyle Hendry <khendry@reliablecontrols.com>

Update the rzn1 info structure to include the resets that the driver needs
to deassert

Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
---
 drivers/net/pcs/pcs-rzn1-miic.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
index 682a73cf5a87..3c4eca8960bd 100644
--- a/drivers/net/pcs/pcs-rzn1-miic.c
+++ b/drivers/net/pcs/pcs-rzn1-miic.c
@@ -128,6 +128,11 @@ static const char * const index_to_string[] = {
 	"CONV5",
 };
 
+static const char * const rzn1_reset_ids[] = {
+	"rst_ts",
+	"rst_miic",
+};
+
 static struct modctrl_match rzt2h_modctrl_match_table[] = {
 	{0x0, {ETHSS_GMAC0_PORT, ETHSS_ETHSW_PORT0, ETHSS_ETHSW_PORT1,
 	       ETHSS_ETHSW_PORT2, ETHSS_GMAC1_PORT}},
@@ -855,6 +860,8 @@ static struct miic_of_data rzn1_miic_of_data = {
 	.miic_port_start = 1,
 	.miic_port_last = 5,
 	.sw_mode_mask = GENMASK(4, 0),
+	.reset_ids = rzn1_reset_ids,
+	.reset_count = ARRAY_SIZE(rzn1_reset_ids),
 	.init_unlock_lock_regs = true,
 	.miic_write = miic_reg_writel_unlocked,
 	.type = MIIC_TYPE_RZN1,

-- 
2.53.0



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

* [PATCH net-next 3/3] ARM: dts: renesas: r9a06g032: Add resets to mii converter
  2026-11-27 18:14 [PATCH net-next 0/3] net: pcs: rzn1-miic: Deassert resets on RZ/N1 Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets Kyle Hendry via B4 Relay
  2026-11-27 18:14 ` [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure Kyle Hendry via B4 Relay
@ 2026-11-27 18:14 ` Kyle Hendry via B4 Relay
  2 siblings, 0 replies; 5+ messages in thread
From: Kyle Hendry via B4 Relay @ 2026-11-27 18:14 UTC (permalink / raw)
  To: Clément Léger, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
	Magnus Damm, Lad Prabhakar, Andrew Lunn, Heiner Kallweit,
	Russell King
  Cc: linux-renesas-soc, netdev, devicetree, Kyle Hendry

From: Kyle Hendry <khendry@reliablecontrols.com>

Add references to the resets in the system driver that the miic needs

Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
---
 arch/arm/boot/dts/renesas/r9a06g032.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/renesas/r9a06g032.dtsi b/arch/arm/boot/dts/renesas/r9a06g032.dtsi
index 8645bab7ee23..12b8795797cd 100644
--- a/arch/arm/boot/dts/renesas/r9a06g032.dtsi
+++ b/arch/arm/boot/dts/renesas/r9a06g032.dtsi
@@ -462,6 +462,9 @@ eth_miic: eth-miic@44030000 {
 				 <&sysctrl R9A06G032_CLK_RMII_REF>,
 				 <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
 			clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
+			resets = <&sysctrl R9A06G032_RST_TS>,
+				 <&sysctrl R9A06G032_RST_MIIC>;
+			reset-names = "rst_ts", "rst_miic";
 			power-domains = <&sysctrl>;
 			status = "disabled";
 

-- 
2.53.0



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

* Re: [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure
  2026-11-27 18:14 ` [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure Kyle Hendry via B4 Relay
@ 2026-11-27 18:28   ` Clement Leger
  0 siblings, 0 replies; 5+ messages in thread
From: Clement Leger @ 2026-11-27 18:28 UTC (permalink / raw)
  To: khendry, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Geert Uytterhoeven, Magnus Damm, Lad Prabhakar,
	Andrew Lunn, Heiner Kallweit, Russell King
  Cc: linux-renesas-soc, netdev, devicetree



On 11/27/26 19:14, Kyle Hendry via B4 Relay wrote:
> From: Kyle Hendry <khendry@reliablecontrols.com>
> 
> Update the rzn1 info structure to include the resets that the driver needs
> to deassert
> 
> Signed-off-by: Kyle Hendry <khendry@reliablecontrols.com>
> ---
>   drivers/net/pcs/pcs-rzn1-miic.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
> index 682a73cf5a87..3c4eca8960bd 100644
> --- a/drivers/net/pcs/pcs-rzn1-miic.c
> +++ b/drivers/net/pcs/pcs-rzn1-miic.c
> @@ -128,6 +128,11 @@ static const char * const index_to_string[] = {
>   	"CONV5",
>   };
>   
> +static const char * const rzn1_reset_ids[] = {
> +	"rst_ts",
> +	"rst_miic",
> +};
> +
>   static struct modctrl_match rzt2h_modctrl_match_table[] = {
>   	{0x0, {ETHSS_GMAC0_PORT, ETHSS_ETHSW_PORT0, ETHSS_ETHSW_PORT1,
>   	       ETHSS_ETHSW_PORT2, ETHSS_GMAC1_PORT}},
> @@ -855,6 +860,8 @@ static struct miic_of_data rzn1_miic_of_data = {
>   	.miic_port_start = 1,
>   	.miic_port_last = 5,
>   	.sw_mode_mask = GENMASK(4, 0),
> +	.reset_ids = rzn1_reset_ids,
> +	.reset_count = ARRAY_SIZE(rzn1_reset_ids),
>   	.init_unlock_lock_regs = true,
>   	.miic_write = miic_reg_writel_unlocked,
>   	.type = MIIC_TYPE_RZN1,
> 

Hi Kyle,

LGTM,

Reviewed-by: Clément Léger <clement.leger@linux.dev>

Thanks,

Clément


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

end of thread, other threads:[~2026-11-27 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 18:14 [PATCH net-next 0/3] net: pcs: rzn1-miic: Deassert resets on RZ/N1 Kyle Hendry via B4 Relay
2026-11-27 18:14 ` [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets Kyle Hendry via B4 Relay
2026-11-27 18:14 ` [PATCH net-next 2/3] net: pcs: rzn1-miic: Add resets to rzn1 info structure Kyle Hendry via B4 Relay
2026-11-27 18:28   ` Clement Leger
2026-11-27 18:14 ` [PATCH net-next 3/3] ARM: dts: renesas: r9a06g032: Add resets to mii converter Kyle Hendry via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox