1966a5c08SKunihiko Hayashi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2966a5c08SKunihiko Hayashi%YAML 1.2 3966a5c08SKunihiko Hayashi--- 4966a5c08SKunihiko Hayashi$id: http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml# 5966a5c08SKunihiko Hayashi$schema: http://devicetree.org/meta-schemas/core.yaml# 6966a5c08SKunihiko Hayashi 7966a5c08SKunihiko Hayashititle: Socionext AVE ethernet controller 8966a5c08SKunihiko Hayashi 9966a5c08SKunihiko Hayashimaintainers: 10966a5c08SKunihiko Hayashi - Kunihiko Hayashi <hayashi.kunihiko@socionext.com> 11966a5c08SKunihiko Hayashi 12966a5c08SKunihiko Hayashidescription: | 13966a5c08SKunihiko Hayashi This describes the devicetree bindings for AVE ethernet controller 14966a5c08SKunihiko Hayashi implemented on Socionext UniPhier SoCs. 15966a5c08SKunihiko Hayashi 16966a5c08SKunihiko Hayashiproperties: 17966a5c08SKunihiko Hayashi compatible: 18966a5c08SKunihiko Hayashi enum: 19966a5c08SKunihiko Hayashi - socionext,uniphier-pro4-ave4 20966a5c08SKunihiko Hayashi - socionext,uniphier-pxs2-ave4 21966a5c08SKunihiko Hayashi - socionext,uniphier-ld11-ave4 22966a5c08SKunihiko Hayashi - socionext,uniphier-ld20-ave4 23966a5c08SKunihiko Hayashi - socionext,uniphier-pxs3-ave4 248e60189dSKunihiko Hayashi - socionext,uniphier-nx1-ave4 25966a5c08SKunihiko Hayashi 26966a5c08SKunihiko Hayashi reg: 27966a5c08SKunihiko Hayashi maxItems: 1 28966a5c08SKunihiko Hayashi 29966a5c08SKunihiko Hayashi interrupts: 30966a5c08SKunihiko Hayashi maxItems: 1 31966a5c08SKunihiko Hayashi 32966a5c08SKunihiko Hayashi phy-mode: true 33966a5c08SKunihiko Hayashi 34966a5c08SKunihiko Hayashi phy-handle: true 35966a5c08SKunihiko Hayashi 36966a5c08SKunihiko Hayashi mac-address: true 37966a5c08SKunihiko Hayashi 38966a5c08SKunihiko Hayashi local-mac-address: true 39966a5c08SKunihiko Hayashi 40966a5c08SKunihiko Hayashi clocks: 41966a5c08SKunihiko Hayashi minItems: 1 42966a5c08SKunihiko Hayashi maxItems: 4 43966a5c08SKunihiko Hayashi 44*2862c934SKrzysztof Kozlowski clock-names: 45*2862c934SKrzysztof Kozlowski minItems: 1 46*2862c934SKrzysztof Kozlowski maxItems: 4 47966a5c08SKunihiko Hayashi 48966a5c08SKunihiko Hayashi resets: 49966a5c08SKunihiko Hayashi minItems: 1 50966a5c08SKunihiko Hayashi maxItems: 2 51966a5c08SKunihiko Hayashi 52*2862c934SKrzysztof Kozlowski reset-names: 53*2862c934SKrzysztof Kozlowski minItems: 1 54*2862c934SKrzysztof Kozlowski maxItems: 2 55966a5c08SKunihiko Hayashi 56966a5c08SKunihiko Hayashi socionext,syscon-phy-mode: 57d69c6dddSRob Herring $ref: /schemas/types.yaml#/definitions/phandle-array 5839bd2b6aSRob Herring items: 5939bd2b6aSRob Herring - items: 6039bd2b6aSRob Herring - description: phandle to syscon that configures phy mode 6139bd2b6aSRob Herring - description: ID of MAC instance 62966a5c08SKunihiko Hayashi description: 63966a5c08SKunihiko Hayashi A phandle to syscon with one argument that configures phy mode. 64966a5c08SKunihiko Hayashi The argument is the ID of MAC instance. 65966a5c08SKunihiko Hayashi 66966a5c08SKunihiko Hayashi mdio: 67966a5c08SKunihiko Hayashi $ref: mdio.yaml# 68b2d28642SRob Herring unevaluatedProperties: false 69966a5c08SKunihiko Hayashi 702610bd72SKunihiko HayashiallOf: 712610bd72SKunihiko Hayashi - $ref: ethernet-controller.yaml# 722610bd72SKunihiko Hayashi - if: 732610bd72SKunihiko Hayashi properties: 742610bd72SKunihiko Hayashi compatible: 752610bd72SKunihiko Hayashi contains: 762610bd72SKunihiko Hayashi const: socionext,uniphier-pro4-ave4 772610bd72SKunihiko Hayashi then: 782610bd72SKunihiko Hayashi properties: 792610bd72SKunihiko Hayashi clocks: 802610bd72SKunihiko Hayashi minItems: 4 812610bd72SKunihiko Hayashi maxItems: 4 822610bd72SKunihiko Hayashi clock-names: 832610bd72SKunihiko Hayashi items: 842610bd72SKunihiko Hayashi - const: gio 852610bd72SKunihiko Hayashi - const: ether 862610bd72SKunihiko Hayashi - const: ether-gb 872610bd72SKunihiko Hayashi - const: ether-phy 882610bd72SKunihiko Hayashi resets: 892610bd72SKunihiko Hayashi minItems: 2 902610bd72SKunihiko Hayashi maxItems: 2 912610bd72SKunihiko Hayashi reset-names: 922610bd72SKunihiko Hayashi items: 932610bd72SKunihiko Hayashi - const: gio 942610bd72SKunihiko Hayashi - const: ether 952610bd72SKunihiko Hayashi else: 962610bd72SKunihiko Hayashi properties: 972610bd72SKunihiko Hayashi clocks: 982610bd72SKunihiko Hayashi maxItems: 1 992610bd72SKunihiko Hayashi clock-names: 1002610bd72SKunihiko Hayashi const: ether 1012610bd72SKunihiko Hayashi resets: 1022610bd72SKunihiko Hayashi maxItems: 1 1032610bd72SKunihiko Hayashi reset-names: 1042610bd72SKunihiko Hayashi const: ether 1052610bd72SKunihiko Hayashi 106966a5c08SKunihiko Hayashirequired: 107966a5c08SKunihiko Hayashi - compatible 108966a5c08SKunihiko Hayashi - reg 109966a5c08SKunihiko Hayashi - interrupts 110966a5c08SKunihiko Hayashi - phy-mode 111966a5c08SKunihiko Hayashi - phy-handle 112966a5c08SKunihiko Hayashi - clocks 113966a5c08SKunihiko Hayashi - clock-names 114966a5c08SKunihiko Hayashi - resets 115966a5c08SKunihiko Hayashi - reset-names 116966a5c08SKunihiko Hayashi - mdio 117966a5c08SKunihiko Hayashi 1185a80059dSKunihiko HayashiunevaluatedProperties: false 119966a5c08SKunihiko Hayashi 120966a5c08SKunihiko Hayashiexamples: 121966a5c08SKunihiko Hayashi - | 122966a5c08SKunihiko Hayashi ether: ethernet@65000000 { 123966a5c08SKunihiko Hayashi compatible = "socionext,uniphier-ld20-ave4"; 124966a5c08SKunihiko Hayashi reg = <0x65000000 0x8500>; 125966a5c08SKunihiko Hayashi interrupts = <0 66 4>; 126966a5c08SKunihiko Hayashi phy-mode = "rgmii"; 127966a5c08SKunihiko Hayashi phy-handle = <ðphy>; 128966a5c08SKunihiko Hayashi clock-names = "ether"; 129966a5c08SKunihiko Hayashi clocks = <&sys_clk 6>; 130966a5c08SKunihiko Hayashi reset-names = "ether"; 131966a5c08SKunihiko Hayashi resets = <&sys_rst 6>; 132966a5c08SKunihiko Hayashi socionext,syscon-phy-mode = <&soc_glue 0>; 133966a5c08SKunihiko Hayashi 134966a5c08SKunihiko Hayashi mdio { 135966a5c08SKunihiko Hayashi #address-cells = <1>; 136966a5c08SKunihiko Hayashi #size-cells = <0>; 137966a5c08SKunihiko Hayashi 138966a5c08SKunihiko Hayashi ethphy: ethernet-phy@1 { 139966a5c08SKunihiko Hayashi reg = <1>; 140966a5c08SKunihiko Hayashi }; 141966a5c08SKunihiko Hayashi }; 142966a5c08SKunihiko Hayashi }; 143