1c9d14384b88509f7c4358542993ebd5ed3f22c5
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / NW718.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netcore,nw718", "ralink,rt3050-soc";
10 model = "Netcore NW718";
11
12 aliases {
13 led-status = &led_cpu;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_cpu: cpu {
20 label = "nw718:amber:cpu";
21 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
22 };
23
24 usb {
25 label = "nw718:amber:usb";
26 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
27 trigger-sources = <&otg_port1>;
28 linux,default-trigger = "usbport";
29 };
30
31 wps {
32 label = "nw718:amber:wps";
33 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 gpio-keys-polled {
38 compatible = "gpio-keys-polled";
39 poll-interval = <20>;
40
41 reset {
42 label = "reset";
43 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46
47 wps {
48 label = "wps";
49 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52 };
53 };
54
55 &spi0 {
56 status = "okay";
57
58 m25p80@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <25000000>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "config";
76 reg = <0x30000 0x20000>;
77 read-only;
78 };
79
80 factory: partition@50000 {
81 label = "factory";
82 reg = <0x50000 0x10000>;
83 read-only;
84 };
85
86 partition@60000 {
87 label = "firmware";
88 reg = <0x60000 0x3a0000>;
89 };
90 };
91 };
92 };
93
94 &pinctrl {
95 state_default: pinctrl0 {
96 gpio {
97 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
98 ralink,function = "gpio";
99 };
100 };
101 };
102
103 &ethernet {
104 mtd-mac-address = <&factory 0x4>;
105 };
106
107 &esw {
108 mediatek,portmap = <0x2f>;
109 };
110
111 &wmac {
112 ralink,mtd-eeprom = <&factory 0>;
113 };
114
115 &otg {
116 status = "okay";
117 };