ramips: dts: drop memory nodes
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we1326.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "zbtlink,zbt-we1326", "mediatek,mt7621-soc";
10         model = "ZBT-WE1326";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25         };
26 };
27
28 &pinctrl {
29         state_default: pinctrl0 {
30                 gpio {
31                         ralink,group = "wdt";
32                         ralink,function = "gpio";
33                 };
34         };
35 };
36
37 &spi0 {
38         status = "okay";
39
40         m25p80@0 {
41                 compatible = "jedec,spi-nor";
42                 reg = <0>;
43                 spi-max-frequency = <10000000>;
44
45                 partitions {
46                         compatible = "fixed-partitions";
47                         #address-cells = <1>;
48                         #size-cells = <1>;
49
50                         partition@0 {
51                                 label = "u-boot";
52                                 reg = <0x0 0x30000>;
53                                 read-only;
54                         };
55
56                         partition@30000 {
57                                 label = "u-boot-env";
58                                 reg = <0x30000 0x10000>;
59                                 read-only;
60                         };
61
62                         factory: partition@40000 {
63                                 label = "factory";
64                                 reg = <0x40000 0x10000>;
65                                 read-only;
66                         };
67
68                         partition@50000 {
69                                 compatible = "denx,uimage";
70                                 label = "firmware";
71                                 reg = <0x50000 0xfb0000>;
72                         };
73                 };
74         };
75 };
76
77 &ethernet {
78         mtd-mac-address = <&factory 0xe000>;
79 };
80
81 &pcie {
82         status = "okay";
83 };
84
85 &pcie0 {
86         mt76@0,0 {
87                 reg = <0x0000 0 0 0 0>;
88                 mediatek,mtd-eeprom = <&factory 0x8000>;
89                 ieee80211-freq-limit = <5000000 6000000>;
90         };
91 };
92
93 &pcie1 {
94         mt76@0,0 {
95                 reg = <0x0000 0 0 0 0>;
96                 mediatek,mtd-eeprom = <&factory 0x0000>;
97                 ieee80211-freq-limit = <2400000 2500000>;
98         };
99 };
100
101 &sdhci {
102         status = "okay";
103 };