ramips: dts: fix incorrect flash reg property
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7628an_mercury_mac1200r-v2.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
10 model = "Mercury MAC1200R v2";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_status: status {
27 label = "mac1200rv2:green:status";
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 };
30 };
31 };
32
33 &spi0 {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <10000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x1d800>;
49 };
50
51 factory: partition@1d800 {
52 label = "factory_info";
53 reg = <0x1d800 0x800>;
54 read-only;
55 };
56
57 art: partition@1e000 {
58 label = "art";
59 reg = <0x1e000 0x2000>;
60 read-only;
61 };
62
63 partition@20000 {
64 label = "config";
65 reg = <0x20000 0x10000>;
66 };
67
68 partition@30000 {
69 label = "u-boot2";
70 reg = <0x30000 0x10000>;
71 };
72
73 partition@40000 {
74 compatible = "denx,uimage";
75 label = "firmware";
76 reg = <0x40000 0x7c0000>;
77 };
78 };
79 };
80 };
81
82 &ethernet {
83 pinctrl-names = "default";
84 mtd-mac-address = <&factory 0xd>;
85 };
86
87 &esw {
88 mediatek,portmap = <0x2f>;
89 };
90
91 &wmac {
92 status = "okay";
93 ralink,mtd-eeprom = <&art 0x0>;
94 };
95
96 &pcie {
97 status = "okay";
98 };
99
100 &pcie0 {
101 mt76@0,0 {
102 reg = <0x0000 0 0 0 0>;
103 mediatek,mtd-eeprom = <&art 0x1000>;
104 ieee80211-freq-limit = <5000000 6000000>;
105 };
106 };