1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/net/dsa/mediatek,mt7628-esw.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Mediatek MT7628 Embedded Ethernet Switch 8 9maintainers: 10 - Joris Vaisvila <joey@tinyisr.com> 11 12description: 13 The MT7628 SoC's built-in Ethernet Switch has five user ports and one 14 internally connected CPU port. The user ports are all connected to the SoC's 15 integrated Fast Ethernet PHYs. The switch registers are directly mapped in 16 the SoC's memory. 17 18allOf: 19 - $ref: dsa.yaml#/$defs/ethernet-ports 20 21properties: 22 compatible: 23 const: mediatek,mt7628-esw 24 25 reg: 26 maxItems: 1 27 28 resets: 29 items: 30 - description: internal switch block reset 31 - description: internal phy package reset 32 33 reset-names: 34 items: 35 - const: esw 36 - const: ephy 37 38required: 39 - compatible 40 - reg 41 - resets 42 - reset-names 43 - ethernet-ports 44 45unevaluatedProperties: false 46 47examples: 48 - | 49 switch@10110000 { 50 compatible = "mediatek,mt7628-esw"; 51 reg = <0x10110000 0x8000>; 52 53 resets = <&sysc 23>, <&sysc 24>; 54 reset-names = "esw", "ephy"; 55 56 ethernet-ports { 57 #address-cells = <1>; 58 #size-cells = <0>; 59 60 ethernet-port@0 { 61 reg = <0>; 62 phy-mode = "internal"; 63 }; 64 65 ethernet-port@1 { 66 reg = <1>; 67 phy-mode = "internal"; 68 }; 69 70 ethernet-port@2 { 71 reg = <2>; 72 phy-mode = "internal"; 73 }; 74 75 ethernet-port@3 { 76 reg = <3>; 77 phy-mode = "internal"; 78 }; 79 80 ethernet-port@4 { 81 reg = <4>; 82 phy-mode = "internal"; 83 }; 84 85 ethernet-port@6 { 86 reg = <6>; 87 phy-mode = "internal"; 88 ethernet = <ðernet>; 89 90 fixed-link { 91 speed = <1000>; 92 full-duplex; 93 }; 94 }; 95 }; 96 }; 97