OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "rt3050.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "tenda,3g300m", "ralink,rt3052-soc"; |
||
10 | model = "Tenda 3G300M"; |
||
11 | |||
3 | office | 12 | gpio-leds { |
1 | office | 13 | compatible = "gpio-leds"; |
14 | |||
15 | 3grouter { |
||
16 | label = "3g300m:blue:3grouter"; |
||
17 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
18 | }; |
||
19 | |||
3 | office | 20 | ap { |
1 | office | 21 | label = "3g300m:blue:ap"; |
22 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
23 | }; |
||
24 | |||
25 | wisprouter { |
||
26 | label = "3g300m:blue:wisprouter"; |
||
27 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
28 | }; |
||
29 | |||
30 | wirelessrouter { |
||
31 | label = "3g300m:blue:wirelessrouter"; |
||
32 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
33 | }; |
||
34 | |||
35 | 3g { |
||
36 | label = "3g300m:blue:3g"; |
||
37 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
||
38 | }; |
||
39 | |||
40 | wpsreset { |
||
41 | label = "3g300m:blue:wpsreset"; |
||
42 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
43 | }; |
||
44 | }; |
||
45 | |||
3 | office | 46 | gpio-keys-polled { |
1 | office | 47 | compatible = "gpio-keys-polled"; |
3 | office | 48 | #address-cells = <1>; |
49 | #size-cells = <0>; |
||
1 | office | 50 | poll-interval = <20>; |
51 | |||
52 | reset { |
||
53 | label = "reset"; |
||
54 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
||
55 | linux,code = <KEY_RESTART>; |
||
56 | }; |
||
57 | |||
58 | mode { |
||
59 | label = "mode"; |
||
60 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
61 | linux,code = <BTN_0>; |
||
62 | }; |
||
63 | }; |
||
64 | }; |
||
65 | |||
66 | &spi0 { |
||
67 | status = "okay"; |
||
68 | |||
69 | m25p80@0 { |
||
3 | office | 70 | #address-cells = <1>; |
71 | #size-cells = <1>; |
||
1 | office | 72 | compatible = "jedec,spi-nor"; |
73 | reg = <0>; |
||
74 | spi-max-frequency = <10000000>; |
||
75 | |||
3 | office | 76 | partition@0 { |
77 | label = "u-boot"; |
||
78 | reg = <0x0 0x30000>; |
||
79 | read-only; |
||
80 | }; |
||
1 | office | 81 | |
3 | office | 82 | partition@30000 { |
83 | label = "u-boot-env"; |
||
84 | reg = <0x30000 0x10000>; |
||
85 | read-only; |
||
86 | }; |
||
1 | office | 87 | |
3 | office | 88 | factory: partition@40000 { |
89 | label = "factory"; |
||
90 | reg = <0x40000 0x10000>; |
||
91 | read-only; |
||
92 | }; |
||
1 | office | 93 | |
3 | office | 94 | partition@50000 { |
95 | label = "firmware"; |
||
96 | reg = <0x50000 0x3b0000>; |
||
1 | office | 97 | }; |
98 | }; |
||
99 | }; |
||
100 | |||
101 | &pinctrl { |
||
102 | state_default: pinctrl0 { |
||
103 | gpio { |
||
104 | ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
||
105 | ralink,function = "gpio"; |
||
106 | }; |
||
107 | }; |
||
108 | }; |
||
109 | |||
110 | ðernet { |
||
111 | mtd-mac-address = <&factory 0x4>; |
||
112 | }; |
||
113 | |||
114 | &esw { |
||
115 | mediatek,portmap = <0x2f>; |
||
116 | }; |
||
117 | |||
118 | &wmac { |
||
119 | ralink,mtd-eeprom = <&factory 0>; |
||
120 | }; |
||
121 | |||
122 | &otg { |
||
123 | status = "okay"; |
||
124 | }; |