ramips: fix mac addresses of Youku YK1
[openwrt/staging/ldir.git] / target / linux / ramips / dts / mt7620a_youku_yk1.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "youku,yk1", "ralink,mt7620a-soc";
8 model = "YOUKU YK1";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &ethernet;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wlan {
22 label = "blue:wlan";
23 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy0tpt";
25 };
26
27 usb {
28 label = "blue:usb";
29 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
32 };
33
34 led_power: power {
35 label = "blue:power";
36 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 label = "reset";
45 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49 };
50
51 &gpio1 {
52 status = "okay";
53 };
54
55 &gpio3 {
56 status = "okay";
57 };
58
59 &spi0 {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <80000000>;
66 m25p,fast-read;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0x1fb0000>;
95 };
96 };
97 };
98 };
99
100 &state_default {
101 default {
102 groups = "i2c", "rgmii1", "wled";
103 function = "gpio";
104 };
105 };
106
107 &ethernet {
108 pinctrl-names = "default";
109
110 mtd-mac-address = <&factory 0x28>;
111
112 mediatek,portmap = "llllw";
113 };
114
115 &wmac {
116 ralink,mtd-eeprom = <&factory 0x0>;
117 };
118
119 &sdhci {
120 status = "okay";
121 };
122
123 &ehci {
124 status = "okay";
125 };
126
127 &ohci {
128 status = "okay";
129 };