b8fa634e509315ddf5f8380367735372c040a635
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_wrtnode_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 keys {
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 compatible = "jedec,spi-nor";
30 reg = <0>;
31 spi-max-frequency = <10000000>;
32
33 partitions {
34 compatible = "fixed-partitions";
35 #address-cells = <1>;
36 #size-cells = <1>;
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 compatible = "denx,uimage";
58 label = "firmware";
59 reg = <0x50000 0x1fb0000>;
60 };
61 };
62 };
63 };
64
65 &uart1 {
66 status = "okay";
67 };
68
69 &i2c {
70 status = "okay";
71 };
72
73 &ethernet {
74 mtd-mac-address = <&factory 0x4>;
75 mediatek,portmap = "llllw";
76 };
77
78 &sdhci {
79 status = "okay";
80 };
81
82 &pcie {
83 status = "okay";
84 };
85
86 &wmac {
87 status = "okay";
88 };