8438d12d3a8de03d5c8e6eda694a4ef9cd67a24e
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / F7C027.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "F7C027", "ralink,rt5350-soc";
7 model = "Belkin F7C027";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "f7c027:blue:status";
14 gpios = <&gpio0 7 1>;
15 };
16
17 power {
18 label = "f7c027:blue:power";
19 gpios = <&gpio0 9 1>;
20 };
21
22 orange {
23 label = "f7c027:orange:status";
24 gpios = <&gpio0 11 1>;
25 };
26
27 relay {
28 label = "f7c027:device:relay";
29 gpios = <&gpio0 13 0>;
30 };
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 poll-interval = <20>;
38
39 top {
40 label = "top";
41 gpios = <&gpio0 10 1>;
42 linux,code = <0x198>;
43 };
44
45 power {
46 label = "power";
47 gpios = <&gpio0 12 1>;
48 linux,code = <0x100>;
49 };
50
51 sensor {
52 label = "sensor";
53 gpios = <&gpio0 14 1>;
54 linux,code = <0x101>;
55 };
56 };
57 };
58
59 &spi0 {
60 status = "okay";
61
62 m25p80@0 {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "jedec,spi-nor";
66 reg = <0 0>;
67 linux,modalias = "m25p80", "mx25l12805d";
68 spi-max-frequency = <10000000>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 label = "firmware";
90 reg = <0x50000 0x770000>;
91 };
92
93 partition@7c0000 {
94 label = "firmware2";
95 reg = <0x7c0000 0x770000>;
96 };
97
98 partition@f30000 {
99 label = "belkin_settings";
100 reg = <0xf30000 0xa0000>;
101 };
102
103 partition@fd0000 {
104 label = "unknown";
105 reg = <0xfd0000 0x10000>;
106 };
107
108 partition@fe0000 {
109 label = "nvram";
110 reg = <0xfe0000 0x10000>;
111 };
112
113 partition@ff0000 {
114 label = "user_factory";
115 reg = <0xff0000 0x10000>;
116 };
117 };
118 };
119
120 &wmac {
121 ralink,mtd-eeprom = <&factory 0>;
122 };
123
124 &pinctrl {
125 state_default: pinctrl0 {
126 gpio {
127 ralink,group = "i2c", "jtag", "uartf";
128 ralink,function = "gpio";
129 };
130 };
131 };