b2368e4dcd303b834a068eb069e3182984d07e79
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt5350_intenso_memory2move.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "intenso,memory2move", "ralink,rt5350-soc";
8 model = "Intenso Memory 2 Move";
9
10 aliases {
11 led-boot = &led_wifi;
12 led-failsafe = &led_wifi;
13 led-running = &led_wifi;
14 led-upgrade = &led_wifi;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_wifi: wifi {
25 label = "blue:wifi";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
27 };
28
29 wan {
30 label = "green:wan";
31 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 power {
40 label = "power";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_POWER>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51 };
52
53 &spi0 {
54 status = "okay";
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "Bootloader";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "Config";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 compatible = "nvmem-cells";
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 #address-cells = <1>;
83 #size-cells = <1>;
84 read-only;
85
86 eeprom_factory_0: eeprom@0 {
87 reg = <0x0 0x200>;
88 };
89
90 macaddr_factory_28: macaddr@28 {
91 reg = <0x28 0x6>;
92 };
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x50000 0x7b0000>;
99 };
100 };
101 };
102 };
103
104 &state_default {
105 gpio {
106 groups = "i2c", "uartf";
107 function = "gpio";
108 };
109 };
110
111 &ethernet {
112 nvmem-cells = <&macaddr_factory_28>;
113 nvmem-cell-names = "mac-address";
114 };
115
116 &esw {
117 mediatek,portmap = <0x2f>;
118 };
119
120 &wmac {
121 nvmem-cells = <&eeprom_factory_0>;
122 nvmem-cell-names = "eeprom";
123 };