* [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-28 18:15 ` sashiko-bot
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, 1 reply; 7+ 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] 7+ messages in thread* Re: [PATCH net-next 1/3] dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets
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-28 18:15 ` sashiko-bot
0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-11-28 18:15 UTC (permalink / raw)
To: Kyle Hendry; +Cc: devicetree, robh, conor+dt, wsa+renesas
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: net: pcs: renesas,rzn1-miic: misindented resets
under else
--
commit 575b03c2d089ed2bbbd4eb3b68259490440d654a
Author: Kyle Hendry <khendry@reliablecontrols.com>
dt-bindings: net: pcs: renesas,rzn1-miic: Document rzn1 resets
This commit documents the two reset lines for the Renesas RZ/N1 MIIC in the
device tree binding schema and moves the per-variant reset definitions into
the conditional allOf branches.
> diff --git a/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml b/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
> index f9d39114e6672..5ad1f993e8bd1 100644
> --- a/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
> +++ b/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml
[ ... ]
> @@ -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
[Severity: Medium]
Should resets and reset-names be indented under properties here? As
written, they sit directly under else, which causes make dt_binding_check
to fail schema validation and leaves the rst/crst reset constraints
unapplied to the RZ/T2H and RZ/N2H variants.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-miic-reset-consumer-v1-0-3cab78b94e23@reliablecontrols.com?part=1
^ permalink raw reply [flat|nested] 7+ 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-28 18:15 ` sashiko-bot
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, 2 replies; 7+ 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] 7+ 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
2026-11-28 18:15 ` sashiko-bot
1 sibling, 0 replies; 7+ 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] 7+ 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
@ 2026-11-28 18:15 ` sashiko-bot
1 sibling, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-11-28 18:15 UTC (permalink / raw)
To: Kyle Hendry; +Cc: devicetree, robh, conor+dt, wsa+renesas
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] net: pcs: rzn1-miic: miic_reset_control_init() fails on
existing RZ/N1 DTBs
--
commit 3902b143c1e8eed13da6131cc0c93499f17b4052
Author: Kyle Hendry <khendry@reliablecontrols.com>
net: pcs: rzn1-miic: Add resets to rzn1 info structure
This commit populates the rst_ts and rst_miic reset IDs in
rzn1_miic_of_data so the driver acquires and deasserts the resets for
RZ/N1 MIIC.
> diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
> index 682a73cf5a87d..3c4eca8960bd9 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,
[Severity: High]
Does setting reset_count in rzn1_miic_of_data cause miic_probe() to fail
with -ENOENT on existing RZ/N1 device trees that do not have resets and
reset-names properties?
miic_reset_control_init() uses non-optional
devm_reset_control_bulk_get_exclusive():
drivers/net/pcs/pcs-rzn1-miic.c:miic_reset_control_init() {
...
ret = devm_reset_control_bulk_get_exclusive(dev, of_data->reset_count,
miic->rsts);
if (ret)
return dev_err_probe(dev, ret,
"failed to get bulk reset lines\n");
...
}
Existing RZ/N1 DTBs (and arch/arm/boot/dts/renesas/r9a06g032.dtsi prior to
commit "ARM: dts: renesas: r9a06g032: Add resets to mii converter" later
in this series) omit these properties on the eth-miic node, so
miic_probe() fails before calling platform_set_drvdata() and leaves
consumers such as dwmac-rzn1 and rzn1_a5psw stuck on -EPROBE_DEFER.
Acquiring the resets as optional (e.g. via
devm_reset_control_bulk_get_optional_exclusive()) would preserve backward
compatibility with existing RZ/N1 device trees.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-miic-reset-consumer-v1-0-3cab78b94e23@reliablecontrols.com?part=2
^ permalink raw reply [flat|nested] 7+ 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; 7+ 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] 7+ messages in thread