OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620n.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "kimax,u35wf","ralink,mt7620n-soc"; |
||
10 | model = "Kimax U35WF"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_wifi; |
||
14 | led-failsafe = &led_wifi; |
||
15 | led-running = &led_wifi; |
||
16 | led-upgrade = &led_wifi; |
||
17 | }; |
||
18 | |||
19 | keys { |
||
20 | compatible = "gpio-keys-polled"; |
||
21 | poll-interval = <20>; |
||
22 | |||
23 | reset { |
||
24 | label = "reset"; |
||
25 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
||
26 | linux,code = <KEY_RESTART>; |
||
27 | }; |
||
28 | }; |
||
29 | |||
30 | leds { |
||
31 | compatible = "gpio-leds"; |
||
32 | |||
33 | led_wifi: wifi { |
||
34 | label = "u35wf:blue:wifi"; |
||
35 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
36 | }; |
||
37 | |||
38 | lan { |
||
39 | label = "u35wf:green:eth"; |
||
40 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
||
41 | }; |
||
42 | }; |
||
43 | }; |
||
44 | |||
45 | &gpio2 { |
||
46 | status = "okay"; |
||
47 | }; |
||
48 | |||
49 | &gpio3 { |
||
50 | status = "okay"; |
||
51 | }; |
||
52 | |||
53 | &spi0 { |
||
54 | status = "okay"; |
||
55 | |||
56 | m25p80@0 { |
||
57 | compatible = "jedec,spi-nor"; |
||
58 | reg = <0>; |
||
59 | spi-max-frequency = <10000000>; |
||
60 | |||
61 | partitions { |
||
62 | compatible = "fixed-partitions"; |
||
63 | #address-cells = <1>; |
||
64 | #size-cells = <1>; |
||
65 | |||
66 | partition@0 { |
||
67 | label = "u-boot"; |
||
68 | reg = <0x0 0x30000>; |
||
69 | read-only; |
||
70 | }; |
||
71 | |||
72 | partition@30000 { |
||
73 | label = "u-boot-env"; |
||
74 | reg = <0x30000 0x10000>; |
||
75 | read-only; |
||
76 | }; |
||
77 | |||
78 | factory: partition@40000 { |
||
79 | label = "factory"; |
||
80 | reg = <0x40000 0x10000>; |
||
81 | read-only; |
||
82 | }; |
||
83 | |||
84 | partition@50000 { |
||
85 | compatible = "denx,uimage"; |
||
86 | label = "firmware"; |
||
87 | reg = <0x50000 0xfb0000>; |
||
88 | }; |
||
89 | }; |
||
90 | }; |
||
91 | }; |
||
92 | |||
93 | &ehci { |
||
94 | status = "okay"; |
||
95 | }; |
||
96 | |||
97 | &ohci { |
||
98 | status = "okay"; |
||
99 | }; |
||
100 | |||
101 | ðernet { |
||
102 | mtd-mac-address = <&factory 0x4>; |
||
103 | }; |
||
104 | |||
105 | &wmac { |
||
106 | ralink,mtd-eeprom = <&factory 0>; |
||
107 | }; |
||
108 | |||
109 | &pinctrl { |
||
110 | state_default: pinctrl0 { |
||
111 | default { |
||
112 | ralink,group = "ephy", "wled"; |
||
113 | ralink,function = "gpio"; |
||
114 | }; |
||
115 | }; |
||
116 | }; |