[ramips] move memory detect node to dtsi files
[openwrt.git] / target / linux / ramips / dts / DIR-600-B2.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "DIR-600-B2", "ralink,rt3050-soc";
7         model = "D-Link DIR-600 B2";
8
9         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12                         ralink,uartmux = "gpio";
13                         ralink,wdtmux = <1>;
14                 };
15
16                 gpio0: gpio@600 {
17                         status = "okay";
18                 };
19         };
20
21         cfi@1f000000 {
22                 compatible = "cfi-flash";
23                 reg = <0x1f000000 0x800000>;
24
25                 bank-width = <2>;
26                 device-width = <2>;
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29
30                 partition@0 {
31                         label = "u-boot";
32                         reg = <0x0 0x30000>;
33                         read-only;
34                 };
35
36                 partition@30000 {
37                         label = "devdata";
38                         reg = <0x30000 0x10000>;
39                         read-only;
40                 };
41
42                 partition@40000 {
43                         label = "devconf";
44                         reg = <0x40000 0x10000>;
45                         read-only;
46                 };
47
48                 partition@50000 {
49                         label = "firmware";
50                         reg = <0x50000 0x3b0000>;
51                 };
52         };
53
54         ethernet@10100000 {
55                 status = "okay";
56         };
57
58         esw@10110000 {
59                 status = "okay";
60                 ralink,portmap = <0x2f>;
61         };
62
63         gpio-keys-polled {
64                 compatible = "gpio-keys-polled";
65                 #address-cells = <1>;
66                 #size-cells = <0>;
67                 poll-interval = <20>;
68                 reset {
69                         label = "reset";
70                         gpios = <&gpio0 10 1>;
71                         linux,code = <0x198>;
72                 };
73                 wps {
74                         label = "wps";
75                         gpios = <&gpio0 0 1>;
76                         linux,code = <0x211>;
77                 };
78         };
79
80         wmac@10180000 {
81                 status = "okay";
82         };
83
84         gpio-leds {
85                 compatible = "gpio-leds";
86                 status {
87                         label = "d-link:amber:status";
88                         gpios = <&gpio0 8 1>;
89                 };
90                 status2 {
91                         label = "d-link:green:status";
92                         gpios = <&gpio0 9 1>;
93                 };
94                 wan {
95                         label = "d-link:amber:wan";
96                         gpios = <&gpio0 14 1>;
97                 };
98                 wan2 {
99                         label = "d-link:green:wan";
100                         gpios = <&gpio0 12 1>;
101                 };
102                 wps {
103                         label = "d-link:blue:wps";
104                         gpios = <&gpio0 13 1>;
105                 };
106         };
107 };