Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / OMNI-PLUG.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "OMNI-PLUG", "ralink,rt5350-soc";
7         model = "Omnima MiniPlug";
8         
9         pinctrl {
10                 state_default: pinctrl0 {
11                         gpio {
12                                 ralink,group = "i2c", "jtag", "uartf";
13                                 ralink,function = "gpio";
14                         };
15                 };
16         };
17         
18         gpio-leds {
19                 compatible = "gpio-leds";
20                 wlan {
21                         label = "miniplug:red:wlan";
22                         gpios = <&gpio0 9 0>;
23                 };
24                 mobile {
25                         label = "miniplug:green:mobile";
26                         gpios = <&gpio0 13 1>;
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 poll-interval = <20>;
35                 wps {
36                         label = "wps";
37                         gpios = <&gpio0 0 1>;
38                         linux,code = <0x211>;
39                 };
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio0 10 1>;
43                         linux,code = <0x211>;
44                 };
45                 mode-one {
46                         label = "mode1";
47                         gpios = <&gpio0 11 1>;
48                         linux,code = <0x211>;
49                 };
50                 mode-two {
51                         label = "mode2";
52                         gpios = <&gpio0 12 1>;
53                         linux,code = <0x211>;
54                 };
55         };
56
57         palmbus@10000000 {
58                 gpio0: gpio@600 {
59                         status = "okay";
60                 };
61
62                 spi@b00 {
63                         status = "okay";
64                         m25p80@0 {
65                                 #address-cells = <1>;
66                                 #size-cells = <1>;
67                                 compatible = "mx25l6405d";
68                                 reg = <0 0>;
69                                 linux,modalias = "m25p80", "mx25l6405d";
70                                 spi-max-frequency = <10000000>;
71
72                                 partition@0 {
73                                         label = "u-boot";
74                                         reg = <0x0 0x30000>;
75                                         read-only;
76                                 };
77
78                                 partition@30000 {
79                                         label = "u-boot-env";
80                                         reg = <0x30000 0x10000>;
81                                         read-only;
82                                 };
83
84                                 factory: partition@40000 {
85                                         label = "factory";
86                                         reg = <0x40000 0x10000>;
87                                         read-only;
88                                 };
89
90                                 partition@50000 {
91                                         label = "firmware";
92                                         reg = <0x50000 0x7b0000>;
93                                 };
94                         };
95                 };
96         };
97         
98         ethernet@10100000 {
99                 mtd-mac-address = <&factory 0x4>;
100         };
101
102         esw@10110000 {
103                 ralink,portmap = <0x2f>;
104         };
105
106         wmac@10180000 {
107                 ralink,mtd-eeprom = <&factory 0>;
108         };
109         
110         otg@101c0000 {
111                 status = "okay";
112         };
113 };