OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620a.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "dlink,dch-m225", "ralink,mt7620a-soc"; |
||
10 | model = "D-Link DCH-M225"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_power; |
||
14 | led-failsafe = &led_power; |
||
15 | led-running = &led_power; |
||
16 | led-upgrade = &led_power; |
||
17 | }; |
||
18 | |||
19 | keys { |
||
20 | compatible = "gpio-keys-polled"; |
||
21 | poll-interval = <100>; |
||
22 | |||
23 | wps { |
||
24 | label = "wps"; |
||
25 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
26 | linux,code = <KEY_RFKILL>; |
||
27 | }; |
||
28 | |||
29 | reset { |
||
30 | label = "reset"; |
||
31 | gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; |
||
32 | linux,code = <KEY_RESTART>; |
||
33 | }; |
||
34 | }; |
||
35 | |||
36 | leds { |
||
37 | compatible = "gpio-leds"; |
||
38 | |||
39 | led_power: power { |
||
40 | label = "dch-m225:green:power"; |
||
41 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
||
42 | default-state = "on"; |
||
43 | }; |
||
44 | |||
45 | status { |
||
46 | label = "dch-m225:red:status"; |
||
47 | gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
||
48 | }; |
||
49 | }; |
||
50 | |||
51 | sound { |
||
52 | compatible = "simple-audio-card"; |
||
53 | simple-audio-card,name = "Audio-I2S"; |
||
54 | simple-audio-card,format = "i2s"; |
||
55 | simple-audio-card,bitclock-master = <&dailink0_master>; |
||
56 | simple-audio-card,frame-master = <&dailink0_master>; |
||
57 | simple-audio-card,widgets = |
||
58 | "Headphone", "Headphones"; |
||
59 | simple-audio-card,routing = |
||
60 | "Headphones", "HP_L", |
||
61 | "Headphones", "HP_R"; |
||
62 | simple-audio-card,mclk-fs = <256>; |
||
63 | simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
64 | |||
65 | simple-audio-card,cpu { |
||
66 | sound-dai = <&i2s>; |
||
67 | }; |
||
68 | |||
69 | dailink0_master: simple-audio-card,codec { |
||
70 | sound-dai = <&codec>; |
||
71 | }; |
||
72 | }; |
||
73 | }; |
||
74 | |||
75 | &gpio0 { |
||
76 | status = "okay"; |
||
77 | }; |
||
78 | |||
79 | &gpio1 { |
||
80 | status = "okay"; |
||
81 | }; |
||
82 | |||
83 | &i2c { |
||
84 | status = "okay"; |
||
85 | |||
86 | codec: wm8960@1a { |
||
87 | #sound-dai-cells = <0>; |
||
88 | compatible = "wlf,wm8960"; |
||
89 | reg = <0x1a>; |
||
90 | |||
91 | wlf,shared-lrclk; |
||
92 | }; |
||
93 | }; |
||
94 | |||
95 | &i2s { |
||
96 | #sound-dai-cells = <0>; |
||
97 | status = "okay"; |
||
98 | pinctrl-names = "default"; |
||
99 | pinctrl-0 = <&mdio_refclk_pins>; |
||
100 | }; |
||
101 | |||
102 | &spi0 { |
||
103 | status = "okay"; |
||
104 | |||
105 | m25p80@0 { |
||
106 | compatible = "jedec,spi-nor"; |
||
107 | reg = <0>; |
||
108 | spi-max-frequency = <80000000>; |
||
109 | m25p,fast-read; |
||
110 | |||
111 | partitions { |
||
112 | compatible = "fixed-partitions"; |
||
113 | #address-cells = <1>; |
||
114 | #size-cells = <1>; |
||
115 | |||
116 | partition@0 { |
||
117 | label = "u-boot"; |
||
118 | reg = <0x0 0x30000>; |
||
119 | read-only; |
||
120 | }; |
||
121 | |||
122 | partition@30000 { |
||
123 | label = "u-boot-env"; |
||
124 | reg = <0x30000 0x4000>; |
||
125 | read-only; |
||
126 | }; |
||
127 | |||
128 | factory: partition@34000 { |
||
129 | label = "factory"; |
||
130 | reg = <0x34000 0x4000>; |
||
131 | read-only; |
||
132 | }; |
||
133 | |||
134 | nvram: partition@38000 { |
||
135 | label = "nvram"; |
||
136 | reg = <0x38000 0x8000>; |
||
137 | read-only; |
||
138 | }; |
||
139 | |||
140 | partition@40000 { |
||
141 | label = "devconf"; |
||
142 | reg = <0x40000 0x10000>; |
||
143 | read-only; |
||
144 | }; |
||
145 | |||
146 | partition@50000 { |
||
147 | label = "upgrade_rec"; |
||
148 | reg = <0x50000 0x100000>; |
||
149 | read-only; |
||
150 | }; |
||
151 | |||
152 | partition@150000 { |
||
153 | compatible = "seama"; |
||
154 | label = "firmware"; |
||
155 | reg = <0x150000 0x6b0000>; |
||
156 | }; |
||
157 | }; |
||
158 | }; |
||
159 | }; |
||
160 | |||
161 | &gdma { |
||
162 | status = "okay"; |
||
163 | }; |
||
164 | |||
165 | &pinctrl { |
||
166 | state_default: pinctrl0 { |
||
167 | gpio { |
||
168 | ralink,group = "wdt", "rgmii1"; |
||
169 | ralink,function = "gpio"; |
||
170 | }; |
||
171 | |||
172 | gpio_i2s { |
||
173 | ralink,group = "uartf"; |
||
174 | ralink,function = "gpio i2s"; |
||
175 | }; |
||
176 | }; |
||
177 | }; |
||
178 | |||
179 | ðernet { |
||
180 | mtd-mac-address = <&factory 0x4>; |
||
181 | }; |
||
182 | |||
183 | &gsw { |
||
184 | ralink,port4 = "ephy"; |
||
185 | }; |
||
186 | |||
187 | &wmac { |
||
188 | ralink,mtd-eeprom = <&factory 0>; |
||
189 | pinctrl-names = "default"; |
||
190 | pinctrl-0 = <&pa_pins>; |
||
191 | }; |