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