ramips: move partitions into partition table node
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / RE6500.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 = "linksys,re6500", "mediatek,mt7621-soc";
10 model = "Linksys RE6500";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x4000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 wifi {
29 label = "re6500:orange:wifi";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
31 };
32
33 led_power: power {
34 label = "re6500:white:power";
35 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
36 };
37 };
38
39 gpio-keys-polled {
40 compatible = "gpio-keys-polled";
41 poll-interval = <20>;
42
43 wps {
44 label = "wps";
45 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 m25p80@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64 m25p,chunked-io = <32>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 read-only;
75 };
76
77 partition@30000 {
78 label = "u-boot-env";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 factory: partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87 };
88
89 partition@50000 {
90 label = "firmware";
91 reg = <0x50000 0x7b0000>;
92 };
93 };
94 };
95 };
96
97 &pinctrl {
98 state_default: pinctrl0 {
99 gpio {
100 ralink,group = "i2c", "uart2", "uart3", "rgmii2";
101 ralink,function = "gpio";
102 };
103 };
104 };
105
106 &pcie {
107 status = "okay";
108 };
109
110 &pcie0 {
111 mt76@0,0 {
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&factory 0x0000>;
114 ieee80211-freq-limit = <5000000 6000000>;
115 };
116 };
117
118 &pcie1 {
119 mt76@0,0 {
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <2400000 2500000>;
123 };
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x2e>;
128 };
129
130 &xhci {
131 status = "disabled";
132 };