1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2018 Linaro Ltd. 2 # Copyright 2018 Linaro Ltd. 3 %YAML 1.2 3 %YAML 1.2 4 --- 4 --- 5 $id: http://devicetree.org/schemas/net/intel,i !! 5 $id: "http://devicetree.org/schemas/net/intel,ixp4xx-ethernet.yaml#" 6 $schema: http://devicetree.org/meta-schemas/co !! 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 7 8 title: Intel IXP4xx ethernet 8 title: Intel IXP4xx ethernet 9 9 10 allOf: 10 allOf: 11 - $ref: ethernet-controller.yaml# !! 11 - $ref: "ethernet-controller.yaml#" 12 12 13 maintainers: 13 maintainers: 14 - Linus Walleij <linus.walleij@linaro.org> 14 - Linus Walleij <linus.walleij@linaro.org> 15 15 16 description: | 16 description: | 17 The Intel IXP4xx ethernet makes use of the I 17 The Intel IXP4xx ethernet makes use of the IXP4xx NPE (Network 18 Processing Engine) and the IXP4xx Queue Mana 18 Processing Engine) and the IXP4xx Queue Manager to process 19 the ethernet frames. It can optionally conta 19 the ethernet frames. It can optionally contain an MDIO bus to 20 talk to PHYs. 20 talk to PHYs. 21 21 22 properties: 22 properties: 23 compatible: 23 compatible: 24 const: intel,ixp4xx-ethernet 24 const: intel,ixp4xx-ethernet 25 25 26 reg: 26 reg: 27 maxItems: 1 27 maxItems: 1 28 description: Ethernet MMIO address range 28 description: Ethernet MMIO address range 29 29 30 queue-rx: 30 queue-rx: 31 $ref: /schemas/types.yaml#/definitions/pha !! 31 $ref: '/schemas/types.yaml#/definitions/phandle-array' 32 items: !! 32 maxItems: 1 33 - items: << 34 - description: phandle to the RX que << 35 - description: RX queue instance to << 36 description: phandle to the RX queue on th 33 description: phandle to the RX queue on the NPE 37 34 38 queue-txready: 35 queue-txready: 39 $ref: /schemas/types.yaml#/definitions/pha !! 36 $ref: '/schemas/types.yaml#/definitions/phandle-array' 40 items: !! 37 maxItems: 1 41 - items: << 42 - description: phandle to the TX REA << 43 - description: TX READY queue instan << 44 description: phandle to the TX READY queue 38 description: phandle to the TX READY queue on the NPE 45 39 46 phy-mode: true 40 phy-mode: true 47 41 48 phy-handle: true 42 phy-handle: true 49 43 50 intel,npe-handle: 44 intel,npe-handle: 51 $ref: /schemas/types.yaml#/definitions/pha !! 45 $ref: '/schemas/types.yaml#/definitions/phandle-array' 52 items: !! 46 maxItems: 1 53 - items: << 54 - description: phandle to the NPE th << 55 - description: the NPE instance to u << 56 description: phandle to the NPE this ether 47 description: phandle to the NPE this ethernet instance is using 57 and the instance to use in the second ce 48 and the instance to use in the second cell 58 49 59 mdio: 50 mdio: 60 $ref: mdio.yaml# !! 51 type: object 61 unevaluatedProperties: false !! 52 $ref: "mdio.yaml#" 62 description: optional node for embedded MD 53 description: optional node for embedded MDIO controller 63 54 64 required: 55 required: 65 - compatible 56 - compatible 66 - reg 57 - reg 67 - queue-rx 58 - queue-rx 68 - queue-txready 59 - queue-txready 69 - intel,npe-handle 60 - intel,npe-handle 70 61 71 additionalProperties: false 62 additionalProperties: false 72 63 73 examples: 64 examples: 74 - | 65 - | 75 npe: npe@c8006000 { 66 npe: npe@c8006000 { 76 compatible = "intel,ixp4xx-network-proce 67 compatible = "intel,ixp4xx-network-processing-engine"; 77 reg = <0xc8006000 0x1000>, <0xc8007000 0 68 reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>; 78 }; 69 }; 79 70 80 ethernet@c8009000 { 71 ethernet@c8009000 { 81 compatible = "intel,ixp4xx-ethernet"; 72 compatible = "intel,ixp4xx-ethernet"; 82 reg = <0xc8009000 0x1000>; 73 reg = <0xc8009000 0x1000>; 83 queue-rx = <&qmgr 4>; 74 queue-rx = <&qmgr 4>; 84 queue-txready = <&qmgr 21>; 75 queue-txready = <&qmgr 21>; 85 intel,npe-handle = <&npe 1>; 76 intel,npe-handle = <&npe 1>; 86 phy-mode = "rgmii"; 77 phy-mode = "rgmii"; 87 phy-handle = <&phy1>; 78 phy-handle = <&phy1>; 88 }; 79 }; 89 80 90 ethernet@c800c000 { 81 ethernet@c800c000 { 91 compatible = "intel,ixp4xx-ethernet"; 82 compatible = "intel,ixp4xx-ethernet"; 92 reg = <0xc800c000 0x1000>; 83 reg = <0xc800c000 0x1000>; 93 queue-rx = <&qmgr 3>; 84 queue-rx = <&qmgr 3>; 94 queue-txready = <&qmgr 20>; 85 queue-txready = <&qmgr 20>; 95 intel,npe-handle = <&npe 2>; 86 intel,npe-handle = <&npe 2>; 96 phy-mode = "rgmii"; 87 phy-mode = "rgmii"; 97 phy-handle = <&phy2>; 88 phy-handle = <&phy2>; 98 89 99 mdio { 90 mdio { 100 #address-cells = <1>; 91 #address-cells = <1>; 101 #size-cells = <0>; 92 #size-cells = <0>; 102 phy1: ethernet-phy@1 { 93 phy1: ethernet-phy@1 { 103 reg = <1>; 94 reg = <1>; 104 }; 95 }; 105 phy2: ethernet-phy@2 { 96 phy2: ethernet-phy@2 { 106 reg = <2>; 97 reg = <2>; 107 }; 98 }; 108 }; 99 }; 109 }; 100 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.