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