ramips: mt7621: add interrupt-controller
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_airlink101_ar670w.dts
1 #include "rt2880.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "airlink101,ar670w", "ralink,rt2880-soc";
8 model = "Airlink101 AR670W";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 flash@bdc00000 {
18 compatible = "cfi-flash";
19 reg = <0xbc400000 0x800000>;
20 bank-width = <2>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 reg = <0x0 0x30000>;
29 label = "u-boot";
30 read-only;
31 };
32
33 factory: partition@30000 {
34 reg = <0x30000 0x10000>;
35 label = "factory";
36 read-only;
37
38 nvmem-layout {
39 compatible = "fixed-layout";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 eeprom_factory_2000: eeprom@2000 {
44 reg = <0x2000 0x200>;
45 };
46
47 macaddr_factory_2004: macaddr@2004 {
48 reg = <0x2004 0x6>;
49 };
50 };
51 };
52
53 partition@40000 {
54 compatible = "lzma";
55 reg = <0x40000 0x3c0000>;
56 label = "firmware";
57 };
58 };
59 };
60
61 leds {
62 compatible = "gpio-leds";
63
64 led_power: power {
65 label = "green:power";
66 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
67 };
68
69 wpsblue {
70 label = "blue:wps";
71 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
72 };
73 };
74
75 keys {
76 compatible = "gpio-keys-polled";
77 poll-interval = <100>;
78
79 wps {
80 label = "wps";
81 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84
85 reset {
86 label = "reset";
87 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
89 };
90 };
91 };
92
93 &state_default {
94 gpio {
95 groups = "i2c", "spi", "uartlite";
96 function = "gpio";
97 };
98 };
99
100 &ethernet {
101 status = "okay";
102 nvmem-cells = <&macaddr_factory_2004>;
103 nvmem-cell-names = "mac-address";
104
105 port@0 {
106 phy-handle = <&phy0>;
107 phy-mode = "mii";
108 };
109
110 mdio-bus {
111 status = "okay";
112
113 phy0: ethernet-phy@0 {
114 phy-mode = "mii";
115 reg = <0>;
116 };
117 };
118 };
119
120 &wmac {
121 nvmem-cells = <&eeprom_factory_2000>;
122 nvmem-cell-names = "eeprom";
123 };