1Mediatek MT7530 Ethernet switch 2================================ 3 4Required properties: 5 6- compatible: Must be compatible = "mediatek,mt7530"; 7- #address-cells: Must be 1. 8- #size-cells: Must be 0. 9- mediatek,mcm: Boolean; if defined, indicates that either MT7530 is the part 10 on multi-chip module belong to MT7623A has or the remotely standalone 11 chip as the function MT7623N reference board provided for. 12- core-supply: Phandle to the regulator node necessary for the core power. 13- io-supply: Phandle to the regulator node necessary for the I/O power. 14 See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt 15 for details for the regulator setup on these boards. 16 17If the property mediatek,mcm isn't defined, following property is required 18 19- reset-gpios: Should be a gpio specifier for a reset line. 20 21Else, following properties are required 22 23- resets : Phandle pointing to the system reset controller with 24 line index for the ethsys. 25- reset-names : Should be set to "mcm". 26 27Required properties for the child nodes within ports container: 28 29- reg: Port address described must be 6 for CPU port and from 0 to 5 for 30 user ports. 31- phy-mode: String, must be either "trgmii" or "rgmii" for port labeled 32 "cpu". 33 34See Documentation/devicetree/bindings/net/dsa/dsa.txt for a list of additional 35required, optional properties and how the integrated switch subnodes must 36be specified. 37 38Example: 39 40 &mdio0 { 41 switch@0 { 42 compatible = "mediatek,mt7530"; 43 #address-cells = <1>; 44 #size-cells = <0>; 45 reg = <0>; 46 47 core-supply = <&mt6323_vpa_reg>; 48 io-supply = <&mt6323_vemc3v3_reg>; 49 reset-gpios = <&pio 33 0>; 50 51 ports { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 reg = <0>; 55 port@0 { 56 reg = <0>; 57 label = "lan0"; 58 }; 59 60 port@1 { 61 reg = <1>; 62 label = "lan1"; 63 }; 64 65 port@2 { 66 reg = <2>; 67 label = "lan2"; 68 }; 69 70 port@3 { 71 reg = <3>; 72 label = "lan3"; 73 }; 74 75 port@4 { 76 reg = <4>; 77 label = "wan"; 78 }; 79 80 port@6 { 81 reg = <6>; 82 label = "cpu"; 83 ethernet = <&gmac0>; 84 phy-mode = "trgmii"; 85 fixed-link { 86 speed = <1000>; 87 full-duplex; 88 }; 89 }; 90 }; 91 }; 92 }; 93