ramips: add initial support for SamKnows SK-WB8
[librecmc/librecmc.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 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 = "spidev";
61                 reg = <1 0>;
62                 linux,modalias = "spidev", "spidev";
63                 spi-max-frequency = <10000000>;
64         };
65 };
66
67 &uart1 {
68         status = "okay";
69 };
70
71 &i2c {
72         status = "okay";
73 };
74
75 &ethernet {
76         mtd-mac-address = <&factory 0x4>;
77         ralink,port-map = "llllw";
78 };
79
80 &sdhci {
81         status = "okay";
82 };
83
84 &pcie {
85         status = "okay";
86 };
87