385ec343bb4c9766c08db6128695cc0b6effdc7d
[oweals/openwrt.git] / target / linux / ramips / dts / HW550-3G.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 = "aztech,hw550-3g", "ralink,rt3052-soc";
10         model = "Aztech HW550-3G";
11
12         aliases {
13                 led-status = &led_status;
14         };
15
16         cfi@1f000000 {
17                 compatible = "cfi-flash";
18                 reg = <0x1f000000 0x800000>;
19                 bank-width = <2>;
20                 device-width = <2>;
21
22                 partitions {
23                         compatible = "fixed-partitions";
24                         #address-cells = <1>;
25                         #size-cells = <1>;
26
27                         partition@0 {
28                                 label = "u-boot";
29                                 reg = <0x0 0x30000>;
30                                 read-only;
31                         };
32
33                         partition@30000 {
34                                 label = "u-boot-env";
35                                 reg = <0x30000 0x10000>;
36                                 read-only;
37                         };
38
39                         factory: partition@40000 {
40                                 label = "factory";
41                                 reg = <0x40000 0x10000>;
42                                 read-only;
43                         };
44
45                         partition@50000 {
46                                 label = "firmware";
47                                 reg = <0x50000 0x7b0000>;
48                         };
49                 };
50         };
51
52         gpio-leds {
53                 compatible = "gpio-leds";
54
55                 usb {
56                         label = "hw550-3g:green:usb";
57                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
58                         trigger-sources = <&otg_port1>;
59                         linux,default-trigger = "usbport";
60                 };
61
62                 3g {
63                         label = "hw550-3g:green:3g";
64                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
65                 };
66
67                 led_status: status {
68                         label = "hw550-3g:green:status";
69                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
70                 };
71
72                 wps {
73                         label = "hw550-3g:green:wps";
74                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
75                 };
76         };
77
78         gpio-keys-polled {
79                 compatible = "gpio-keys-polled";
80                 poll-interval = <20>;
81
82                 reset {
83                         label = "reset";
84                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
85                         linux,code = <KEY_RESTART>;
86                 };
87
88                 connect {
89                         label = "connect";
90                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
91                         linux,code = <KEY_CONNECT>;
92                 };
93
94                 wps {
95                         label = "wps";
96                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
97                         linux,code = <KEY_WPS_BUTTON>;
98                 };
99         };
100 };
101
102 &pinctrl {
103         state_default: pinctrl0 {
104                 gpio {
105                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
106                         ralink,function = "gpio";
107                 };
108         };
109 };
110
111 &ethernet {
112         mtd-mac-address = <&factory 0x28>;
113 };
114
115 &esw {
116         mediatek,portmap = <0x3e>;
117 };
118
119 &wmac {
120         ralink,mtd-eeprom = <&factory 0>;
121 };
122
123 &otg {
124         status = "okay";
125 };