ramips: fix MikroTik 750Gr3 ports MAC addresses
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350_dlink_dir-300-b7.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-300-b7", "ralink,rt5350-soc";
10 model = "D-Link DIR-300 B7";
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 leds {
20 compatible = "gpio-leds";
21
22 led_status: status {
23 label = "dir-300-b7:green:status";
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 };
26
27 wps {
28 label = "dir-300-b7:blue:wps";
29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys-polled";
35 poll-interval = <20>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42
43 wps {
44 label = "wps";
45 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 };
49 };
50
51 &spi0 {
52 status = "okay";
53
54 m25p80@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <10000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 partition@50000 {
83 compatible = "denx,uimage";
84 label = "firmware";
85 reg = <0x50000 0x7b0000>;
86 };
87 };
88 };
89 };
90
91 &state_default {
92 gpio {
93 groups = "i2c", "jtag", "uartf";
94 function = "gpio";
95 };
96 };
97
98 &ethernet {
99 mtd-mac-address = <&factory 0x4>;
100 };
101
102 &esw {
103 mediatek,portmap = <0x2f>;
104 mediatek,led_polarity = <0x17>;
105 };
106
107 &wmac {
108 status = "okay";
109 ralink,led-polarity = <1>;
110 ralink,mtd-eeprom = <&factory 0>;
111 };