Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Device Tree for ULCB + Simple Audio Card |
| 4 | * |
| 5 | * Copyright (C) 2022 Renesas Electronics Corp. |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * (A) CPU0 <----> ak4613 |
| 10 | * (B) CPU1 ----> HDMI |
| 11 | * |
| 12 | * (A) aplay -D plughw:0,0 xxx.wav |
| 13 | * (B) aplay -D plughw:0,1 xxx.wav |
| 14 | * |
| 15 | * (A) arecord -D plughw:0,0 xxx.wav |
| 16 | */ |
| 17 | |
| 18 | / { |
| 19 | sound_card: sound { |
| 20 | compatible = "simple-audio-card"; |
| 21 | label = "snd-ulcb"; |
| 22 | |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <0>; |
| 25 | |
| 26 | /* |
| 27 | * (A) CPU0 <-> ak4613 |
| 28 | */ |
| 29 | simple-audio-card,dai-link@0 { |
| 30 | reg = <0>; |
| 31 | cpu { |
| 32 | bitclock-master; |
| 33 | frame-master; |
| 34 | sound-dai = <&rcar_sound 0>; |
| 35 | }; |
| 36 | codec { |
| 37 | sound-dai = <&ak4613>; |
| 38 | }; |
| 39 | }; |
| 40 | /* |
| 41 | * (B) CPU1 -> HDMI |
| 42 | */ |
| 43 | simple-audio-card,dai-link@1 { |
| 44 | reg = <1>; |
| 45 | cpu { |
| 46 | bitclock-master; |
| 47 | frame-master; |
| 48 | sound-dai = <&rcar_sound 1>; |
| 49 | }; |
| 50 | codec { |
| 51 | sound-dai = <&hdmi0>; |
| 52 | }; |
| 53 | }; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | &ak4613 { |
| 58 | /* |
| 59 | * (A) CPU0 <-> ak4613 |
| 60 | */ |
| 61 | #sound-dai-cells = <0>; |
| 62 | }; |
| 63 | |
| 64 | &hdmi0 { |
| 65 | /* |
| 66 | * (B) CPU1 -> HDMI |
| 67 | */ |
| 68 | #sound-dai-cells = <0>; |
| 69 | }; |
| 70 | |
| 71 | &rcar_sound { |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
| 74 | #sound-dai-cells = <1>; |
| 75 | |
| 76 | rcar_sound,dai@0 { |
| 77 | reg = <0>; |
| 78 | |
| 79 | /* |
| 80 | * (A) CPU0 <-> ak4613 |
| 81 | */ |
| 82 | dai0 { |
| 83 | playback = <&ssi0 &src0 &dvc0>; |
| 84 | capture = <&ssi1 &src1 &dvc1>; |
| 85 | }; |
| 86 | /* |
| 87 | * (B) CPU1 -> HDMI |
| 88 | */ |
| 89 | dai1 { |
| 90 | playback = <&ssi2>; |
| 91 | }; |
| 92 | }; |
| 93 | }; |