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