OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0 |
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 = "netgear,r6350", "mediatek,mt7621-soc"; |
||
11 | model = "Netgear R6350"; |
||
12 | |||
13 | aliases { |
||
14 | led-boot = &led_power; |
||
15 | led-failsafe = &led_power; |
||
16 | led-running = &led_power; |
||
17 | led-upgrade = &led_power; |
||
18 | }; |
||
19 | |||
20 | memory@0 { |
||
21 | device_type = "memory"; |
||
22 | reg = <0x0 0x8000000>; |
||
23 | }; |
||
24 | |||
25 | chosen { |
||
26 | bootargs = "console=ttyS0,57600"; |
||
27 | }; |
||
28 | |||
29 | leds { |
||
30 | compatible = "gpio-leds"; |
||
31 | |||
32 | led_power: power { |
||
33 | label = "r6350:green:power"; |
||
34 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
35 | }; |
||
36 | |||
37 | usb { |
||
38 | label = "r6350:green:usb"; |
||
39 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
||
40 | trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
||
41 | linux,default-trigger = "usbport"; |
||
42 | }; |
||
43 | |||
44 | internet { |
||
45 | label = "r6350:green:wan"; |
||
46 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
47 | }; |
||
48 | |||
49 | wifi { |
||
50 | label = "r6350:green:wifi"; |
||
51 | gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
||
52 | }; |
||
53 | }; |
||
54 | |||
55 | keys { |
||
56 | compatible = "gpio-keys-polled"; |
||
57 | poll-interval = <20>; |
||
58 | |||
59 | wps { |
||
60 | label = "wps"; |
||
61 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
62 | linux,code = <KEY_WPS_BUTTON>; |
||
63 | }; |
||
64 | |||
65 | reset { |
||
66 | label = "reset"; |
||
67 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
68 | linux,code = <KEY_RESTART>; |
||
69 | }; |
||
70 | }; |
||
71 | |||
72 | gpio_export { |
||
73 | compatible = "gpio-export"; |
||
74 | #size-cells = <0>; |
||
75 | |||
76 | usbpower { |
||
77 | gpio-export,name = "usbpower"; |
||
78 | gpio-export,output = <1>; |
||
79 | gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
||
80 | }; |
||
81 | }; |
||
82 | }; |
||
83 | |||
84 | &nand { |
||
85 | status = "okay"; |
||
86 | |||
87 | partitions { |
||
88 | compatible = "fixed-partitions"; |
||
89 | #address-cells = <1>; |
||
90 | #size-cells = <1>; |
||
91 | |||
92 | partition@0 { |
||
93 | label = "u-boot"; |
||
94 | reg = <0x0 0x100000>; |
||
95 | read-only; |
||
96 | }; |
||
97 | |||
98 | partition@100000 { |
||
99 | label = "SC PART_MAP"; |
||
100 | reg = <0x100000 0x100000>; |
||
101 | read-only; |
||
102 | }; |
||
103 | |||
104 | partition@200000 { |
||
105 | label = "kernel"; |
||
106 | reg = <0x200000 0x400000>; |
||
107 | }; |
||
108 | |||
109 | partition@600000 { |
||
110 | label = "ubi"; |
||
111 | reg = <0x600000 0x2800000>; |
||
112 | }; |
||
113 | |||
114 | partition@2e00000 { |
||
115 | label = "reserved0"; |
||
116 | reg = <0x2e00000 0x1800000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | |||
120 | factory: partition@4600000 { |
||
121 | label = "factory"; |
||
122 | reg = <0x4600000 0x200000>; |
||
123 | read-only; |
||
124 | }; |
||
125 | |||
126 | partition@4800000 { |
||
127 | label = "reserved1"; |
||
128 | reg = <0x4800000 0x3800000>; |
||
129 | read-only; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | |||
134 | &pcie { |
||
135 | status = "okay"; |
||
136 | }; |
||
137 | |||
138 | &pcie1 { |
||
139 | wifi@0,0 { |
||
140 | reg = <0x0 0 0 0 0>; |
||
141 | mediatek,mtd-eeprom = <&factory 0x0>; |
||
142 | ieee80211-freq-limit = <2400000 2500000>; |
||
143 | }; |
||
144 | }; |
||
145 | |||
146 | ðernet { |
||
147 | mtd-mac-address = <&factory 0x4>; |
||
148 | }; |
||
149 | |||
150 | &pinctrl { |
||
151 | state_default: pinctrl0 { |
||
152 | gpio { |
||
153 | ralink,group = "uart3", "uart2", "jtag", "wdt"; |
||
154 | ralink,function = "gpio"; |
||
155 | }; |
||
156 | }; |
||
157 | }; |