OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 office 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 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x10000000>;
15 };
16  
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20  
21 gpio-leds {
22 compatible = "gpio-leds";
23  
24 status-red {
25 label = "newifi-d1:red:status";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
27 };
28  
29 status-green {
30 label = "newifi-d1:green:status";
31 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
32 };
33  
34 statys-blue {
35 label = "newifi-d1:blue:status";
36 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
37 };
38 };
39  
40 gpio-keys-polled {
41 compatible = "gpio-keys-polled";
42 #address-cells = <1>;
43 #size-cells = <0>;
44 poll-interval = <20>;
45  
46 reset {
47 label = "reset";
48 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52  
53 gpio_export {
54 compatible = "gpio-export";
55 #size-cells = <0>;
56  
57 usb2power {
58 gpio-export,name = "usb2power";
59 gpio-export,output = <1>;
60 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
61 };
62  
63 usb3power {
64 gpio-export,name = "usb3power";
65 gpio-export,output = <1>;
66 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
67 };
68 };
69 };
70  
71 &sdhci {
72 status = "okay";
73  
74 pinctrl-names = "default";
75 pinctrl-0 = <&sdhci_pins>;
76 };
77  
78 &spi0 {
79 status = "okay";
80  
81 m25p80@0 {
82 #address-cells = <1>;
83 #size-cells = <1>;
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <10000000>;
87 m25p,chunked-io = <32>;
88  
89 partition@0 {
90 label = "u-boot";
91 reg = <0x0 0x30000>;
92 read-only;
93 };
94  
95 partition@30000 {
96 label = "u-boot-env";
97 reg = <0x30000 0x10000>;
98 read-only;
99 };
100  
101 factory: partition@40000 {
102 label = "factory";
103 reg = <0x40000 0x10000>;
104 read-only;
105 };
106  
107 partition@50000 {
108 label = "firmware";
109 reg = <0x50000 0x1fb0000>;
110 };
111 };
112 };
113  
114 &pcie {
115 status = "okay";
116  
117 pcie0 {
118 mt76@0,0 {
119 reg = <0x0000 0 0 0 0>;
120 device_type = "pci";
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5000000 6000000>;
123 };
124 };
125  
126 pcie1 {
127 mt76@1,0 {
128 reg = <0x0000 0 0 0 0>;
129 device_type = "pci";
130 mediatek,mtd-eeprom = <&factory 0x0000>;
131 };
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 };