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