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