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