ramips: provide label MAC address
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_dlink_dir-810l.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
10 model = "D-Link DIR-810L";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 label-mac-device = &ethernet;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 linux,code = <BTN_0>;
28 };
29
30 wps {
31 label = "wps";
32 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
33 linux,code = <BTN_0>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_power_green: power {
41 label = "dir-810l:green:power";
42 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
43 };
44
45 wan {
46 label = "dir-810l:orange:wan";
47 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
48 };
49
50 power2 {
51 label = "dir-810l:orange:power";
52 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 m25p80@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 factory5g: partition@50000 {
89 label = "factory5g";
90 reg = <0x50000 0x10000>;
91 read-only;
92 };
93
94 partition@60000 {
95 label = "Wolf_Config";
96 reg = <0x60000 0x10000>;
97 read-only;
98 };
99
100 partition@70000 {
101 label = "MyDlink";
102 reg = <0x70000 0x80000>;
103 read-only;
104 };
105
106 partition@e0000 {
107 label = "Jffs2";
108 reg = <0xe0000 0x80000>;
109 read-only;
110 };
111
112 partition@170000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x170000 0x690000>;
116 };
117 };
118 };
119 };
120
121 &pinctrl {
122 state_default: pinctrl0 {
123 gpio {
124 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
125 ralink,function = "gpio";
126 };
127 };
128 };
129
130 &ethernet {
131 mtd-mac-address = <&factory 0x28>;
132 mediatek,portmap = "llllw";
133 };
134
135 &gsw {
136 mediatek,port4 = "ephy";
137 pinctrl-names = "default";
138 pinctrl-0 = <&ephy_pins>;
139 };
140
141 &pcie {
142 status = "okay";
143 };
144
145 &wmac {
146 ralink,mtd-eeprom = <&factory 0>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pa_pins>;
149 };
150
151 &pcie0 {
152 wifi@0,0 {
153 reg = <0x0000 0 0 0 0>;
154 mediatek,mtd-eeprom = <&factory 0x8000>;
155 ieee80211-freq-limit = <5000000 6000000>;
156 };
157 };