ramips: Add support for the NixCore X1 Module
[openwrt/openwrt.git] / target / linux / ramips / dts / WRTNODE2.dtsi
1 #include "mt7628an.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyS0,115200";
6 };
7
8 gpio-keys-polled {
9 compatible = "gpio-keys-polled";
10 #address-cells = <1>;
11 #size-cells = <0>;
12 poll-interval = <20>;
13
14 reset {
15 label = "reset";
16 gpios = <&gpio0 5 1>;
17 linux,code = <0x198>;
18 };
19 };
20 };
21
22 &spi0 {
23 status = "okay";
24
25 m25p80@0 {
26 #address-cells = <1>;
27 #size-cells = <1>;
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <10000000>;
31 m25p,chunked-io = <32>;
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 0x1fb0000>;
54 };
55 };
56
57 spidev@1 {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "linux,spidev";
61 reg = <1>;
62 spi-max-frequency = <10000000>;
63 };
64 };
65
66 &uart1 {
67 status = "okay";
68 };
69
70 &i2c {
71 status = "okay";
72 };
73
74 &ethernet {
75 mtd-mac-address = <&factory 0x4>;
76 ralink,port-map = "llllw";
77 };
78
79 &sdhci {
80 status = "okay";
81 };
82
83 &pcie {
84 status = "okay";
85 };
86
87 &wmac {
88 status = "okay";
89 };