144591d48a620fd5eba9ec7db6108a515301a0cb
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620n_wrtnode_wrtnode.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
7 model = "WRTNODE";
8
9 aliases {
10 led-boot = &led_indicator;
11 led-failsafe = &led_indicator;
12 led-running = &led_indicator;
13 led-upgrade = &led_indicator;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_indicator: indicator {
20 label = "blue:indicator";
21 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
22 };
23 };
24 };
25
26 &gpio1 {
27 status = "okay";
28 };
29
30 &spi0 {
31 status = "okay";
32
33 flash@0 {
34 compatible = "jedec,spi-nor";
35 reg = <0>;
36 spi-max-frequency = <10000000>;
37
38 partitions {
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 label = "u-boot";
45 reg = <0x0 0x30000>;
46 read-only;
47 };
48
49 partition@30000 {
50 label = "u-boot-env";
51 reg = <0x30000 0x10000>;
52 read-only;
53 };
54
55 factory: partition@40000 {
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 read-only;
59 };
60
61 partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x50000 0xfb0000>;
65 };
66 };
67 };
68 };
69
70 &ehci {
71 status = "okay";
72 };
73
74 &ohci {
75 status = "okay";
76 };
77
78 &ethernet {
79 mtd-mac-address = <&factory 0x4>;
80
81 mediatek,portmap = "wllll";
82 };
83
84 &wmac {
85 ralink,mtd-eeprom = <&factory 0x0>;
86 };
87
88 &state_default {
89 default {
90 groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
91 function = "gpio";
92 };
93 };