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