143 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/socionext,uniphier-ave4.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Socionext AVE ethernet controller8 9maintainers:10 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>11 12description: |13 This describes the devicetree bindings for AVE ethernet controller14 implemented on Socionext UniPhier SoCs.15 16properties:17 compatible:18 enum:19 - socionext,uniphier-pro4-ave420 - socionext,uniphier-pxs2-ave421 - socionext,uniphier-ld11-ave422 - socionext,uniphier-ld20-ave423 - socionext,uniphier-pxs3-ave424 - socionext,uniphier-nx1-ave425 26 reg:27 maxItems: 128 29 interrupts:30 maxItems: 131 32 phy-mode: true33 34 phy-handle: true35 36 mac-address: true37 38 local-mac-address: true39 40 clocks:41 minItems: 142 maxItems: 443 44 clock-names:45 minItems: 146 maxItems: 447 48 resets:49 minItems: 150 maxItems: 251 52 reset-names:53 minItems: 154 maxItems: 255 56 socionext,syscon-phy-mode:57 $ref: /schemas/types.yaml#/definitions/phandle-array58 items:59 - items:60 - description: phandle to syscon that configures phy mode61 - description: ID of MAC instance62 description:63 A phandle to syscon with one argument that configures phy mode.64 The argument is the ID of MAC instance.65 66 mdio:67 $ref: mdio.yaml#68 unevaluatedProperties: false69 70allOf:71 - $ref: ethernet-controller.yaml#72 - if:73 properties:74 compatible:75 contains:76 const: socionext,uniphier-pro4-ave477 then:78 properties:79 clocks:80 minItems: 481 maxItems: 482 clock-names:83 items:84 - const: gio85 - const: ether86 - const: ether-gb87 - const: ether-phy88 resets:89 minItems: 290 maxItems: 291 reset-names:92 items:93 - const: gio94 - const: ether95 else:96 properties:97 clocks:98 maxItems: 199 clock-names:100 const: ether101 resets:102 maxItems: 1103 reset-names:104 const: ether105 106required:107 - compatible108 - reg109 - interrupts110 - phy-mode111 - phy-handle112 - clocks113 - clock-names114 - resets115 - reset-names116 - mdio117 118unevaluatedProperties: false119 120examples:121 - |122 ether: ethernet@65000000 {123 compatible = "socionext,uniphier-ld20-ave4";124 reg = <0x65000000 0x8500>;125 interrupts = <0 66 4>;126 phy-mode = "rgmii";127 phy-handle = <ðphy>;128 clock-names = "ether";129 clocks = <&sys_clk 6>;130 reset-names = "ether";131 resets = <&sys_rst 6>;132 socionext,syscon-phy-mode = <&soc_glue 0>;133 134 mdio {135 #address-cells = <1>;136 #size-cells = <0>;137 138 ethphy: ethernet-phy@1 {139 reg = <1>;140 };141 };142 };143