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