ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / MT7620a_MT7610e.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 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 wps {
18 label = "wps";
19 gpios = <&gpio0 12 1>;
20 linux,code = <BTN_0>;
21 };
22
23 reset {
24 label = "reset";
25 gpios = <&gpio0 13 1>;
26 linux,code = <BTN_1>;
27 };
28 };
29 };
30
31 &gpio0 {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 m25p80@0 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <1000000>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61 };
62
63 partition@50000 {
64 label = "firmware";
65 reg = <0x50000 0x7b0000>;
66 };
67 };
68 };
69
70 &ethernet {
71 status = "okay";
72 pinctrl-names = "default";
73 pinctrl-0 = <&ephy_pins>;
74 mediatek,portmap = "llllw";
75 };
76
77 &gsw {
78 mediatek,port4 = "ephy";
79 };
80
81 &sdhci {
82 status = "okay";
83 };
84
85 &pcie {
86 status = "okay";
87 };