ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / MAC1200RV2.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-status = &led_status;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x2000000>;
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27 led_status: status {
28 label = "mac1200rv2:green:status";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 };
31 };
32 };
33
34 &spi0 {
35 status = "okay";
36
37 m25p80@0 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "jedec,spi-nor";
41 reg = <0 0>;
42 spi-max-frequency = <10000000>;
43 m25p,chunked-io = <32>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x1d800>;
48 };
49
50 factory: partition@0x1d800 {
51 label = "factory_info";
52 reg = <0x1d800 0x800>;
53 read-only;
54 };
55
56 art: partition@0x1e000 {
57 label = "art";
58 reg = <0x1e000 0x2000>;
59 read-only;
60 };
61
62 partition@20000 {
63 label = "config";
64 reg = <0x20000 0x10000>;
65 };
66
67 partition@30000 {
68 label = "u-boot2";
69 reg = <0x30000 0x10000>;
70 };
71
72 partition@40000 {
73 label = "firmware";
74 reg = <0x40000 0x7c0000>;
75 };
76 };
77 };
78
79 &ethernet {
80 pinctrl-names = "default";
81 mtd-mac-address = <&factory 0xd>;
82 mediatek,portmap = "llllw";
83 };
84
85 &wmac {
86 status = "okay";
87 ralink,mtd-eeprom = <&art 0x0>;
88 };
89
90 &pcie {
91 status = "okay";
92 pcie-bridge {
93 mt76@0,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&art 0x1000>;
97 ieee80211-freq-limit = <5000000 6000000>;
98 };
99 };
100 };