OpenWrt – Blame information for rev 3
?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 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x10000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,115200"; |
||
19 | }; |
||
20 | |||
3 | office | 21 | gpio-leds { |
1 | office | 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 | |||
3 | office | 34 | statys-blue { |
1 | office | 35 | label = "newifi-d1:blue:status"; |
36 | gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | }; |
||
39 | |||
3 | office | 40 | gpio-keys-polled { |
1 | office | 41 | compatible = "gpio-keys-polled"; |
3 | office | 42 | #address-cells = <1>; |
43 | #size-cells = <0>; |
||
1 | office | 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"; |
||
3 | office | 73 | |
74 | pinctrl-names = "default"; |
||
75 | pinctrl-0 = <&sdhci_pins>; |
||
1 | office | 76 | }; |
77 | |||
78 | &spi0 { |
||
79 | status = "okay"; |
||
80 | |||
81 | m25p80@0 { |
||
3 | office | 82 | #address-cells = <1>; |
83 | #size-cells = <1>; |
||
84 | compatible = "jedec,spi-nor"; |
||
1 | office | 85 | reg = <0>; |
3 | office | 86 | spi-max-frequency = <10000000>; |
87 | m25p,chunked-io = <32>; |
||
1 | office | 88 | |
3 | office | 89 | partition@0 { |
90 | label = "u-boot"; |
||
91 | reg = <0x0 0x30000>; |
||
92 | read-only; |
||
93 | }; |
||
1 | office | 94 | |
3 | office | 95 | partition@30000 { |
96 | label = "u-boot-env"; |
||
97 | reg = <0x30000 0x10000>; |
||
98 | read-only; |
||
99 | }; |
||
1 | office | 100 | |
3 | office | 101 | factory: partition@40000 { |
102 | label = "factory"; |
||
103 | reg = <0x40000 0x10000>; |
||
104 | read-only; |
||
105 | }; |
||
1 | office | 106 | |
3 | office | 107 | partition@50000 { |
108 | label = "firmware"; |
||
109 | reg = <0x50000 0x1fb0000>; |
||
1 | office | 110 | }; |
111 | }; |
||
112 | }; |
||
113 | |||
114 | &pcie { |
||
115 | status = "okay"; |
||
116 | |||
3 | office | 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 | }; |
||
1 | office | 124 | }; |
125 | |||
3 | office | 126 | pcie1 { |
127 | mt76@1,0 { |
||
128 | reg = <0x0000 0 0 0 0>; |
||
129 | device_type = "pci"; |
||
130 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
131 | }; |
||
1 | office | 132 | }; |
133 | }; |
||
134 | |||
135 | ðernet { |
||
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 | }; |