ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / MT7620a.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
9 model = "Ralink MT7620a + MT7610e evaluation board";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 s2 {
18 label = "S2";
19 gpios = <&gpio0 1 1>;
20 linux,code = <BTN_0>;
21 };
22
23 s3 {
24 label = "S3";
25 gpios = <&gpio0 2 1>;
26 linux,code = <BTN_1>;
27 };
28 };
29 };
30
31 &spi0 {
32 status = "okay";
33
34 m25p80@0 {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <10000000>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0x30000>;
44 read-only;
45 };
46
47 partition@30000 {
48 label = "u-boot-env";
49 reg = <0x30000 0x10000>;
50 read-only;
51 };
52
53 factory: partition@40000 {
54 label = "factory";
55 reg = <0x40000 0x10000>;
56 read-only;
57 };
58
59 partition@50000 {
60 label = "firmware";
61 reg = <0x50000 0x7b0000>;
62 };
63 };
64 };
65
66 &pinctrl {
67 state_default: pinctrl0 {
68 gpio {
69 ralink,group = "i2c", "uartf";
70 ralink,function = "gpio";
71 };
72 };
73 };
74
75 &ethernet {
76 status = "okay";
77 pinctrl-names = "default";
78 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
79 mediatek,portmap = "llllw";
80
81 port@4 {
82 status = "okay";
83 phy-mode = "rgmii";
84 phy-handle = <&phy4>;
85 };
86
87 port@5 {
88 status = "okay";
89 phy-mode = "rgmii";
90 phy-handle = <&phy5>;
91 };
92
93 mdio-bus {
94 status = "okay";
95
96 phy4: ethernet-phy@4 {
97 reg = <4>;
98 phy-mode = "rgmii";
99 };
100
101 phy5: ethernet-phy@5 {
102 reg = <5>;
103 phy-mode = "rgmii";
104 };
105 };
106 };
107
108 &gsw {
109 mediatek,port4 = "gmac";
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 };