1 Hisilicon hip04 Ethernet Controller 1 Hisilicon hip04 Ethernet Controller 2 2 3 * Ethernet controller node 3 * Ethernet controller node 4 4 5 Required properties: 5 Required properties: 6 - compatible: should be "hisilicon,hip04-mac". 6 - compatible: should be "hisilicon,hip04-mac". 7 - reg: address and length of the register set 7 - reg: address and length of the register set for the device. 8 - interrupts: interrupt for the device. 8 - interrupts: interrupt for the device. 9 - port-handle: <phandle port channel> 9 - port-handle: <phandle port channel> 10 phandle, specifies a reference to the 10 phandle, specifies a reference to the syscon ppe node 11 port, port number connected to the con 11 port, port number connected to the controller 12 channel, recv channel start from chann 12 channel, recv channel start from channel * number (RX_DESC_NUM) 13 group, field in the pkg desc, in gener 13 group, field in the pkg desc, in general, it is the same as the port. 14 - phy-mode: see ethernet.txt [1]. 14 - phy-mode: see ethernet.txt [1]. 15 15 16 Optional properties: 16 Optional properties: 17 - phy-handle: see ethernet.txt [1]. 17 - phy-handle: see ethernet.txt [1]. 18 18 19 [1] Documentation/devicetree/bindings/net/ethe 19 [1] Documentation/devicetree/bindings/net/ethernet.txt 20 20 21 21 22 * MDIO bus node: 22 * MDIO bus node: 23 23 24 Required properties: 24 Required properties: 25 25 26 - compatible: should be "hisilicon,mdio". 26 - compatible: should be "hisilicon,mdio". 27 - Inherits from MDIO bus node binding [2] 27 - Inherits from MDIO bus node binding [2] 28 [2] Documentation/devicetree/bindings/net/phy. 28 [2] Documentation/devicetree/bindings/net/phy.txt 29 29 30 Example: 30 Example: 31 mdio { 31 mdio { 32 compatible = "hisilicon,mdio"; 32 compatible = "hisilicon,mdio"; 33 reg = <0x28f1000 0x1000>; 33 reg = <0x28f1000 0x1000>; 34 #address-cells = <1>; 34 #address-cells = <1>; 35 #size-cells = <0>; 35 #size-cells = <0>; 36 36 37 phy0: ethernet-phy@0 { 37 phy0: ethernet-phy@0 { 38 compatible = "ethernet 38 compatible = "ethernet-phy-ieee802.3-c22"; 39 reg = <0>; 39 reg = <0>; 40 marvell,reg-init = <18 40 marvell,reg-init = <18 0x14 0 0x8001>; 41 }; 41 }; 42 42 43 phy1: ethernet-phy@1 { 43 phy1: ethernet-phy@1 { 44 compatible = "ethernet 44 compatible = "ethernet-phy-ieee802.3-c22"; 45 reg = <1>; 45 reg = <1>; 46 marvell,reg-init = <18 46 marvell,reg-init = <18 0x14 0 0x8001>; 47 }; 47 }; 48 }; 48 }; 49 49 50 ppe: ppe@28c0000 { 50 ppe: ppe@28c0000 { 51 compatible = "hisilicon,hip04- 51 compatible = "hisilicon,hip04-ppe", "syscon"; 52 reg = <0x28c0000 0x10000>; 52 reg = <0x28c0000 0x10000>; 53 }; 53 }; 54 54 55 fe: ethernet@28b0000 { 55 fe: ethernet@28b0000 { 56 compatible = "hisilicon,hip04- 56 compatible = "hisilicon,hip04-mac"; 57 reg = <0x28b0000 0x10000>; 57 reg = <0x28b0000 0x10000>; 58 interrupts = <0 413 4>; 58 interrupts = <0 413 4>; 59 phy-mode = "mii"; 59 phy-mode = "mii"; 60 port-handle = <&ppe 31 0 31>; 60 port-handle = <&ppe 31 0 31>; 61 }; 61 }; 62 62 63 ge0: ethernet@2800000 { 63 ge0: ethernet@2800000 { 64 compatible = "hisilicon,hip04- 64 compatible = "hisilicon,hip04-mac"; 65 reg = <0x2800000 0x10000>; 65 reg = <0x2800000 0x10000>; 66 interrupts = <0 402 4>; 66 interrupts = <0 402 4>; 67 phy-mode = "sgmii"; 67 phy-mode = "sgmii"; 68 port-handle = <&ppe 0 1 0>; 68 port-handle = <&ppe 0 1 0>; 69 phy-handle = <&phy0>; 69 phy-handle = <&phy0>; 70 }; 70 }; 71 71 72 ge8: ethernet@2880000 { 72 ge8: ethernet@2880000 { 73 compatible = "hisilicon,hip04- 73 compatible = "hisilicon,hip04-mac"; 74 reg = <0x2880000 0x10000>; 74 reg = <0x2880000 0x10000>; 75 interrupts = <0 410 4>; 75 interrupts = <0 410 4>; 76 phy-mode = "sgmii"; 76 phy-mode = "sgmii"; 77 port-handle = <&ppe 8 2 8>; 77 port-handle = <&ppe 8 2 8>; 78 phy-handle = <&phy1>; 78 phy-handle = <&phy1>; 79 }; 79 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.