.. | .. |
---|
130 | 130 | status = "okay"; |
---|
131 | 131 | }; |
---|
132 | 132 | |
---|
133 | | - dummy_codec: dummy-codec { |
---|
134 | | - status = "okay"; |
---|
135 | | - compatible = "rockchip,dummy-codec"; |
---|
136 | | - #sound-dai-cells = <0>; |
---|
137 | | - pinctrl-names = "default"; |
---|
138 | | - pinctrl-0 = <&rk3308_reset>; |
---|
139 | | - }; |
---|
140 | | - |
---|
141 | 133 | car_rk3308_sound: car-rk3308-sound { |
---|
142 | 134 | status = "okay"; |
---|
143 | 135 | compatible = "simple-audio-card"; |
---|
.. | .. |
---|
152 | 144 | dai-tdm-slot-width = <32>; |
---|
153 | 145 | }; |
---|
154 | 146 | codec_master: simple-audio-card,codec { |
---|
155 | | - sound-dai = <&dummy_codec>; |
---|
| 147 | + sound-dai = <&spi_codec>; |
---|
156 | 148 | }; |
---|
157 | 149 | }; |
---|
158 | 150 | }; |
---|
.. | .. |
---|
339 | 331 | status = "disabled"; |
---|
340 | 332 | }; |
---|
341 | 333 | |
---|
| 334 | +&spi4 { |
---|
| 335 | + status = "okay"; |
---|
| 336 | + pinctrl-names = "default"; |
---|
| 337 | + pinctrl-0 = <&spi4m0_cs1 &spi4m0_pins>; |
---|
| 338 | + |
---|
| 339 | + spi_codec: spi-codec@1 { |
---|
| 340 | + compatible ="rockchip,spi-codec"; |
---|
| 341 | + reg = <1>; |
---|
| 342 | + spi-lsb-first; |
---|
| 343 | + spi-max-frequency = <5000000>; |
---|
| 344 | + #sound-dai-cells = <0>; |
---|
| 345 | + pinctrl-names = "default"; |
---|
| 346 | + pinctrl-0 = <&rk3308_reset>; |
---|
| 347 | + status = "okay"; |
---|
| 348 | + }; |
---|
| 349 | +}; |
---|
| 350 | + |
---|
342 | 351 | &uart7 { |
---|
343 | 352 | /delete-property/ dmas; |
---|
344 | 353 | status = "okay"; |
---|