Revert "ramips: improve interrupt mapping"
[oweals/openwrt.git] / target / linux / ramips / dts / 3G150B.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "tenda,3g150b", "ralink,rt5350-soc";
10         model = "Tenda 3G150B";
11
12         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 ap {
16                         label = "3g150b:blue:ap";
17                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
18                 };
19
20                 3g {
21                         label = "3g150b:blue:3g";
22                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
23                 };
24         };
25
26         gpio-keys-polled {
27                 compatible = "gpio-keys-polled";
28                 #address-cells = <1>;
29                 #size-cells = <0>;
30                 poll-interval = <20>;
31
32                 reset {
33                         label = "reset";
34                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
35                         linux,code = <KEY_RESTART>;
36                 };
37         };
38
39         gpio_export {
40                 compatible = "gpio-export";
41                 #size-cells = <0>;
42
43                 usb {
44                         gpio-export,name = "usb";
45                         gpio-export,output = <1>;
46                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47                 };
48         };
49 };
50
51 &spi0 {
52         status = "okay";
53
54         m25p80@0 {
55                 #address-cells = <1>;
56                 #size-cells = <1>;
57                 compatible = "jedec,spi-nor";
58                 reg = <0>;
59                 spi-max-frequency = <10000000>;
60
61                 partition@0 {
62                         label = "u-boot";
63                         reg = <0x0 0x30000>;
64                         read-only;
65                 };
66
67                 partition@30000 {
68                         label = "u-boot-env";
69                         reg = <0x30000 0x10000>;
70                         read-only;
71                 };
72
73                 factory: partition@40000 {
74                         label = "factory";
75                         reg = <0x40000 0x10000>;
76                         read-only;
77                 };
78
79                 partition@50000 {
80                         label = "firmware";
81                         reg = <0x50000 0x3b0000>;
82                 };
83         };
84 };
85
86 &gpio1 {
87         status = "okay";
88 };
89
90 &pinctrl {
91         state_default: pinctrl0 {
92                 gpio {
93                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
94                         ralink,function = "gpio";
95                 };
96         };
97 };
98
99 &ethernet {
100         mtd-mac-address = <&factory 0x4>;
101 };
102
103 &esw {
104         mediatek,portmap = <0x2f>;
105 };
106
107 &wmac {
108         ralink,mtd-eeprom = <&factory 0>;
109         ralink,led-polarity = <1>;
110 };
111
112 &ehci {
113         status = "okay";
114 };
115
116 &ohci {
117         status = "okay";
118 };