ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt.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         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13
14                 gpio2: gpio@660 {
15                         status = "okay";
16                 };
17
18                 gpio3: gpio@688 {
19                         status = "okay";
20                 };
21
22                 spi@b00 {
23                         status = "okay";
24
25                         m25p80@0 {
26                                 #address-cells = <1>;
27                                 #size-cells = <1>;
28                                 compatible = "jedec,spi-nor";
29                                 reg = <0 0>;
30                                 linux,modalias = "m25p80", "w25q128";
31                                 spi-max-frequency = <10000000>;
32
33                                 partition@0 {
34                                         label = "u-boot";
35                                         reg = <0x0 0x30000>;
36                                         read-only;
37                                 };
38
39                                 partition@30000 {
40                                         label = "u-boot-env";
41                                         reg = <0x30000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 factory: partition@40000 {
46                                         label = "factory";
47                                         reg = <0x40000 0x10000>;
48                                         read-only;
49                                 };
50
51                                 partition@50000 {
52                                         label = "firmware";
53                                         reg = <0x50000 0xfb0000>;
54                                 };
55                         };
56                 };
57         };
58
59         ehci@101c0000 {
60                 status = "okay";
61         };
62
63         ohci@101c1000 {
64                 status = "okay";
65         };
66
67         ethernet@10100000 {
68                 mtd-mac-address = <&factory 0x4>;
69                 mediatek,portmap = "wllll";
70         };
71
72         wmac@10180000 {
73                 ralink,mtd-eeprom = <&factory 0>;
74         };
75
76         pinctrl {
77                 state_default: pinctrl0 {
78                         default {
79                                 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
80                                 ralink,function = "gpio";
81                         };
82                 };
83         };
84
85         gpio-leds {
86                 compatible = "gpio-leds";
87
88                 indicator {
89                         label = "wrtnode:blue:indicator";
90                         gpios = <&gpio1 14 1>;
91                 };
92         };
93 };