16ee184ed260e0c9ca78e010d821d842d4152c7d
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / M4-8M.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "M4", "ralink,rt5350-soc";
7 model = "Poray M4";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "m4:blue:status";
14 gpios = <&gpio0 9 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 10 1>;
27 linux,code = <0x198>;
28 };
29 };
30 };
31
32 &spi0 {
33 status = "okay";
34
35 m25p80@0 {
36 #address-cells = <1>;
37 #size-cells = <1>;
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 linux,modalias = "m25p80", "gd25q64";
41 spi-max-frequency = <10000000>;
42
43 partition@0 {
44 label = "u-boot";
45 reg = <0x0 0x30000>;
46 read-only;
47 };
48
49 partition@30000 {
50 label = "u-boot-env";
51 reg = <0x30000 0x10000>;
52 read-only;
53 };
54
55 factory: partition@40000 {
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 read-only;
59 };
60
61 partition@50000 {
62 label = "firmware";
63 reg = <0x50000 0x7b0000>;
64 };
65 };
66 };
67
68 &pinctrl {
69 state_default: pinctrl0 {
70 gpio {
71 ralink,group = "i2c", "jtag", "uartf";
72 ralink,function = "gpio";
73 };
74 };
75 };
76
77 &ethernet {
78 mtd-mac-address = <&factory 0x4>;
79 };
80
81 &esw {
82 mediatek,portmap = <0x2f>;
83 mediatek,led_polarity = <1>;
84 };
85
86 &wmac {
87 ralink,mtd-eeprom = <&factory 0>;
88 ralink,led-polarity = <1>;
89 };
90
91 &ehci {
92 status = "okay";
93 };
94
95 &ohci {
96 status = "okay";
97 };