OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "rt3050.dtsi" |
2 | |||
3 | #include <dt-bindings/gpio/gpio.h> |
||
4 | #include <dt-bindings/input/input.h> |
||
5 | |||
6 | / { |
||
7 | compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc"; |
||
8 | |||
9 | aliases { |
||
10 | led-boot = &led_wps; |
||
11 | led-failsafe = &led_wps; |
||
12 | led-running = &led_wps; |
||
13 | led-upgrade = &led_wps; |
||
14 | }; |
||
15 | |||
16 | leds { |
||
17 | compatible = "gpio-leds"; |
||
18 | |||
19 | 3g { |
||
20 | label = "wr512-3gn:green:3g"; |
||
21 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
22 | }; |
||
23 | |||
24 | gateway { |
||
25 | label = "wr512-3gn:green:gateway"; |
||
26 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
29 | ap { |
||
30 | label = "wr512-3gn:green:ap"; |
||
31 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
34 | led_wps: wps { |
||
35 | label = "wr512-3gn:green:wps"; |
||
36 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | |||
39 | station { |
||
40 | label = "wr512-3gn:green:station"; |
||
41 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
42 | }; |
||
43 | }; |
||
44 | |||
45 | keys { |
||
46 | compatible = "gpio-keys-polled"; |
||
47 | poll-interval = <20>; |
||
48 | |||
49 | reset_wps { |
||
50 | label = "reset_wps"; |
||
51 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
52 | linux,code = <KEY_RESTART>; |
||
53 | }; |
||
54 | |||
55 | mode { |
||
56 | label = "mode"; |
||
57 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
58 | linux,code = <BTN_0>; |
||
59 | }; |
||
60 | }; |
||
61 | }; |
||
62 | |||
63 | &pinctrl { |
||
64 | state_default: pinctrl0 { |
||
65 | gpio { |
||
66 | ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; |
||
67 | ralink,function = "gpio"; |
||
68 | }; |
||
69 | }; |
||
70 | }; |
||
71 | |||
72 | &esw { |
||
73 | mediatek,portmap = <0x2f>; |
||
74 | }; |
||
75 | |||
76 | &wmac { |
||
77 | ralink,mtd-eeprom = <&factory 0>; |
||
78 | }; |
||
79 | |||
80 | &otg { |
||
81 | status = "okay"; |
||
82 | }; |