c67b832794e879adc20ea1fac39c565b93138fab
[openwrt/openwrt.git] / target / linux / ramips / dts / NW718.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "NW718", "ralink,rt3050-soc";
7 model = "Netcore NW718";
8
9 palmbus@10000000 {
10 spi@b00 {
11 status = "okay";
12 m25p80@0 {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "mx25l3205d";
16 reg = <0 0>;
17 linux,modalias = "m25p80", "mx25l3205d";
18 spi-max-frequency = <25000000>;
19
20 partition@0 {
21 label = "u-boot";
22 reg = <0x0 0x30000>;
23 read-only;
24 };
25
26 partition@30000 {
27 label = "config";
28 reg = <0x30000 0x20000>;
29 read-only;
30 };
31
32 factory: partition@50000 {
33 label = "factory";
34 reg = <0x50000 0x10000>;
35 read-only;
36 };
37
38 partition@60000 {
39 label = "firmware";
40 reg = <0x60000 0x3a0000>;
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 gpio-leds {
64 compatible = "gpio-leds";
65 cpu {
66 label = "nw718:amber:cpu";
67 gpios = <&gpio0 13 1>;
68 };
69 usb {
70 label = "nw718:amber:usb";
71 gpios = <&gpio0 8 1>;
72 };
73 wps {
74 label = "nw718:amber:wps";
75 gpios = <&gpio0 14 1>;
76 };
77 };
78
79 gpio-keys-polled {
80 compatible = "gpio-keys-polled";
81 #address-cells = <1>;
82 #size-cells = <0>;
83 poll-interval = <20>;
84 reset {
85 label = "reset";
86 gpios = <&gpio0 10 1>;
87 linux,code = <0x198>;
88 };
89 wps {
90 label = "wps";
91 gpios = <&gpio0 0 1>;
92 linux,code = <0x211>;
93 };
94 };
95
96 otg@101c0000 {
97 status = "okay";
98 };
99 };