1*c66ec88fSEmmanuel VadotRalink Frame Engine Ethernet controller 2*c66ec88fSEmmanuel Vadot======================================= 3*c66ec88fSEmmanuel Vadot 4*c66ec88fSEmmanuel VadotThe Ralink frame engine ethernet controller can be found on Ralink and 5*c66ec88fSEmmanuel VadotMediatek SoCs (RT288x, RT3x5x, RT366x, RT388x, rt5350, mt7620, mt7621, mt76x8). 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotDepending on the SoC, there is a number of ports connected to the CPU port 8*c66ec88fSEmmanuel Vadotdirectly and/or via a (gigabit-)switch. 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot* Ethernet controller node 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel VadotRequired properties: 13*c66ec88fSEmmanuel Vadot- compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth", 14*c66ec88fSEmmanuel Vadot "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth", 15*c66ec88fSEmmanuel Vadot "mediatek,mt7620-eth", "mediatek,mt7621-eth" 16*c66ec88fSEmmanuel Vadot- reg: Address and length of the register set for the device 17*c66ec88fSEmmanuel Vadot- interrupts: Should contain the frame engines interrupt 18*c66ec88fSEmmanuel Vadot- resets: Should contain the frame engines resets 19*c66ec88fSEmmanuel Vadot- reset-names: Should contain the reset names "fe". If a switch is present 20*c66ec88fSEmmanuel Vadot "esw" is also required. 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel Vadot* Ethernet port node 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel VadotRequired properties: 26*c66ec88fSEmmanuel Vadot- compatible: Should be "ralink,eth-port" 27*c66ec88fSEmmanuel Vadot- reg: The number of the physical port 28*c66ec88fSEmmanuel Vadot- phy-handle: reference to the node describing the phy 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel VadotExample: 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel Vadotmdio-bus { 33*c66ec88fSEmmanuel Vadot ... 34*c66ec88fSEmmanuel Vadot phy0: ethernet-phy@0 { 35*c66ec88fSEmmanuel Vadot phy-mode = "mii"; 36*c66ec88fSEmmanuel Vadot reg = <0>; 37*c66ec88fSEmmanuel Vadot }; 38*c66ec88fSEmmanuel Vadot}; 39*c66ec88fSEmmanuel Vadot 40*c66ec88fSEmmanuel Vadotethernet@400000 { 41*c66ec88fSEmmanuel Vadot compatible = "ralink,rt2880-eth"; 42*c66ec88fSEmmanuel Vadot reg = <0x00400000 10000>; 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel Vadot #address-cells = <1>; 45*c66ec88fSEmmanuel Vadot #size-cells = <0>; 46*c66ec88fSEmmanuel Vadot 47*c66ec88fSEmmanuel Vadot resets = <&rstctrl 18>; 48*c66ec88fSEmmanuel Vadot reset-names = "fe"; 49*c66ec88fSEmmanuel Vadot 50*c66ec88fSEmmanuel Vadot interrupt-parent = <&cpuintc>; 51*c66ec88fSEmmanuel Vadot interrupts = <5>; 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot port@0 { 54*c66ec88fSEmmanuel Vadot compatible = "ralink,eth-port"; 55*c66ec88fSEmmanuel Vadot reg = <0>; 56*c66ec88fSEmmanuel Vadot phy-handle = <&phy0>; 57*c66ec88fSEmmanuel Vadot }; 58*c66ec88fSEmmanuel Vadot 59*c66ec88fSEmmanuel Vadot}; 60