ramips: move partitions into partition table node
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WG3526.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
8
9 aliases {
10 led-status = &led_status;
11 };
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 palmbus: palmbus@1E000000 {
23 i2c@900 {
24 status = "okay";
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 led_status: status {
43 label = "zbt-wg3526:green:status";
44 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
45 };
46 };
47 };
48
49 &sdhci {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60 m25p,chunked-io = <32>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x30000>;
70 read-only;
71 };
72
73 partition@30000 {
74 label = "u-boot-env";
75 reg = <0x30000 0x10000>;
76 read-only;
77 };
78
79 factory: partition@40000 {
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 firmware: partition@50000 {
86 label = "firmware";
87 };
88 };
89 };
90 };
91
92 &pcie {
93 status = "okay";
94 };
95
96 &pcie0 {
97 wifi@0,0 {
98 compatible = "pci14c3,7603";
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x0000>;
101 };
102 };
103
104 &pcie1 {
105 wifi@0,0 {
106 compatible = "pci14c3,7662";
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x8000>;
109 ieee80211-freq-limit = <5000000 6000000>;
110 };
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0xe000>;
115 };
116
117 &pinctrl {
118 state_default: pinctrl0 {
119 gpio {
120 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
121 ralink,function = "gpio";
122 };
123 };
124 };