OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | #include <dt-bindings/input/input.h> |
||
3 | #include <dt-bindings/gpio/gpio.h> |
||
4 | |||
5 | #include "mt7628an.dtsi" |
||
6 | |||
7 | / { |
||
8 | compatible = "wavlink,wl-wn570ha1", "mediatek,mt7628an-soc"; |
||
9 | model = "Wavlink WL-WN570HA1"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyS0,57600"; |
||
13 | }; |
||
14 | |||
15 | memory@0 { |
||
16 | device_type = "memory"; |
||
17 | reg = <0x0 0x4000000>; |
||
18 | }; |
||
19 | |||
20 | keys { |
||
21 | compatible = "gpio-keys-polled"; |
||
22 | poll-interval = <20>; |
||
23 | |||
24 | reset { |
||
25 | label = "reset"; |
||
26 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
||
27 | linux,code = <KEY_RESTART>; |
||
28 | }; |
||
29 | }; |
||
30 | |||
31 | leds { |
||
32 | compatible = "gpio-leds"; |
||
33 | |||
34 | power { |
||
35 | label = "wl-wn570ha1:green:power"; |
||
36 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
||
37 | default-state = "keep"; |
||
38 | }; |
||
39 | |||
40 | wan { |
||
41 | label = "wl-wn570ha1:green:wan"; |
||
42 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
||
43 | }; |
||
44 | |||
45 | wifi-high { |
||
46 | label = "wl-wn570ha1:green:wifi-high"; |
||
47 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
48 | }; |
||
49 | |||
50 | wifi-med { |
||
51 | label = "wl-wn570ha1:green:wifi-med"; |
||
52 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
||
53 | }; |
||
54 | |||
55 | wifi-low { |
||
56 | label = "wl-wn570ha1:green:wifi-low"; |
||
57 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
||
58 | }; |
||
59 | |||
60 | wifi { |
||
61 | label = "wl-wn570ha1:green:wifi"; |
||
62 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
||
63 | }; |
||
64 | }; |
||
65 | }; |
||
66 | |||
67 | &pinctrl { |
||
68 | state_default: pinctrl0 { |
||
69 | gpio { |
||
70 | ralink,group = "i2c", "wled_an", "p0led_an", "wdt", "refclk"; |
||
71 | ralink,function = "gpio"; |
||
72 | }; |
||
73 | }; |
||
74 | }; |
||
75 | |||
76 | &pcie { |
||
77 | status = "okay"; |
||
78 | }; |
||
79 | |||
80 | &pcie0 { |
||
81 | wifi@0,0 { |
||
82 | reg = <0x0000 0 0 0 0>; |
||
83 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
84 | ieee80211-freq-limit = <5000000 6000000>; |
||
85 | }; |
||
86 | }; |
||
87 | |||
88 | &spi0 { |
||
89 | status = "okay"; |
||
90 | |||
91 | flash@0 { |
||
92 | compatible = "jedec,spi-nor"; |
||
93 | reg = <0>; |
||
94 | spi-max-frequency = <10000000>; |
||
95 | |||
96 | partitions { |
||
97 | compatible = "fixed-partitions"; |
||
98 | #address-cells = <1>; |
||
99 | #size-cells = <1>; |
||
100 | |||
101 | partition@0 { |
||
102 | label = "u-boot"; |
||
103 | reg = <0x0 0x30000>; |
||
104 | read-only; |
||
105 | }; |
||
106 | |||
107 | partition@30000 { |
||
108 | label = "u-boot-env"; |
||
109 | reg = <0x30000 0x10000>; |
||
110 | read-only; |
||
111 | }; |
||
112 | |||
113 | factory: partition@40000 { |
||
114 | label = "factory"; |
||
115 | reg = <0x40000 0x10000>; |
||
116 | read-only; |
||
117 | }; |
||
118 | |||
119 | partition@50000 { |
||
120 | compatible = "denx,uimage"; |
||
121 | label = "firmware"; |
||
122 | reg = <0x50000 0x7b0000>; |
||
123 | }; |
||
124 | }; |
||
125 | }; |
||
126 | }; |
||
127 | |||
128 | &wmac { |
||
129 | status = "okay"; |
||
130 | }; |
||
131 | |||
132 | ðernet { |
||
133 | mtd-mac-address = <&factory 0x2e>; |
||
134 | mediatek,portmap = "llllw"; |
||
135 | }; |