ramips: remove RAM size from device name for UniElec devices
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-116-a1.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
10         model = "D-Link DWR-116 A1/A2";
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         keys {
20                 compatible = "gpio-keys";
21
22                 wps {
23                         label = "wps";
24                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                 };
27
28                 reset {
29                         label = "reset";
30                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31                         linux,code = <KEY_RESTART>;
32                 };
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37
38                 led_status: status {
39                         label = "dwr-116-a1:green:status";
40                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
41                 };
42
43                 wifi {
44                         label = "dwr-116-a1:green:wifi";
45                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
46                 };
47         };
48 };
49
50 &gpio1 {
51         status = "okay";
52 };
53
54 &gpio3 {
55         status = "okay";
56 };
57
58 &spi0 {
59         status = "okay";
60
61         flash@0 {
62                 compatible = "jedec,spi-nor";
63                 reg = <0>;
64                 spi-max-frequency = <50000000>;
65
66                 partitions {
67                         compatible = "fixed-partitions";
68                         #address-cells = <1>;
69                         #size-cells = <1>;
70
71                         partition@0 {
72                                 label = "jboot";
73                                 reg = <0x0 0x10000>;
74                                 read-only;
75                         };
76
77                         partition@10000 {
78                                 compatible = "amit,jimage";
79                                 label = "firmware";
80                                 reg = <0x10000 0x7e0000>;
81                         };
82
83                         config: partition@7f0000 {
84                                 label = "config";
85                                 reg = <0x7f0000 0x10000>;
86                                 read-only;
87                         };
88                 };
89         };
90 };
91
92 &ehci {
93         status = "okay";
94 };
95
96 &ohci {
97         status = "okay";
98 };
99
100 &pinctrl {
101         state_default: pinctrl0 {
102                 default {
103                         ralink,group = "i2c", "wled";
104                         ralink,function = "gpio";
105                 };
106         };
107 };
108
109 &ethernet {
110         mediatek,portmap = "llllw";
111         pinctrl-names = "default";
112         pinctrl-0 = <&ephy_pins>;
113 };