OpenWrt – Blame information for rev 4
?pathlinks?
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 = "netgear,wndr3700-v5", "mediatek,mt7621-soc"; |
||
10 | model = "Netgear WNDR3700v5"; |
||
11 | |||
12 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x8000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,57600 maxcpus=2"; |
||
19 | }; |
||
20 | |||
21 | gpio-leds { |
||
22 | compatible = "gpio-leds"; |
||
23 | |||
24 | wps { |
||
25 | label = "wndr3700v5:green:wps"; |
||
26 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
29 | power { |
||
30 | label = "wndr3700v5:green:power"; |
||
31 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | }; |
||
34 | |||
35 | gpio-keys-polled { |
||
36 | compatible = "gpio-keys-polled"; |
||
37 | #address-cells = <1>; |
||
38 | #size-cells = <0>; |
||
39 | poll-interval = <20>; |
||
40 | |||
41 | wps { |
||
42 | label = "wndr3700v5:wps"; |
||
43 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
||
44 | linux,code = <KEY_WPS_BUTTON>; |
||
45 | }; |
||
46 | |||
47 | wifi { |
||
48 | label = "wndr3700v5:wifi"; |
||
49 | gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; |
||
50 | linux,code = <KEY_RFKILL>; |
||
51 | }; |
||
52 | |||
53 | reset { |
||
54 | label = "wndr3700v5:reset"; |
||
55 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
||
56 | linux,code = <KEY_RESTART>; |
||
57 | }; |
||
58 | }; |
||
59 | |||
60 | gpio_export { |
||
61 | compatible = "gpio-export"; |
||
62 | #size-cells = <0>; |
||
63 | |||
64 | usbpower { |
||
65 | gpio-export,name = "usbpower"; |
||
66 | gpio-export,output = <1>; |
||
67 | gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
||
68 | }; |
||
69 | }; |
||
70 | }; |
||
71 | |||
72 | &spi0 { |
||
73 | status = "okay"; |
||
74 | |||
75 | mx25l12805d@0 { |
||
76 | #address-cells = <1>; |
||
77 | #size-cells = <1>; |
||
78 | compatible = "jedec,spi-nor"; |
||
79 | reg = <0>; |
||
80 | spi-max-frequency = <10000000>; |
||
81 | m25p,chunked-io = <32>; |
||
82 | |||
83 | partition@0 { |
||
84 | label = "u-boot"; |
||
85 | reg = <0x0 0x30000>; |
||
86 | read-only; |
||
87 | }; |
||
88 | |||
89 | partition@30000 { |
||
90 | label = "u-boot-env"; |
||
91 | reg = <0x30000 0x10000>; |
||
92 | read-only; |
||
93 | }; |
||
94 | |||
95 | factory: partition@f30000 { |
||
96 | label = "factory"; |
||
97 | reg = <0xf30000 0x10000>; |
||
98 | read-only; |
||
99 | }; |
||
100 | |||
101 | partition@50000 { |
||
102 | label = "firmware"; |
||
103 | reg = <0x50000 0xee0000>; |
||
104 | }; |
||
105 | }; |
||
106 | }; |
||
107 | |||
108 | &pcie { |
||
109 | status = "okay"; |
||
110 | |||
111 | pcie0 { |
||
112 | mt76@0,0 { |
||
113 | reg = <0x0000 0 0 0 0>; |
||
114 | device_type = "pci"; |
||
115 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
116 | ieee80211-freq-limit = <5000000 6000000>; |
||
117 | }; |
||
118 | }; |
||
119 | |||
120 | pcie1 { |
||
121 | mt76@1,0 { |
||
122 | reg = <0x0000 0 0 0 0>; |
||
123 | device_type = "pci"; |
||
124 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
125 | }; |
||
126 | }; |
||
127 | }; |
||
128 | |||
129 | ðernet { |
||
130 | mtd-mac-address = <&factory 0x0000000c>; |
||
131 | }; |
||
132 | |||
133 | &pinctrl { |
||
134 | state_default: pinctrl0 { |
||
135 | gpio { |
||
136 | ralink,group = "rgmii2", "mdio", "wdt"; |
||
137 | ralink,function = "gpio"; |
||
138 | }; |
||
139 | }; |
||
140 | }; |