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