ralink: add WRTnode2 platform and led support
[librecmc/librecmc.git] / target / linux / ramips / dts / WRTNODE2.dtsi
1 /dts-v1/;
2
3 /include/ "mt7628an.dtsi"
4
5 / {
6         chosen {
7                 bootargs = "console=ttyS0,115200";
8         };
9
10         palmbus@10000000 {
11                 spi@b00 {
12                         status = "okay";
13
14                         m25p80@0 {
15                                 #address-cells = <1>;
16                                 #size-cells = <1>;
17                                 compatible = "jedec,spi-nor";
18                                 reg = <0 0>;
19                                 spi-max-frequency = <10000000>;
20                                 m25p,chunked-io = <32>;
21
22                                 partition@0 {
23                                         label = "u-boot";
24                                         reg = <0x0 0x30000>;
25                                         read-only;
26                                 };
27
28                                 partition@30000 {
29                                         label = "u-boot-env";
30                                         reg = <0x30000 0x10000>;
31                                         read-only;
32                                 };
33
34                                 factory: partition@40000 {
35                                         label = "factory";
36                                         reg = <0x40000 0x10000>;
37                                         read-only;
38                                 };
39
40                                 partition@50000 {
41                                         label = "firmware";
42                                         reg = <0x50000 0x1fb0000>;
43                                 };
44                         };
45
46
47                         spidev@1 {
48                                 #address-cells = <1>;
49                                 #size-cells = <1>;
50                                 compatible = "spidev";
51                                 reg = <1 0>;
52                                 linux,modalias = "spidev", "spidev";
53                                 spi-max-frequency = <10000000>;
54                         };
55                 };
56
57                 uart1@d00 {
58                         status = "okay";
59                 };
60
61                 i2c@900 {
62                         status = "okay";
63                 };
64
65         };
66
67         ethernet@10100000 {
68                 mtd-mac-address = <&factory 0x4>;
69                 ralink,port-map = "llllw";
70         };
71
72         sdhci@10130000 {
73                 status = "okay";
74         };
75
76         pcie@10140000 {
77                 status = "okay";
78         };
79
80
81         gpio-keys-polled {
82                 compatible = "gpio-keys-polled";
83                 #address-cells = <1>;
84                 #size-cells = <0>;
85                 poll-interval = <20>;
86
87                 reset {
88                         label = "reset";
89                         gpios = <&gpio0 5 1>;
90                         linux,code = <0x198>;
91                 };
92         };
93
94 };
95