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