ramips: mt7621: update dts/defconfig for DSA
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_mediatek_mt7621-eval-board.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "Mediatek MT7621 evaluation board";
8
9 chosen {
10 bootargs = "console=ttyS0,57600";
11 };
12 };
13
14 &nand {
15 status = "okay";
16
17 partitions {
18 compatible = "fixed-partitions";
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 partition@0 {
23 label = "uboot";
24 reg = <0x00000 0x80000>; /* 64 KB */
25 };
26
27 partition@80000 {
28 label = "uboot_env";
29 reg = <0x80000 0x80000>; /* 64 KB */
30 };
31
32 partition@100000 {
33 label = "factory";
34 reg = <0x100000 0x40000>;
35 };
36
37 partition@140000 {
38 label = "rootfs";
39 reg = <0x140000 0xec0000>;
40 };
41 };
42 };
43
44 &sdhci {
45 status = "okay";
46 };
47
48 &switch0 {
49 ports {
50 port@0 {
51 status = "okay";
52 label = "lan1";
53 };
54
55 port@1 {
56 status = "okay";
57 label = "lan2";
58 };
59
60 port@2 {
61 status = "okay";
62 label = "lan3";
63 };
64
65 port@3 {
66 status = "okay";
67 label = "lan4";
68 };
69
70 port@4 {
71 status = "okay";
72 label = "wan";
73 };
74 };
75 };
76
77 &state_default {
78 gpio {
79 groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
80 function = "gpio";
81 };
82 };