brintos

brintos / linux-shallow public Read only

0
0
Text · 3.9 KiB · 2d33bba Raw
172 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas RZ/N1 MII converter8 9maintainers:10  - Clément Léger <clement.leger@bootlin.com>11 12description: |13  This MII converter is present on the Renesas RZ/N1 SoC family. It is14  responsible to do MII passthrough or convert it to RMII/RGMII.15 16properties:17  '#address-cells':18    const: 119 20  '#size-cells':21    const: 022 23  compatible:24    items:25      - enum:26          - renesas,r9a06g032-miic27      - const: renesas,rzn1-miic28 29  reg:30    maxItems: 131 32  clocks:33    items:34      - description: MII reference clock35      - description: RGMII reference clock36      - description: RMII reference clock37      - description: AHB clock used for the MII converter register interface38 39  clock-names:40    items:41      - const: mii_ref42      - const: rgmii_ref43      - const: rmii_ref44      - const: hclk45 46  renesas,miic-switch-portin:47    description: MII Switch PORTIN configuration. This value should use one of48      the values defined in dt-bindings/net/pcs-rzn1-miic.h.49    $ref: /schemas/types.yaml#/definitions/uint3250    enum: [1, 2]51 52  power-domains:53    maxItems: 154 55patternProperties:56  "^mii-conv@[0-5]$":57    type: object58    description: MII converter port59 60    properties:61      reg:62        description: MII Converter port number.63        enum: [1, 2, 3, 4, 5]64 65      renesas,miic-input:66        description: Converter input port configuration. This value should use67          one of the values defined in dt-bindings/net/pcs-rzn1-miic.h.68        $ref: /schemas/types.yaml#/definitions/uint3269 70    required:71      - reg72      - renesas,miic-input73 74    additionalProperties: false75 76    allOf:77      - if:78          properties:79            reg:80              const: 181        then:82          properties:83            renesas,miic-input:84              const: 085      - if:86          properties:87            reg:88              const: 289        then:90          properties:91            renesas,miic-input:92              enum: [1, 11]93      - if:94          properties:95            reg:96              const: 397        then:98          properties:99            renesas,miic-input:100              enum: [7, 10]101      - if:102          properties:103            reg:104              const: 4105        then:106          properties:107            renesas,miic-input:108              enum: [4, 6, 9, 13]109      - if:110          properties:111            reg:112              const: 5113        then:114          properties:115            renesas,miic-input:116              enum: [3, 5, 8, 12]117 118required:119  - '#address-cells'120  - '#size-cells'121  - compatible122  - reg123  - clocks124  - clock-names125  - power-domains126 127additionalProperties: false128 129examples:130  - |131    #include <dt-bindings/net/pcs-rzn1-miic.h>132    #include <dt-bindings/clock/r9a06g032-sysctrl.h>133 134    eth-miic@44030000 {135      #address-cells = <1>;136      #size-cells = <0>;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>;146 147      mii_conv1: mii-conv@1 {148        renesas,miic-input = <MIIC_GMAC1_PORT>;149        reg = <1>;150      };151 152      mii_conv2: mii-conv@2 {153        renesas,miic-input = <MIIC_SWITCH_PORTD>;154        reg = <2>;155      };156 157      mii_conv3: mii-conv@3 {158        renesas,miic-input = <MIIC_SWITCH_PORTC>;159        reg = <3>;160      };161 162      mii_conv4: mii-conv@4 {163        renesas,miic-input = <MIIC_SWITCH_PORTB>;164        reg = <4>;165      };166 167      mii_conv5: mii-conv@5 {168        renesas,miic-input = <MIIC_SWITCH_PORTA>;169        reg = <5>;170      };171    };172