Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 1 | Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec |
| 2 | |
| 3 | Required properties: |
| 4 | |
| 5 | - compatible - "samsung,odroidxu3-audio" - for Odroid XU3 board, |
| 6 | "samsung,odroidxu4-audio" - for Odroid XU4 board |
| 7 | - model - the user-visible name of this sound complex |
Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 8 | - clocks - should contain entries matching clock names in the clock-names |
| 9 | property |
Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 10 | - samsung,audio-widgets - this property specifies off-codec audio elements |
| 11 | like headphones or speakers, for details see widgets.txt |
| 12 | - samsung,audio-routing - a list of the connections between audio |
| 13 | components; each entry is a pair of strings, the first being the |
| 14 | connection's sink, the second being the connection's source; |
| 15 | valid names for sources and sinks are the MAX98090's pins (as |
| 16 | documented in its binding), and the jacks on the board |
| 17 | |
| 18 | For Odroid X2: |
| 19 | "Headphone Jack", "Mic Jack", "DMIC" |
| 20 | |
| 21 | For Odroid U3, XU3: |
| 22 | "Headphone Jack", "Speakers" |
| 23 | |
| 24 | For Odroid XU4: |
| 25 | no entries |
| 26 | |
Sylwester Nawrocki | 63ddf5d | 2017-06-09 19:09:44 +0200 | [diff] [blame] | 27 | Required sub-nodes: |
| 28 | |
| 29 | - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S |
| 30 | controller |
| 31 | - 'codec' subnode with a 'sound-dai' property containing list of phandles |
| 32 | to the CODEC nodes, first entry must be corresponding to the MAX98090 |
| 33 | CODEC and the second entry must be the phandle of the HDMI IP block node |
| 34 | |
Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 35 | Example: |
| 36 | |
| 37 | sound { |
| 38 | compatible = "samsung,odroidxu3-audio"; |
Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 39 | model = "Odroid-XU3"; |
| 40 | samsung,audio-routing = |
| 41 | "Headphone Jack", "HPL", |
| 42 | "Headphone Jack", "HPR", |
| 43 | "IN1", "Mic Jack", |
| 44 | "Mic Jack", "MICBIAS"; |
| 45 | |
Sylwester Nawrocki | 92c9f05 | 2017-04-21 19:19:49 +0200 | [diff] [blame] | 46 | cpu { |
| 47 | sound-dai = <&i2s0 0>; |
| 48 | }; |
| 49 | codec { |
| 50 | sound-dai = <&hdmi>, <&max98090>; |
| 51 | }; |
| 52 | }; |