99ab0a939c15cc7d5c5c438cfd27d2c84721c0c6
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt5350_nexx_wt1520.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "nexx,wt1520", "ralink,rt5350-soc";
8
9 keys {
10 compatible = "gpio-keys-polled";
11 poll-interval = <20>;
12
13 reset {
14 label = "reset";
15 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
17 };
18 };
19 };
20
21 &spi0 {
22 status = "okay";
23
24 flash@0 {
25 compatible = "jedec,spi-nor";
26 reg = <0>;
27 spi-max-frequency = <10000000>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x0 0x30000>;
37 read-only;
38 };
39
40 partition@30000 {
41 label = "u-boot-env";
42 reg = <0x30000 0x10000>;
43 read-only;
44 };
45
46 factory: partition@40000 {
47 compatible = "nvmem-cells";
48 label = "factory";
49 reg = <0x40000 0x10000>;
50 #address-cells = <1>;
51 #size-cells = <1>;
52 read-only;
53
54 eeprom_factory_0: eeprom@0 {
55 reg = <0x0 0x200>;
56 };
57
58 macaddr_factory_4: macaddr@4 {
59 reg = <0x4 0x6>;
60 };
61 };
62
63 firmware: partition@50000 {
64 compatible = "denx,uimage";
65 label = "firmware";
66 /* reg property is set based on flash size in DTS files */
67 };
68 };
69 };
70 };
71
72 &state_default {
73 gpio {
74 groups = "jtag", "uartf";
75 function = "gpio";
76 };
77 };
78
79 &ethernet {
80 nvmem-cells = <&macaddr_factory_4>;
81 nvmem-cell-names = "mac-address";
82 };
83
84 &wmac {
85 nvmem-cells = <&eeprom_factory_0>;
86 nvmem-cell-names = "eeprom";
87 };