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