ramips: add support for belkin F7C027 wemo/homeautomatisation plug
[openwrt/openwrt.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 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "spi", "uartlite", "jtag", "sdram";
12 ralink,uartmux = "gpio";
13 ralink,wdtmux = <1>;
14 };
15
16 gpio0: gpio@600 {
17 status = "okay";
18 };
19
20 spi@b00 {
21 status = "okay";
22 m25p80@0 {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 compatible = "mx25l12805d";
26 reg = <0 0>;
27 linux,modalias = "m25p80", "mx25l12805d";
28 spi-max-frequency = <10000000>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 label = "factory";
44 reg = <0x40000 0x10000>;
45 read-only;
46 };
47
48 partition@50000 {
49 label = "firmware";
50 reg = <0x50000 0x770000>;
51 };
52
53 partition@7c0000 {
54 label = "firmware2";
55 reg = <0x7c0000 0x770000>;
56 };
57
58 partition@f30000 {
59 label = "belkin_settings";
60 reg = <0xf30000 0xa0000>;
61 };
62
63 partition@fd0000 {
64 label = "unknown";
65 reg = <0xfd0000 0x10000>;
66 };
67
68 partition@fe0000 {
69 label = "nvram";
70 reg = <0xfe0000 0x10000>;
71 };
72
73 partition@ff0000 {
74 label = "user_factory";
75 reg = <0xff0000 0x10000>;
76 };
77 };
78 };
79 };
80
81
82 wmac@10180000 {
83 status = "okay";
84 };
85
86 gpio-leds {
87 compatible = "gpio-leds";
88 status {
89 label = "belkin:blue:status";
90 gpios = <&gpio0 7 1>;
91 };
92 power {
93 label = "belkin:blue:power";
94 gpios = <&gpio0 9 1>;
95 };
96 orange {
97 label = "belkin:orange:status";
98 gpios = <&gpio0 11 1>;
99 };
100 relay {
101 label = "belkin:device:relay";
102 gpios = <&gpio0 13 0>;
103 };
104 };
105 gpio-keys-polled {
106 compatible = "gpio-keys-polled";
107 #address-cells = <1>;
108 #size-cells = <0>;
109 poll-interval = <20>;
110 top {
111 label = "top";
112 gpios = <&gpio0 10 1>;
113 linux,code = <0x198>;
114 };
115 power {
116 label = "power";
117 gpios = <&gpio0 12 1>;
118 linux,code = <0x100>;
119 };
120 sensor {
121 label = "sensor";
122 gpios = <&gpio0 14 1>;
123 linux,code = <0x101>;
124 };
125 };
126 };