1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/net/socione 4 $id: http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Socionext AVE ethernet controller 7 title: Socionext AVE ethernet controller 8 8 9 maintainers: 9 maintainers: 10 - Kunihiko Hayashi <hayashi.kunihiko@socionex 10 - Kunihiko Hayashi <hayashi.kunihiko@socionext.com> 11 11 12 description: | 12 description: | 13 This describes the devicetree bindings for A 13 This describes the devicetree bindings for AVE ethernet controller 14 implemented on Socionext UniPhier SoCs. 14 implemented on Socionext UniPhier SoCs. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 enum: 18 enum: 19 - socionext,uniphier-pro4-ave4 19 - socionext,uniphier-pro4-ave4 20 - socionext,uniphier-pxs2-ave4 20 - socionext,uniphier-pxs2-ave4 21 - socionext,uniphier-ld11-ave4 21 - socionext,uniphier-ld11-ave4 22 - socionext,uniphier-ld20-ave4 22 - socionext,uniphier-ld20-ave4 23 - socionext,uniphier-pxs3-ave4 23 - socionext,uniphier-pxs3-ave4 24 - socionext,uniphier-nx1-ave4 24 - socionext,uniphier-nx1-ave4 25 25 26 reg: 26 reg: 27 maxItems: 1 27 maxItems: 1 28 28 29 interrupts: 29 interrupts: 30 maxItems: 1 30 maxItems: 1 31 31 32 phy-mode: true 32 phy-mode: true 33 33 34 phy-handle: true 34 phy-handle: true 35 35 36 mac-address: true 36 mac-address: true 37 37 38 local-mac-address: true 38 local-mac-address: true 39 39 40 clocks: 40 clocks: 41 minItems: 1 41 minItems: 1 42 maxItems: 4 42 maxItems: 4 43 43 44 clock-names: !! 44 clock-names: true 45 minItems: 1 << 46 maxItems: 4 << 47 45 48 resets: 46 resets: 49 minItems: 1 47 minItems: 1 50 maxItems: 2 48 maxItems: 2 51 49 52 reset-names: !! 50 reset-names: true 53 minItems: 1 << 54 maxItems: 2 << 55 51 56 socionext,syscon-phy-mode: 52 socionext,syscon-phy-mode: 57 $ref: /schemas/types.yaml#/definitions/pha 53 $ref: /schemas/types.yaml#/definitions/phandle-array 58 items: 54 items: 59 - items: 55 - items: 60 - description: phandle to syscon tha 56 - description: phandle to syscon that configures phy mode 61 - description: ID of MAC instance 57 - description: ID of MAC instance 62 description: 58 description: 63 A phandle to syscon with one argument th 59 A phandle to syscon with one argument that configures phy mode. 64 The argument is the ID of MAC instance. 60 The argument is the ID of MAC instance. 65 61 66 mdio: 62 mdio: 67 $ref: mdio.yaml# 63 $ref: mdio.yaml# 68 unevaluatedProperties: false 64 unevaluatedProperties: false 69 65 70 allOf: 66 allOf: 71 - $ref: ethernet-controller.yaml# 67 - $ref: ethernet-controller.yaml# 72 - if: 68 - if: 73 properties: 69 properties: 74 compatible: 70 compatible: 75 contains: 71 contains: 76 const: socionext,uniphier-pro4-ave 72 const: socionext,uniphier-pro4-ave4 77 then: 73 then: 78 properties: 74 properties: 79 clocks: 75 clocks: 80 minItems: 4 76 minItems: 4 81 maxItems: 4 77 maxItems: 4 82 clock-names: 78 clock-names: 83 items: 79 items: 84 - const: gio 80 - const: gio 85 - const: ether 81 - const: ether 86 - const: ether-gb 82 - const: ether-gb 87 - const: ether-phy 83 - const: ether-phy 88 resets: 84 resets: 89 minItems: 2 85 minItems: 2 90 maxItems: 2 86 maxItems: 2 91 reset-names: 87 reset-names: 92 items: 88 items: 93 - const: gio 89 - const: gio 94 - const: ether 90 - const: ether 95 else: 91 else: 96 properties: 92 properties: 97 clocks: 93 clocks: 98 maxItems: 1 94 maxItems: 1 99 clock-names: 95 clock-names: 100 const: ether 96 const: ether 101 resets: 97 resets: 102 maxItems: 1 98 maxItems: 1 103 reset-names: 99 reset-names: 104 const: ether 100 const: ether 105 101 106 required: 102 required: 107 - compatible 103 - compatible 108 - reg 104 - reg 109 - interrupts 105 - interrupts 110 - phy-mode 106 - phy-mode 111 - phy-handle 107 - phy-handle 112 - clocks 108 - clocks 113 - clock-names 109 - clock-names 114 - resets 110 - resets 115 - reset-names 111 - reset-names 116 - mdio 112 - mdio 117 113 118 unevaluatedProperties: false 114 unevaluatedProperties: false 119 115 120 examples: 116 examples: 121 - | 117 - | 122 ether: ethernet@65000000 { 118 ether: ethernet@65000000 { 123 compatible = "socionext,uniphier-ld20- 119 compatible = "socionext,uniphier-ld20-ave4"; 124 reg = <0x65000000 0x8500>; 120 reg = <0x65000000 0x8500>; 125 interrupts = <0 66 4>; 121 interrupts = <0 66 4>; 126 phy-mode = "rgmii"; 122 phy-mode = "rgmii"; 127 phy-handle = <ðphy>; 123 phy-handle = <ðphy>; 128 clock-names = "ether"; 124 clock-names = "ether"; 129 clocks = <&sys_clk 6>; 125 clocks = <&sys_clk 6>; 130 reset-names = "ether"; 126 reset-names = "ether"; 131 resets = <&sys_rst 6>; 127 resets = <&sys_rst 6>; 132 socionext,syscon-phy-mode = <& 128 socionext,syscon-phy-mode = <&soc_glue 0>; 133 129 134 mdio { 130 mdio { 135 #address-cells = <1>; 131 #address-cells = <1>; 136 #size-cells = <0>; 132 #size-cells = <0>; 137 133 138 ethphy: ethernet-phy@1 134 ethphy: ethernet-phy@1 { 139 reg = <1>; 135 reg = <1>; 140 }; 136 }; 141 }; 137 }; 142 }; 138 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.