Revert "ramips: improve interrupt mapping"
[oweals/openwrt.git] / target / linux / ramips / dts / U25AWF-H1.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 /{
9         compatible = "kimax,u25awf-h1","ralink,mt7620a-soc";
10         model = "Kimax U25AWF-H1";
11
12         gpio-keys-polled {
13                 compatible = "gpio-keys-polled";
14                 #address-cells = <1>;
15                 #size-cells = <0>;
16                 poll-interval = <20>;
17
18                 reset {
19                         label = "reset";
20                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
21                         linux,code = <KEY_RESTART>;
22                 };
23         };
24
25         gpio-leds {
26                 compatible = "gpio-leds";
27
28                 wifi {
29                         label = "u25awf:red:wifi";
30                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
31                 };
32
33                 lan {
34                         label = "u25awf:green:lan";
35                         gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
36                 };
37         };
38 };
39
40 &gpio2 {
41         status = "okay";
42 };
43
44 &gpio3 {
45         status = "okay";
46 };
47
48 &spi0 {
49         status = "okay";
50
51         m25p80@0 {
52                 #address-cells = <1>;
53                 #size-cells = <1>;
54                 compatible = "jedec,spi-nor";
55                 reg = <0>;
56                 spi-max-frequency = <10000000>;
57
58                 partition@0 {
59                         label = "u-boot";
60                         reg = <0x0 0x30000>;
61                         read-only;
62                 };
63
64                 partition@30000 {
65                         label = "u-boot-env";
66                         reg = <0x30000 0x10000>;
67                         read-only;
68                 };
69
70                 factory: partition@40000 {
71                         label = "factory";
72                         reg = <0x40000 0x10000>;
73                         read-only;
74                 };
75
76                 partition@50000 {
77                         label = "firmware";
78                         reg = <0x50000 0xfb0000>;
79                 };
80         };
81 };
82
83 &ehci {
84         status = "okay";
85 };
86
87 &ohci {
88         status = "okay";
89 };
90
91 &ethernet {
92         mtd-mac-address = <&factory 0x4>;
93 };
94
95 &wmac {
96         ralink,mtd-eeprom = <&factory 0>;
97 };
98
99 &pinctrl {
100         state_default: pinctrl0 {
101                 default {
102                         ralink,group = "uartf", "ephy", "wled";
103                         ralink,function = "gpio";
104                 };
105         };
106 };