developer | ec4ebe4 | 2022-04-12 11:17:45 +0800 | [diff] [blame^] | 1 | --- a/arch/arm/boot/dts/mt7629-rfb.dts |
| 2 | +++ b/arch/arm/boot/dts/mt7629-rfb.dts |
| 3 | @@ -18,6 +18,7 @@ |
| 4 | |
| 5 | chosen { |
| 6 | stdout-path = "serial0:115200n8"; |
| 7 | + bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8"; |
| 8 | }; |
| 9 | |
| 10 | gpio-keys { |
| 11 | @@ -36,6 +37,13 @@ |
| 12 | }; |
| 13 | }; |
| 14 | |
| 15 | + gsw: gsw@0 { |
| 16 | + compatible = "mediatek,mt753x"; |
| 17 | + mediatek,ethsys = <ðsys>; |
| 18 | + #address-cells = <1>; |
| 19 | + #size-cells = <0>; |
| 20 | + }; |
| 21 | + |
| 22 | memory@40000000 { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x40000000 0x10000000>; |
| 25 | @@ -69,6 +77,7 @@ |
| 26 | gmac0: mac@0 { |
| 27 | compatible = "mediatek,eth-mac"; |
| 28 | reg = <0>; |
| 29 | + mtd-mac-address = <&factory 0x2a>; |
| 30 | phy-mode = "2500base-x"; |
| 31 | fixed-link { |
| 32 | speed = <2500>; |
| 33 | @@ -80,6 +89,7 @@ |
| 34 | gmac1: mac@1 { |
| 35 | compatible = "mediatek,eth-mac"; |
| 36 | reg = <1>; |
| 37 | + mtd-mac-address = <&factory 0x24>; |
| 38 | phy-mode = "gmii"; |
| 39 | phy-handle = <&phy0>; |
| 40 | }; |
| 41 | @@ -93,6 +103,26 @@ |
| 42 | }; |
| 43 | }; |
| 44 | }; |
| 45 | + |
| 46 | +&gsw { |
| 47 | + mediatek,mdio = <&mdio>; |
| 48 | + mediatek,portmap = "llllw"; |
| 49 | + mediatek,mdio_master_pinmux = <0>; |
| 50 | + reset-gpios = <&pio 28 0>; |
| 51 | + interrupt-parent = <&pio>; |
| 52 | + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; |
| 53 | + status = "okay"; |
| 54 | + |
| 55 | + port6: port@6 { |
| 56 | + compatible = "mediatek,mt753x-port"; |
| 57 | + reg = <6>; |
| 58 | + phy-mode = "sgmii"; |
| 59 | + fixed-link { |
| 60 | + speed = <2500>; |
| 61 | + full-duplex; |
| 62 | + }; |
| 63 | + }; |
| 64 | +}; |
| 65 | |
| 66 | &i2c { |
| 67 | pinctrl-names = "default"; |