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