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 = "planex,cs-qr10", "ralink,mt7620a-soc"; |
||
10 | model = "YUKAI Engineering BOCCO"; |
||
11 | |||
12 | keys { |
||
13 | compatible = "gpio-keys-polled"; |
||
14 | poll-interval = <20>; |
||
15 | |||
16 | reset { |
||
17 | label = "reset"; |
||
18 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
||
19 | linux,code = <KEY_RESTART>; |
||
20 | }; |
||
21 | }; |
||
22 | |||
23 | gpio_export { |
||
24 | compatible = "gpio-export"; |
||
25 | #size-cells = <0>; |
||
26 | |||
27 | s1 { |
||
28 | gpio-export,name = "rec"; |
||
29 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
||
30 | }; |
||
31 | s2 { |
||
32 | gpio-export,name = "play"; |
||
33 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
||
34 | }; |
||
35 | }; |
||
36 | |||
37 | sound { |
||
38 | compatible = "simple-audio-card"; |
||
39 | simple-audio-card,name = "Audio-I2S"; |
||
40 | simple-audio-card,format = "i2s"; |
||
41 | simple-audio-card,bitclock-master = <&dailink0_master>; |
||
42 | simple-audio-card,frame-master = <&dailink0_master>; |
||
43 | simple-audio-card,widgets = |
||
44 | "Headphone", "Headphones"; |
||
45 | simple-audio-card,routing = |
||
46 | "Headphones", "HP_L", |
||
47 | "Headphones", "HP_R"; |
||
48 | simple-audio-card,mclk-fs = <256>; |
||
49 | |||
50 | simple-audio-card,cpu { |
||
51 | sound-dai = <&i2s>; |
||
52 | }; |
||
53 | |||
54 | dailink0_master: simple-audio-card,codec { |
||
55 | sound-dai = <&codec>; |
||
56 | }; |
||
57 | }; |
||
58 | }; |
||
59 | |||
60 | &gpio0 { |
||
61 | status = "okay"; |
||
62 | }; |
||
63 | |||
64 | &gpio1 { |
||
65 | status = "okay"; |
||
66 | }; |
||
67 | |||
68 | &gpio2 { |
||
69 | status = "okay"; |
||
70 | }; |
||
71 | |||
72 | &gpio3 { |
||
73 | status = "okay"; |
||
74 | }; |
||
75 | |||
76 | &i2c { |
||
77 | status = "okay"; |
||
78 | |||
79 | codec: wm8960@1a { |
||
80 | #sound-dai-cells = <0>; |
||
81 | compatible = "wlf,wm8960"; |
||
82 | reg = <0x1a>; |
||
83 | |||
84 | wlf,shared-lrclk; |
||
85 | }; |
||
86 | }; |
||
87 | |||
88 | &i2s { |
||
89 | #sound-dai-cells = <0>; |
||
90 | status = "okay"; |
||
91 | pinctrl-names = "default"; |
||
92 | pinctrl-0 = <&pcm_i2s_pins>; |
||
93 | }; |
||
94 | |||
95 | &spi0 { |
||
96 | status = "okay"; |
||
97 | |||
98 | m25p80@0 { |
||
99 | compatible = "jedec,spi-nor"; |
||
100 | reg = <0>; |
||
101 | spi-max-frequency = <10000000>; |
||
102 | |||
103 | partitions { |
||
104 | compatible = "fixed-partitions"; |
||
105 | #address-cells = <1>; |
||
106 | #size-cells = <1>; |
||
107 | |||
108 | partition@0 { |
||
109 | label = "u-boot"; |
||
110 | reg = <0x0 0x30000>; |
||
111 | read-only; |
||
112 | }; |
||
113 | |||
114 | partition@30000 { |
||
115 | label = "u-boot-env"; |
||
116 | reg = <0x30000 0x10000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | |||
120 | factory: partition@40000 { |
||
121 | label = "factory"; |
||
122 | reg = <0x40000 0x10000>; |
||
123 | read-only; |
||
124 | }; |
||
125 | |||
126 | partition@50000 { |
||
127 | compatible = "denx,uimage"; |
||
128 | label = "firmware"; |
||
129 | reg = <0x50000 0x7b0000>; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 | |||
135 | &pcm { |
||
136 | status = "okay"; |
||
137 | }; |
||
138 | |||
139 | &gdma { |
||
140 | status = "okay"; |
||
141 | }; |
||
142 | |||
143 | &pinctrl { |
||
144 | state_default: pinctrl0 { |
||
145 | gpio { |
||
146 | ralink,group = "spi refclk", "rgmii1"; |
||
147 | ralink,function = "gpio"; |
||
148 | }; |
||
149 | }; |
||
150 | }; |
||
151 | |||
152 | ðernet { |
||
153 | pinctrl-names = "default"; |
||
154 | pinctrl-0 = <&ephy_pins>; |
||
155 | mtd-mac-address = <&factory 0x4>; |
||
156 | mediatek,portmap = "llllw"; |
||
157 | }; |
||
158 | |||
159 | &gsw { |
||
160 | ralink,port4 = "ephy"; |
||
161 | }; |
||
162 | |||
163 | &wmac { |
||
164 | ralink,mtd-eeprom = <&factory 0>; |
||
165 | }; |