1ef80c32dSZhangfei GaoHisilicon hip04 Ethernet Controller 2ef80c32dSZhangfei Gao 3ef80c32dSZhangfei Gao* Ethernet controller node 4ef80c32dSZhangfei Gao 5ef80c32dSZhangfei GaoRequired properties: 6ef80c32dSZhangfei Gao- compatible: should be "hisilicon,hip04-mac". 7ef80c32dSZhangfei Gao- reg: address and length of the register set for the device. 8ef80c32dSZhangfei Gao- interrupts: interrupt for the device. 9ef80c32dSZhangfei Gao- port-handle: <phandle port channel> 10ef80c32dSZhangfei Gao phandle, specifies a reference to the syscon ppe node 11ef80c32dSZhangfei Gao port, port number connected to the controller 12ef80c32dSZhangfei Gao channel, recv channel start from channel * number (RX_DESC_NUM) 13*bf962440SJiangfeng Xiao group, field in the pkg desc, in general, it is the same as the port. 14ef80c32dSZhangfei Gao- phy-mode: see ethernet.txt [1]. 15ef80c32dSZhangfei Gao 16ef80c32dSZhangfei GaoOptional properties: 17ef80c32dSZhangfei Gao- phy-handle: see ethernet.txt [1]. 18ef80c32dSZhangfei Gao 19ef80c32dSZhangfei Gao[1] Documentation/devicetree/bindings/net/ethernet.txt 20ef80c32dSZhangfei Gao 21ef80c32dSZhangfei Gao 22ef80c32dSZhangfei Gao* Ethernet ppe node: 23ef80c32dSZhangfei GaoControl rx & tx fifos of all ethernet controllers. 24ef80c32dSZhangfei GaoHave 2048 recv channels shared by all ethernet controllers, only if no overlap. 25ef80c32dSZhangfei GaoEach controller's recv channel start from channel * number (RX_DESC_NUM). 26ef80c32dSZhangfei Gao 27ef80c32dSZhangfei GaoRequired properties: 28ef80c32dSZhangfei Gao- compatible: "hisilicon,hip04-ppe", "syscon". 29ef80c32dSZhangfei Gao- reg: address and length of the register set for the device. 30ef80c32dSZhangfei Gao 31ef80c32dSZhangfei Gao 32ef80c32dSZhangfei Gao* MDIO bus node: 33ef80c32dSZhangfei Gao 34ef80c32dSZhangfei GaoRequired properties: 35ef80c32dSZhangfei Gao 36fc7e37c6Shuangdaode- compatible: should be "hisilicon,mdio". 37ef80c32dSZhangfei Gao- Inherits from MDIO bus node binding [2] 38ef80c32dSZhangfei Gao[2] Documentation/devicetree/bindings/net/phy.txt 39ef80c32dSZhangfei Gao 40ef80c32dSZhangfei GaoExample: 41ef80c32dSZhangfei Gao mdio { 42fc7e37c6Shuangdaode compatible = "hisilicon,mdio"; 43ef80c32dSZhangfei Gao reg = <0x28f1000 0x1000>; 44ef80c32dSZhangfei Gao #address-cells = <1>; 45ef80c32dSZhangfei Gao #size-cells = <0>; 46ef80c32dSZhangfei Gao 47ef80c32dSZhangfei Gao phy0: ethernet-phy@0 { 48ef80c32dSZhangfei Gao compatible = "ethernet-phy-ieee802.3-c22"; 49ef80c32dSZhangfei Gao reg = <0>; 50ef80c32dSZhangfei Gao marvell,reg-init = <18 0x14 0 0x8001>; 51ef80c32dSZhangfei Gao }; 52ef80c32dSZhangfei Gao 53ef80c32dSZhangfei Gao phy1: ethernet-phy@1 { 54ef80c32dSZhangfei Gao compatible = "ethernet-phy-ieee802.3-c22"; 55ef80c32dSZhangfei Gao reg = <1>; 56ef80c32dSZhangfei Gao marvell,reg-init = <18 0x14 0 0x8001>; 57ef80c32dSZhangfei Gao }; 58ef80c32dSZhangfei Gao }; 59ef80c32dSZhangfei Gao 60ef80c32dSZhangfei Gao ppe: ppe@28c0000 { 61ef80c32dSZhangfei Gao compatible = "hisilicon,hip04-ppe", "syscon"; 62ef80c32dSZhangfei Gao reg = <0x28c0000 0x10000>; 63ef80c32dSZhangfei Gao }; 64ef80c32dSZhangfei Gao 65ef80c32dSZhangfei Gao fe: ethernet@28b0000 { 66ef80c32dSZhangfei Gao compatible = "hisilicon,hip04-mac"; 67ef80c32dSZhangfei Gao reg = <0x28b0000 0x10000>; 68ef80c32dSZhangfei Gao interrupts = <0 413 4>; 69ef80c32dSZhangfei Gao phy-mode = "mii"; 70*bf962440SJiangfeng Xiao port-handle = <&ppe 31 0 31>; 71ef80c32dSZhangfei Gao }; 72ef80c32dSZhangfei Gao 73ef80c32dSZhangfei Gao ge0: ethernet@2800000 { 74ef80c32dSZhangfei Gao compatible = "hisilicon,hip04-mac"; 75ef80c32dSZhangfei Gao reg = <0x2800000 0x10000>; 76ef80c32dSZhangfei Gao interrupts = <0 402 4>; 77ef80c32dSZhangfei Gao phy-mode = "sgmii"; 78*bf962440SJiangfeng Xiao port-handle = <&ppe 0 1 0>; 79ef80c32dSZhangfei Gao phy-handle = <&phy0>; 80ef80c32dSZhangfei Gao }; 81ef80c32dSZhangfei Gao 82ef80c32dSZhangfei Gao ge8: ethernet@2880000 { 83ef80c32dSZhangfei Gao compatible = "hisilicon,hip04-mac"; 84ef80c32dSZhangfei Gao reg = <0x2880000 0x10000>; 85ef80c32dSZhangfei Gao interrupts = <0 410 4>; 86ef80c32dSZhangfei Gao phy-mode = "sgmii"; 87*bf962440SJiangfeng Xiao port-handle = <&ppe 8 2 8>; 88ef80c32dSZhangfei Gao phy-handle = <&phy1>; 89ef80c32dSZhangfei Gao }; 90