ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / M2M.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 = "intenso,memory2move", "ralink,rt5350-soc";
10 model = "Intenso Memory 2 Move";
11
12 aliases {
13 led-status = &led_wifi;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 led_wifi: wifi {
24 label = "m2m:blue:wifi";
25 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
26 };
27
28 wan {
29 label = "m2m:green:wan";
30 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 power {
39 label = "power";
40 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_POWER>;
42 };
43
44 reset {
45 label = "reset";
46 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50 };
51
52 &spi0 {
53 status = "okay";
54
55 m25p80@0 {
56 #address-cells = <1>;
57 #size-cells = <1>;
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <10000000>;
61
62 partition@0 {
63 label = "Bootloader";
64 reg = <0x0 0x30000>;
65 read-only;
66 };
67
68 partition@30000 {
69 label = "Config";
70 reg = <0x30000 0x10000>;
71 read-only;
72 };
73
74 factory: partition@40000 {
75 label = "Factory";
76 reg = <0x40000 0x10000>;
77 read-only;
78 };
79
80 partition@50000 {
81 label = "firmware";
82 reg = <0x50000 0x7b0000>;
83 };
84 };
85 };
86
87 &pinctrl {
88 state_default: pinctrl0 {
89 gpio {
90 ralink,group = "i2c", "uartf";
91 ralink,function = "gpio";
92 };
93 };
94 };
95
96 &ethernet {
97 mtd-mac-address = <&factory 0x28>;
98 };
99
100 &esw {
101 mediatek,portmap = <0x2f>;
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };
111
112 &wmac {
113 ralink,mtd-eeprom = <&factory 0x0>;
114 };