ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_ralink_mt7620a-evb.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "ralink,mt7620a-evb", "ralink,mt7620a-soc";
8 model = "Ralink MT7620a + MT7610e evaluation board";
9
10 keys {
11 compatible = "gpio-keys";
12
13 s2 {
14 label = "S2";
15 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
16 linux,code = <BTN_0>;
17 };
18
19 s3 {
20 label = "S3";
21 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
22 linux,code = <BTN_1>;
23 };
24 };
25 };
26
27 &spi0 {
28 status = "okay";
29
30 flash@0 {
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <10000000>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x0 0x30000>;
43 read-only;
44 };
45
46 partition@30000 {
47 label = "u-boot-env";
48 reg = <0x30000 0x10000>;
49 read-only;
50 };
51
52 partition@40000 {
53 label = "factory";
54 reg = <0x40000 0x10000>;
55 read-only;
56 };
57
58 partition@50000 {
59 compatible = "denx,uimage";
60 label = "firmware";
61 reg = <0x50000 0x7b0000>;
62 };
63 };
64 };
65 };
66
67 &state_default {
68 gpio {
69 groups = "i2c", "uartf";
70 function = "gpio";
71 };
72 };
73
74 &ethernet {
75 pinctrl-names = "default";
76 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
77
78 mediatek,portmap = "llllw";
79
80 port@4 {
81 status = "okay";
82 phy-mode = "rgmii";
83 phy-handle = <&phy4>;
84 };
85
86 port@5 {
87 status = "okay";
88 phy-mode = "rgmii";
89 phy-handle = <&phy5>;
90 };
91
92 mdio-bus {
93 status = "okay";
94
95 phy4: ethernet-phy@4 {
96 reg = <4>;
97 phy-mode = "rgmii";
98 };
99
100 phy5: ethernet-phy@5 {
101 reg = <5>;
102 phy-mode = "rgmii";
103 };
104 };
105 };
106
107 &gsw {
108 mediatek,port4-gmac;
109 mediatek,ephy-base = /bits/ 8 <8>;
110 };
111
112 &sdhci {
113 status = "okay";
114 };
115
116 &pcie {
117 status = "okay";
118 };
119
120 &ehci {
121 status = "okay";
122 };
123
124 &ohci {
125 status = "okay";
126 };