4ab1b818108ec785d2e498109a6ec039ed227b12
[openwrt/staging/hauke.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 nvmem-cells = <&macaddr_factory_4>;
80 nvmem-cell-names = "mac-address";
81
82 mediatek,portmap = "wllll";
83 };
84
85 &wmac {
86 ralink,mtd-eeprom = <&factory 0x0>;
87 };
88
89 &state_default {
90 default {
91 groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
92 function = "gpio";
93 };
94 };
95
96 &factory {
97 compatible = "nvmem-cells";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_factory_4: macaddr@4 {
102 reg = <0x4 0x6>;
103 };
104 };