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