armvirt: switch to Kernel 5.10
[openwrt/staging/hauke.git] / target / linux / mediatek / patches-5.4 / 0005-dts-mt7629-add-gsw.patch
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 = <&ethsys>;
18 + #address-cells = <1>;
19 + #size-cells = <0>;
20 + };
21 +
22 memory@40000000 {
23 device_type = "memory";
24 reg = <0x40000000 0x10000000>;
25 @@ -70,6 +78,10 @@
26 compatible = "mediatek,eth-mac";
27 reg = <0>;
28 phy-mode = "2500base-x";
29 +
30 + nvmem-cells = <&macaddr_factory_2a>;
31 + nvmem-cell-names = "mac-address";
32 +
33 fixed-link {
34 speed = <2500>;
35 full-duplex;
36 @@ -82,6 +94,9 @@
37 reg = <1>;
38 phy-mode = "gmii";
39 phy-handle = <&phy0>;
40 +
41 + nvmem-cells = <&macaddr_factory_24>;
42 + nvmem-cell-names = "mac-address";
43 };
44
45 mdio: mdio-bus {
46 @@ -94,6 +109,26 @@
47 };
48 };
49
50 +&gsw {
51 + mediatek,mdio = <&mdio>;
52 + mediatek,portmap = "llllw";
53 + mediatek,mdio_master_pinmux = <0>;
54 + reset-gpios = <&pio 28 0>;
55 + interrupt-parent = <&pio>;
56 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
57 + status = "okay";
58 +
59 + port6: port@6 {
60 + compatible = "mediatek,mt753x-port";
61 + reg = <6>;
62 + phy-mode = "sgmii";
63 + fixed-link {
64 + speed = <2500>;
65 + full-duplex;
66 + };
67 + };
68 +};
69 +
70 &i2c {
71 pinctrl-names = "default";
72 pinctrl-0 = <&i2c_pins>;
73 @@ -272,3 +307,17 @@
74 pinctrl-0 = <&watchdog_pins>;
75 status = "okay";
76 };
77 +
78 +&factory {
79 + compatible = "nvmem-cells";
80 + #address-cells = <1>;
81 + #size-cells = <1>;
82 +
83 + macaddr_factory_24: macaddr@24 {
84 + reg = <0x24 0x6>;
85 + };
86 +
87 + macaddr_factory_2a: macaddr@2a {
88 + reg = <0x2a 0x6>;
89 + };
90 +};