OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | /dts-v1/; |
||
3 | |||
4 | #include "mt7621.dtsi" |
||
5 | |||
6 | #include <dt-bindings/gpio/gpio.h> |
||
7 | #include <dt-bindings/input/input.h> |
||
8 | |||
9 | / { |
||
10 | compatible = "gehua,ghl-r-001", "mediatek,mt7621-soc"; |
||
11 | model = "GeHua GHL-R-001"; |
||
12 | |||
13 | memory@0 { |
||
14 | device_type = "memory"; |
||
15 | reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
||
16 | }; |
||
17 | |||
18 | chosen { |
||
19 | bootargs = "console=ttyS0,57600"; |
||
20 | }; |
||
21 | |||
22 | leds { |
||
23 | compatible = "gpio-leds"; |
||
24 | |||
25 | internet { |
||
26 | label = "ghl-r-001:blue:internet"; |
||
27 | gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
||
28 | }; |
||
29 | |||
30 | usb { |
||
31 | label = "ghl-r-001:blue:usb"; |
||
32 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
||
33 | trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
||
34 | linux,default-trigger = "usbport"; |
||
35 | }; |
||
36 | }; |
||
37 | |||
38 | keys { |
||
39 | compatible = "gpio-keys-polled"; |
||
40 | poll-interval = <20>; |
||
41 | |||
42 | reset { |
||
43 | label = "reset"; |
||
44 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
45 | linux,code = <KEY_RESTART>; |
||
46 | }; |
||
47 | }; |
||
48 | }; |
||
49 | |||
50 | &uartlite3 { |
||
51 | status = "okay"; |
||
52 | }; |
||
53 | |||
54 | &spi0 { |
||
55 | status = "okay"; |
||
56 | |||
57 | flash@0 { |
||
58 | compatible = "mx25l25635f", "jedec,spi-nor"; |
||
59 | reg = <0>; |
||
60 | spi-max-frequency = <25000000>; |
||
61 | m25p,fast-read; |
||
62 | |||
63 | partitions { |
||
64 | compatible = "fixed-partitions"; |
||
65 | #address-cells = <1>; |
||
66 | #size-cells = <1>; |
||
67 | |||
68 | partition@0 { |
||
69 | label = "u-boot"; |
||
70 | reg = <0x0 0x30000>; |
||
71 | read-only; |
||
72 | }; |
||
73 | |||
74 | partition@30000 { |
||
75 | label = "u-boot-env"; |
||
76 | reg = <0x30000 0x10000>; |
||
77 | read-only; |
||
78 | }; |
||
79 | |||
80 | factory: partition@40000 { |
||
81 | label = "factory"; |
||
82 | reg = <0x40000 0x10000>; |
||
83 | read-only; |
||
84 | }; |
||
85 | |||
86 | partition@50000 { |
||
87 | compatible = "denx,uimage"; |
||
88 | label = "firmware"; |
||
89 | reg = <0x50000 0x1fb0000>; |
||
90 | }; |
||
91 | }; |
||
92 | }; |
||
93 | }; |
||
94 | |||
95 | &pcie { |
||
96 | status = "okay"; |
||
97 | }; |
||
98 | |||
99 | &pcie0 { |
||
100 | wifi@0,0 { |
||
101 | reg = <0x0000 0 0 0 0>; |
||
102 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
103 | }; |
||
104 | }; |
||
105 | |||
106 | &pcie1 { |
||
107 | wifi@0,0 { |
||
108 | reg = <0x0000 0 0 0 0>; |
||
109 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
110 | ieee80211-freq-limit = <5000000 6000000>; |
||
111 | |||
112 | led { |
||
113 | led-sources = <2>; |
||
114 | led-active-low; |
||
115 | }; |
||
116 | }; |
||
117 | }; |
||
118 | |||
119 | ðernet { |
||
120 | mtd-mac-address = <&factory 0xe000>; |
||
121 | }; |
||
122 | |||
123 | &pinctrl { |
||
124 | state_default: pinctrl0 { |
||
125 | gpio { |
||
126 | ralink,group = "jtag", "wdt"; |
||
127 | ralink,function = "gpio"; |
||
128 | }; |
||
129 | }; |
||
130 | }; |