ramips: fix reboot for remaining 32 MB boards
[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";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &spi0 {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <10000000>;
31 broken-flash-reset;
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 nvmem-cells = <&macaddr_factory_4>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &esw {
79 mediatek,portmap = <0x3e>;
80 };
81
82 &sdhci {
83 status = "okay";
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &wmac {
91 status = "okay";
92
93 mediatek,mtd-eeprom = <&factory 0x0>;
94 };
95
96 &factory {
97 compatible = "nvmem-cells";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_factory_4: macaddr@4 {
102 reg = <0x4 0x6>;
103 };
104 };