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