ramips: cleanup SPI flash device tree properties usage
[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 spi-max-frequency = <10000000>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 read-only;
75 };
76
77 partition@30000 {
78 label = "u-boot-env";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 factory: partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87 };
88
89 partition@50000 {
90 label = "firmware";
91 reg = <0x50000 0x770000>;
92 };
93
94 partition@7c0000 {
95 label = "firmware2";
96 reg = <0x7c0000 0x770000>;
97 };
98
99 partition@f30000 {
100 label = "belkin_settings";
101 reg = <0xf30000 0xa0000>;
102 };
103
104 partition@fd0000 {
105 label = "unknown";
106 reg = <0xfd0000 0x10000>;
107 };
108
109 partition@fe0000 {
110 label = "nvram";
111 reg = <0xfe0000 0x10000>;
112 };
113
114 partition@ff0000 {
115 label = "user_factory";
116 reg = <0xff0000 0x10000>;
117 };
118 };
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };
124
125 &pinctrl {
126 state_default: pinctrl0 {
127 gpio {
128 ralink,group = "i2c", "jtag", "uartf";
129 ralink,function = "gpio";
130 };
131 };
132 };