perf: fix build on PowerPC
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_d-team_newifi-d2.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 = "d-team,newifi-d2", "mediatek,mt7621-soc";
10 model = "Newifi-D2";
11
12 aliases {
13 led-boot = &led_power_blue;
14 led-failsafe = &led_power_blue;
15 led-running = &led_power_blue;
16 led-upgrade = &led_power_blue;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 power-amber {
27 label = "newifi-d2:amber:power";
28 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
29 };
30
31 led_power_blue: power-blue {
32 label = "newifi-d2:blue:power";
33 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
34 };
35
36 internet-amber {
37 label = "newifi-d2:amber:internet";
38 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
39 };
40
41 internet-blue {
42 label = "newifi-d2:blue:internet";
43 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
44 };
45
46 wlan2g {
47 label = "newifi-d2:blue:wlan2g";
48 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan5g {
52 label = "newifi-d2:blue:wlan5g";
53 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
54 };
55
56 usb {
57 label = "newifi-d2:blue:usb";
58 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
59 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
60 linux,default-trigger = "usbport";
61 };
62 };
63
64 keys {
65 compatible = "gpio-keys-polled";
66 poll-interval = <20>;
67
68 reset {
69 label = "reset";
70 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
72 };
73
74 wps {
75 label = "wps";
76 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
78 };
79 };
80
81 gpio_export {
82 compatible = "gpio-export";
83 #size-cells = <0>;
84
85 power_usb3 {
86 gpio-export,name = "power_usb3";
87 gpio-export,output = <1>;
88 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
89 };
90 };
91 };
92
93 &spi0 {
94 status = "okay";
95
96 m25p80@0 {
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <10000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x0 0x30000>;
109 read-only;
110 };
111
112 partition@30000 {
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
115 read-only;
116 };
117
118 factory: partition@40000 {
119 label = "factory";
120 reg = <0x40000 0x10000>;
121 read-only;
122 };
123
124 partition@50000 {
125 compatible = "denx,uimage";
126 label = "firmware";
127 reg = <0x50000 0x1fb0000>;
128 };
129 };
130 };
131 };
132
133 &pcie {
134 status = "okay";
135 };
136
137 &pcie0 {
138 mt76@0,0 {
139 reg = <0x0000 0 0 0 0>;
140 mediatek,mtd-eeprom = <&factory 0x8000>;
141 ieee80211-freq-limit = <5000000 6000000>;
142 };
143 };
144
145 &pcie1 {
146 mt76@0,0 {
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&factory 0x0000>;
149 };
150 };
151
152 &ethernet {
153 mtd-mac-address = <&factory 0xe000>;
154 };
155
156 &pinctrl {
157 state_default: pinctrl0 {
158 gpio {
159 ralink,group = "i2c", "jtag", "uart2", "uart3";
160 ralink,function = "gpio";
161 };
162 };
163 };