162661f3bSKuninori Morimoto// SPDX-License-Identifier: GPL-2.0 262661f3bSKuninori Morimoto/* 362661f3bSKuninori Morimoto * Device Tree for ULCB + Simple Audio Card 462661f3bSKuninori Morimoto * 562661f3bSKuninori Morimoto * Copyright (C) 2022 Renesas Electronics Corp. 662661f3bSKuninori Morimoto */ 762661f3bSKuninori Morimoto 862661f3bSKuninori Morimoto/* 962661f3bSKuninori Morimoto * (A) CPU0 <----> ak4613 1062661f3bSKuninori Morimoto * (B) CPU1 ----> HDMI 1162661f3bSKuninori Morimoto * 1262661f3bSKuninori Morimoto * (A) aplay -D plughw:0,0 xxx.wav 1362661f3bSKuninori Morimoto * (B) aplay -D plughw:0,1 xxx.wav 1462661f3bSKuninori Morimoto * 1562661f3bSKuninori Morimoto * (A) arecord -D plughw:0,0 xxx.wav 1662661f3bSKuninori Morimoto */ 1762661f3bSKuninori Morimoto 1862661f3bSKuninori Morimoto/ { 1962661f3bSKuninori Morimoto sound_card: sound { 2062661f3bSKuninori Morimoto compatible = "simple-audio-card"; 21*d70be079SKuninori Morimoto label = "snd-ulcb"; 2262661f3bSKuninori Morimoto 2362661f3bSKuninori Morimoto #address-cells = <1>; 2462661f3bSKuninori Morimoto #size-cells = <0>; 2562661f3bSKuninori Morimoto 2662661f3bSKuninori Morimoto /* 2762661f3bSKuninori Morimoto * (A) CPU0 <-> ak4613 2862661f3bSKuninori Morimoto */ 2962661f3bSKuninori Morimoto simple-audio-card,dai-link@0 { 3062661f3bSKuninori Morimoto reg = <0>; 3162661f3bSKuninori Morimoto cpu { 3262661f3bSKuninori Morimoto bitclock-master; 3362661f3bSKuninori Morimoto frame-master; 3462661f3bSKuninori Morimoto sound-dai = <&rcar_sound 0>; 3562661f3bSKuninori Morimoto }; 3662661f3bSKuninori Morimoto codec { 3762661f3bSKuninori Morimoto sound-dai = <&ak4613>; 3862661f3bSKuninori Morimoto }; 3962661f3bSKuninori Morimoto }; 4062661f3bSKuninori Morimoto /* 4162661f3bSKuninori Morimoto * (B) CPU1 -> HDMI 4262661f3bSKuninori Morimoto */ 4362661f3bSKuninori Morimoto simple-audio-card,dai-link@1 { 4462661f3bSKuninori Morimoto reg = <1>; 4562661f3bSKuninori Morimoto cpu { 4662661f3bSKuninori Morimoto bitclock-master; 4762661f3bSKuninori Morimoto frame-master; 4862661f3bSKuninori Morimoto sound-dai = <&rcar_sound 1>; 4962661f3bSKuninori Morimoto }; 5062661f3bSKuninori Morimoto codec { 5162661f3bSKuninori Morimoto sound-dai = <&hdmi0>; 5262661f3bSKuninori Morimoto }; 5362661f3bSKuninori Morimoto }; 5462661f3bSKuninori Morimoto }; 5562661f3bSKuninori Morimoto}; 5662661f3bSKuninori Morimoto 5762661f3bSKuninori Morimoto&ak4613 { 5862661f3bSKuninori Morimoto /* 5962661f3bSKuninori Morimoto * (A) CPU0 <-> ak4613 6062661f3bSKuninori Morimoto */ 6162661f3bSKuninori Morimoto #sound-dai-cells = <0>; 6262661f3bSKuninori Morimoto}; 6362661f3bSKuninori Morimoto 6462661f3bSKuninori Morimoto&hdmi0 { 6562661f3bSKuninori Morimoto /* 6662661f3bSKuninori Morimoto * (B) CPU1 -> HDMI 6762661f3bSKuninori Morimoto */ 6862661f3bSKuninori Morimoto #sound-dai-cells = <0>; 6962661f3bSKuninori Morimoto}; 7062661f3bSKuninori Morimoto 7162661f3bSKuninori Morimoto&rcar_sound { 72*d70be079SKuninori Morimoto #address-cells = <1>; 73*d70be079SKuninori Morimoto #size-cells = <0>; 7462661f3bSKuninori Morimoto #sound-dai-cells = <1>; 7562661f3bSKuninori Morimoto 76*d70be079SKuninori Morimoto rcar_sound,dai@0 { 77*d70be079SKuninori Morimoto reg = <0>; 78*d70be079SKuninori Morimoto 7962661f3bSKuninori Morimoto /* 8062661f3bSKuninori Morimoto * (A) CPU0 <-> ak4613 8162661f3bSKuninori Morimoto */ 8262661f3bSKuninori Morimoto dai0 { 8362661f3bSKuninori Morimoto playback = <&ssi0 &src0 &dvc0>; 8462661f3bSKuninori Morimoto capture = <&ssi1 &src1 &dvc1>; 8562661f3bSKuninori Morimoto }; 8662661f3bSKuninori Morimoto /* 8762661f3bSKuninori Morimoto * (B) CPU1 -> HDMI 8862661f3bSKuninori Morimoto */ 8962661f3bSKuninori Morimoto dai1 { 9062661f3bSKuninori Morimoto playback = <&ssi2>; 9162661f3bSKuninori Morimoto }; 9262661f3bSKuninori Morimoto }; 9362661f3bSKuninori Morimoto}; 94