ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / Newifi-D1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
9 model = "Newifi-D1";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 status-red {
24 label = "newifi-d1:red:status";
25 gpios = <&gpio0 14 1>;
26 };
27
28 status-green {
29 label = "newifi-d1:green:status";
30 gpios = <&gpio0 13 1>;
31 };
32
33 statys-blue {
34 label = "newifi-d1:blue:status";
35 gpios = <&gpio0 16 1>;
36 };
37 };
38
39 gpio-keys-polled {
40 compatible = "gpio-keys-polled";
41 #address-cells = <1>;
42 #size-cells = <0>;
43 poll-interval = <20>;
44
45 reset {
46 label = "reset";
47 gpios = <&gpio0 15 1>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51
52 gpio_export {
53 compatible = "gpio-export";
54 #size-cells = <0>;
55
56 usb2power {
57 gpio-export,name = "usb2power";
58 gpio-export,output = <1>;
59 gpios = <&gpio0 9 0>;
60 };
61
62 usb3power {
63 gpio-export,name = "usb3power";
64 gpio-export,output = <1>;
65 gpios = <&gpio0 11 0>;
66 };
67 };
68 };
69
70 &sdhci {
71 status = "okay";
72
73 pinctrl-names = "default";
74 pinctrl-0 = <&sdhci_pins>;
75 };
76
77 &spi0 {
78 status = "okay";
79
80 m25p80@0 {
81 #address-cells = <1>;
82 #size-cells = <1>;
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <10000000>;
86 m25p,chunked-io = <32>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x0 0x30000>;
91 read-only;
92 };
93
94 partition@30000 {
95 label = "u-boot-env";
96 reg = <0x30000 0x10000>;
97 read-only;
98 };
99
100 factory: partition@40000 {
101 label = "factory";
102 reg = <0x40000 0x10000>;
103 read-only;
104 };
105
106 partition@50000 {
107 label = "firmware";
108 reg = <0x50000 0x2000000>;
109 };
110 };
111 };
112
113 &pcie {
114 status = "okay";
115
116 pcie0 {
117 mt76@0,0 {
118 reg = <0x0000 0 0 0 0>;
119 device_type = "pci";
120 mediatek,mtd-eeprom = <&factory 0x8000>;
121 ieee80211-freq-limit = <5000000 6000000>;
122 };
123 };
124
125 pcie1 {
126 mt76@1,0 {
127 reg = <0x0000 0 0 0 0>;
128 device_type = "pci";
129 mediatek,mtd-eeprom = <&factory 0x0000>;
130 };
131 };
132 };
133
134 &ethernet {
135 mtd-mac-address = <&factory 0xe000>;
136 };
137
138 &pinctrl {
139 state_default: pinctrl0 {
140 gpio {
141 ralink,group = "wdt", "rgmii2", "jtag", "uart2", "uart3", "i2c";
142 ralink,function = "gpio";
143 };
144 };
145 };