ramips: update device tree source files
[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 #address-cells = <1>;
16 #size-cells = <0>;
17 poll-interval = <20>;
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25 };
26
27 &spi0 {
28 status = "okay";
29
30 m25p80@0 {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <10000000>;
36 m25p,chunked-io = <32>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x0 0x30000>;
41 read-only;
42 };
43
44 partition@30000 {
45 label = "u-boot-env";
46 reg = <0x30000 0x10000>;
47 read-only;
48 };
49
50 factory: partition@40000 {
51 label = "factory";
52 reg = <0x40000 0x10000>;
53 read-only;
54 };
55
56 partition@50000 {
57 label = "firmware";
58 reg = <0x50000 0x1fb0000>;
59 };
60 };
61
62 spidev@1 {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "linux,spidev";
66 reg = <1>;
67 spi-max-frequency = <10000000>;
68 };
69 };
70
71 &uart1 {
72 status = "okay";
73 };
74
75 &i2c {
76 status = "okay";
77 };
78
79 &ethernet {
80 mtd-mac-address = <&factory 0x4>;
81 mediatek,portmap = "llllw";
82 };
83
84 &sdhci {
85 status = "okay";
86 };
87
88 &pcie {
89 status = "okay";
90 };
91
92 &wmac {
93 status = "okay";
94 };