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