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