1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas RZ/N1 MII converter
10 - Clément Léger <clement.leger@bootlin.com>
13 This MII converter is present on the Renesas RZ/N1 SoC family. It is
14 responsible to do MII passthrough or convert it to RMII/RGMII.
26 - renesas,r9a06g032-miic
27 - const: renesas,rzn1-miic
34 - description: MII reference clock
35 - description: RGMII reference clock
36 - description: RMII reference clock
37 - description: AHB clock used for the MII converter register interface
46 renesas,miic-switch-portin:
47 description: MII Switch PORTIN configuration. This value should use one of
48 the values defined in dt-bindings/net/pcs-rzn1-miic.h.
49 $ref: /schemas/types.yaml#/definitions/uint32
58 description: MII converter port
62 description: MII Converter port number.
66 description: Converter input port configuration. This value should use
67 one of the values defined in dt-bindings/net/pcs-rzn1-miic.h.
68 $ref: /schemas/types.yaml#/definitions/uint32
74 additionalProperties: false
127 additionalProperties: false
131 #include <dt-bindings/net/pcs-rzn1-miic.h>
132 #include <dt-bindings/clock/r9a06g032-sysctrl.h>
135 #address-cells = <1>;
137 compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic";
138 reg = <0x44030000 0x10000>;
139 clocks = <&sysctrl R9A06G032_CLK_MII_REF>,
140 <&sysctrl R9A06G032_CLK_RGMII_REF>,
141 <&sysctrl R9A06G032_CLK_RMII_REF>,
142 <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
143 clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
144 renesas,miic-switch-portin = <MIIC_GMAC2_PORT>;
145 power-domains = <&sysctrl>;
147 mii_conv1: mii-conv@1 {
148 renesas,miic-input = <MIIC_GMAC1_PORT>;
152 mii_conv2: mii-conv@2 {
153 renesas,miic-input = <MIIC_SWITCH_PORTD>;
157 mii_conv3: mii-conv@3 {
158 renesas,miic-input = <MIIC_SWITCH_PORTC>;
162 mii_conv4: mii-conv@4 {
163 renesas,miic-input = <MIIC_SWITCH_PORTB>;
167 mii_conv5: mii-conv@5 {
168 renesas,miic-input = <MIIC_SWITCH_PORTA>;