f2b2345ac725761ea4896f915b65525bd0938925
[openwrt/staging/mkresin.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 = "wrtnode:blue:indicator";
21 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
22 };
23 };
24 };
25
26 &gpio1 {
27 status = "okay";
28 };
29
30 &gpio2 {
31 status = "okay";
32 };
33
34 &gpio3 {
35 status = "okay";
36 };
37
38 &spi0 {
39 status = "okay";
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <10000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x0 0x30000>;
54 read-only;
55 };
56
57 partition@30000 {
58 label = "u-boot-env";
59 reg = <0x30000 0x10000>;
60 read-only;
61 };
62
63 factory: partition@40000 {
64 label = "factory";
65 reg = <0x40000 0x10000>;
66 read-only;
67 };
68
69 partition@50000 {
70 compatible = "denx,uimage";
71 label = "firmware";
72 reg = <0x50000 0xfb0000>;
73 };
74 };
75 };
76 };
77
78 &ehci {
79 status = "okay";
80 };
81
82 &ohci {
83 status = "okay";
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88
89 mediatek,portmap = "wllll";
90 };
91
92 &wmac {
93 ralink,mtd-eeprom = <&factory 0x0>;
94 };
95
96 &state_default {
97 default {
98 groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
99 function = "gpio";
100 };
101 };