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