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