ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRTNODE2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 gpio-keys-polled {
14 compatible = "gpio-keys-polled";
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23 };
24
25 &spi0 {
26 status = "okay";
27
28 m25p80@0 {
29 #address-cells = <1>;
30 #size-cells = <1>;
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <10000000>;
34 m25p,chunked-io = <32>;
35
36 partition@0 {
37 label = "u-boot";
38 reg = <0x0 0x30000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "u-boot-env";
44 reg = <0x30000 0x10000>;
45 read-only;
46 };
47
48 factory: partition@40000 {
49 label = "factory";
50 reg = <0x40000 0x10000>;
51 read-only;
52 };
53
54 partition@50000 {
55 label = "firmware";
56 reg = <0x50000 0x1fb0000>;
57 };
58 };
59
60 spidev@1 {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 compatible = "linux,spidev";
64 reg = <1>;
65 spi-max-frequency = <10000000>;
66 };
67 };
68
69 &uart1 {
70 status = "okay";
71 };
72
73 &i2c {
74 status = "okay";
75 };
76
77 &ethernet {
78 mtd-mac-address = <&factory 0x4>;
79 mediatek,portmap = "llllw";
80 };
81
82 &sdhci {
83 status = "okay";
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &wmac {
91 status = "okay";
92 };