8a5da5bb2f2bd357dfbb5b52d8647c44f4f74632
[lede.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         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,3776k@0x50000(firmware)";
15         };
16
17         palmbus@10000000 {
18                 sysc@0 {
19                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20                         ralink,uartmux = "gpio";
21                         ralink,wdtmux = <1>;
22                 };
23
24                 gpio0: gpio@600 {
25                         status = "okay";
26                 };
27
28         };
29
30         cfi@1f000000 {
31                 compatible = "cfi-flash";
32                 reg = <0x1f000000 0x800000>;
33
34                 bank-width = <2>;
35                 device-width = <2>;
36                 #address-cells = <1>;
37                 #size-cells = <1>;
38         };
39
40         ethernet@10100000 {
41                 status = "okay";
42         };
43
44         esw@10110000 {
45                 status = "okay";
46                 ralink,portmap = <0x2f>;
47         };
48
49         gpio-keys-polled {
50                 compatible = "gpio-keys-polled";
51                 #address-cells = <1>;
52                 #size-cells = <0>;
53                 poll-interval = <20>;
54                 reset {
55                         label = "reset";
56                         gpios = <&gpio0 10 1>;
57                         linux,code = <0x198>;
58                 };
59                 wps {
60                         label = "wps";
61                         gpios = <&gpio0 0 1>;
62                         linux,code = <0x211>;
63                 };
64         };
65
66         wmac@10180000 {
67                 status = "okay";
68         };
69
70         gpio-leds {
71                 compatible = "gpio-leds";
72                 status {
73                         label = "d-link:amber:status";
74                         gpios = <&gpio0 8 1>;
75                 };
76                 status2 {
77                         label = "d-link:green:status";
78                         gpios = <&gpio0 9 1>;
79                 };
80                 wan {
81                         label = "d-link:amber:wan";
82                         gpios = <&gpio0 14 1>;
83                 };
84                 wan2 {
85                         label = "d-link:green:wan";
86                         gpios = <&gpio0 12 1>;
87                 };
88                 wps {
89                         label = "d-link:blue:wps";
90                         gpios = <&gpio0 13 1>;
91                 };
92         };
93 };