OpenWrt – Blame information for rev 2
?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 = "youhua,wr1200js", "mediatek,mt7621-soc"; |
||
10 | model = "YouHua WR1200JS"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_wps; |
||
14 | led-failsafe = &led_wps; |
||
15 | }; |
||
16 | |||
17 | memory@0 { |
||
18 | device_type = "memory"; |
||
19 | reg = <0x0 0x8000000>; |
||
20 | }; |
||
21 | |||
22 | chosen { |
||
23 | bootargs = "console=ttyS0,115200"; |
||
24 | }; |
||
25 | |||
26 | leds { |
||
27 | compatible = "gpio-leds"; |
||
28 | |||
29 | internet { |
||
30 | label = "wr1200js:blue:internet"; |
||
31 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
34 | led_wps: wps { |
||
35 | label = "wr1200js:blue:wps"; |
||
36 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | |||
39 | usb { |
||
40 | label = "wr1200js:blue:usb"; |
||
41 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
||
42 | trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; |
||
43 | linux,default-trigger = "usbport"; |
||
44 | }; |
||
45 | }; |
||
46 | |||
47 | keys { |
||
48 | compatible = "gpio-keys-polled"; |
||
49 | poll-interval = <20>; |
||
50 | |||
51 | reset { |
||
52 | label = "reset"; |
||
53 | gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
||
54 | linux,code = <KEY_RESTART>; |
||
55 | }; |
||
56 | |||
57 | wps { |
||
58 | label = "wps"; |
||
59 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
60 | linux,code = <KEY_WPS_BUTTON>; |
||
61 | }; |
||
62 | |||
63 | wifi { |
||
64 | label = "wifi"; |
||
65 | gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; |
||
66 | linux,code = <KEY_RFKILL>; |
||
67 | }; |
||
68 | }; |
||
69 | }; |
||
70 | |||
71 | &spi0 { |
||
72 | status = "okay"; |
||
73 | |||
74 | m25p80@0 { |
||
75 | compatible = "jedec,spi-nor"; |
||
76 | reg = <0>; |
||
77 | spi-max-frequency = <10000000>; |
||
78 | |||
79 | partitions { |
||
80 | compatible = "fixed-partitions"; |
||
81 | #address-cells = <1>; |
||
82 | #size-cells = <1>; |
||
83 | |||
84 | partition@0 { |
||
85 | label = "u-boot"; |
||
86 | reg = <0x0 0x30000>; |
||
87 | read-only; |
||
88 | }; |
||
89 | |||
90 | partition@30000 { |
||
91 | label = "u-boot-env"; |
||
92 | reg = <0x30000 0x10000>; |
||
93 | read-only; |
||
94 | }; |
||
95 | |||
96 | factory: partition@40000 { |
||
97 | label = "factory"; |
||
98 | reg = <0x40000 0x10000>; |
||
99 | read-only; |
||
100 | }; |
||
101 | |||
102 | partition@50000 { |
||
103 | compatible = "denx,uimage"; |
||
104 | label = "firmware"; |
||
105 | reg = <0x50000 0xfb0000>; |
||
106 | }; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | |||
111 | &pcie { |
||
112 | status = "okay"; |
||
113 | }; |
||
114 | |||
115 | &pcie0 { |
||
116 | mt76@0,0 { |
||
117 | reg = <0x0000 0 0 0 0>; |
||
118 | mediatek,mtd-eeprom = <&factory 0x0000>; |
||
119 | }; |
||
120 | }; |
||
121 | |||
122 | &pcie1 { |
||
123 | mt76@0,0 { |
||
124 | reg = <0x0000 0 0 0 0>; |
||
125 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
126 | ieee80211-freq-limit = <5000000 6000000>; |
||
127 | |||
128 | led { |
||
129 | led-sources = <2>; |
||
130 | led-active-low; |
||
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 | |||
135 | ðernet { |
||
136 | mtd-mac-address = <&factory 0xe000>; |
||
137 | }; |
||
138 | |||
139 | &pinctrl { |
||
140 | state_default: pinctrl0 { |
||
141 | gpio { |
||
142 | ralink,group = "i2c", "uart2", "uart3", "wdt"; |
||
143 | ralink,function = "gpio"; |
||
144 | }; |
||
145 | }; |
||
146 | }; |