kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_accton_wr6202.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "accton,wr6202", "ralink,rt3052-soc";
9 model = "Accton WR6202";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 wps {
19 function = LED_FUNCTION_WPS;
20 color = <LED_COLOR_ID_BLUE>;
21 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
22 };
23
24 3g {
25 label = "blue:3g";
26 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45 };
46
47 flash@1f000000 {
48 compatible = "cfi-flash";
49 reg = <0x1f000000 0x800000>;
50 bank-width = <2>;
51 device-width = <2>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74
75 nvmem-layout {
76 compatible = "fixed-layout";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 eeprom_factory_0: eeprom@0 {
81 reg = <0x0 0x200>;
82 };
83
84 macaddr_factory_28: macaddr@28 {
85 reg = <0x28 0x6>;
86 };
87 };
88 };
89
90 partition@50000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x50000 0x7b0000>;
94 };
95 };
96 };
97
98 gpio_export {
99 compatible = "gpio-export";
100 #size-cells = <0>;
101
102 usb {
103 gpio-export,name = "usb";
104 gpio-export,output = <0>;
105 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &state_default {
111 gpio {
112 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
113 function = "gpio";
114 };
115 };
116
117 &ethernet {
118 nvmem-cells = <&macaddr_factory_28>;
119 nvmem-cell-names = "mac-address";
120 };
121
122 &esw {
123 mediatek,portmap = <0x3e>;
124 };
125
126 &wmac {
127 nvmem-cells = <&eeprom_factory_0>;
128 nvmem-cell-names = "eeprom";
129 };
130
131 &otg {
132 status = "okay";
133 };