|
4 | 4 | */ |
5 | 5 |
|
6 | 6 | / { |
7 | | - /* TODO: Audio Codec */ |
8 | | - |
9 | 7 | reg_eth2phy: regulator-eth2phy { |
10 | 8 | compatible = "regulator-fixed"; |
11 | 9 | enable-active-high; |
|
17 | 15 | startup-delay-us = <200000>; |
18 | 16 | vin-supply = <®_3p3v>; |
19 | 17 | }; |
| 18 | + |
| 19 | + sound { |
| 20 | + compatible = "simple-audio-card"; |
| 21 | + simple-audio-card,bitclock-master = <&codec_dai>; |
| 22 | + simple-audio-card,format = "i2s"; |
| 23 | + simple-audio-card,frame-master = <&codec_dai>; |
| 24 | + simple-audio-card,mclk-fs = <256>; |
| 25 | + simple-audio-card,name = "imx8mp-nau8822"; |
| 26 | + simple-audio-card,routing = |
| 27 | + "Headphones", "LHP", |
| 28 | + "Headphones", "RHP", |
| 29 | + "Speaker", "LSPK", |
| 30 | + "Speaker", "RSPK", |
| 31 | + "Line Out", "AUXOUT1", |
| 32 | + "Line Out", "AUXOUT2", |
| 33 | + "LAUX", "Line In", |
| 34 | + "RAUX", "Line In", |
| 35 | + "LMICP", "Mic In", |
| 36 | + "RMICP", "Mic In"; |
| 37 | + simple-audio-card,widgets = |
| 38 | + "Headphones", "Headphones", |
| 39 | + "Line Out", "Line Out", |
| 40 | + "Speaker", "Speaker", |
| 41 | + "Microphone", "Mic In", |
| 42 | + "Line", "Line In"; |
| 43 | + |
| 44 | + codec_dai: simple-audio-card,codec { |
| 45 | + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1>; |
| 46 | + sound-dai = <&nau8822_1a>; |
| 47 | + }; |
| 48 | + |
| 49 | + simple-audio-card,cpu { |
| 50 | + sound-dai = <&sai1>; |
| 51 | + }; |
| 52 | + }; |
20 | 53 | }; |
21 | 54 |
|
22 | 55 | &backlight { |
|
88 | 121 | &i2c4 { |
89 | 122 | status = "okay"; |
90 | 123 |
|
91 | | - /* TODO: Audio Codec */ |
| 124 | + /* Audio Codec */ |
| 125 | + nau8822_1a: audio-codec@1a { |
| 126 | + compatible = "nuvoton,nau8822"; |
| 127 | + reg = <0x1a>; |
| 128 | + pinctrl-names = "default"; |
| 129 | + pinctrl-0 = <&pinctrl_sai1>; |
| 130 | + #sound-dai-cells = <0>; |
| 131 | + }; |
92 | 132 | }; |
93 | 133 |
|
94 | 134 | /* Verdin PCIE_1 */ |
|
119 | 159 | vin-supply = <®_3p3v>; |
120 | 160 | }; |
121 | 161 |
|
122 | | -/* TODO: Verdin I2C_1 with Audio Codec */ |
| 162 | +/* Verdin I2S_1 */ |
| 163 | +&sai1 { |
| 164 | + assigned-clocks = <&clk IMX8MP_CLK_SAI1>; |
| 165 | + assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; |
| 166 | + assigned-clock-rates = <24576000>; |
| 167 | + fsl,sai-mclk-direction-output; |
| 168 | + status = "okay"; |
| 169 | +}; |
123 | 170 |
|
124 | 171 | /* Verdin UART_1, connector X50 through RS485 transceiver */ |
125 | 172 | &uart1 { |
|
0 commit comments