ramips: move dts-v1 statement to top-level DTSI files
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_edimax_3g-6200nl.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "edimax,3g-6200nl", "ralink,rt3050-soc";
8 model = "Edimax 3g-6200nl";
9
10 aliases {
11 led-boot = &led_internet;
12 led-failsafe = &led_internet;
13 led-running = &led_internet;
14 led-upgrade = &led_internet;
15 };
16
17 flash@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "u-boot-env";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x10000>;
43 read-only;
44 };
45
46 partition@3e0000 {
47 label = "cimage";
48 reg = <0x3e0000 0x20000>;
49 read-only;
50 };
51
52 partition@50000 {
53 compatible = "edimax,uimage";
54 label = "firmware";
55 reg = <0x50000 0x390000>;
56 };
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led_internet: internet {
64 label = "3g-6200nl:green:internet";
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66 };
67
68 wlan {
69 label = "3g-6200nl:green:wlan";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 keys {
75 compatible = "gpio-keys-polled";
76 poll-interval = <20>;
77
78 reset {
79 label = "reset";
80 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
82 };
83 };
84 };
85
86 &state_default {
87 gpio {
88 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
89 function = "gpio";
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0x4>;
95 };
96
97 &esw {
98 mediatek,portdisable = <0x37>;
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0x0>;
103 };
104
105 &otg {
106 status = "okay";
107 };