1*62661f3bSKuninori Morimoto// SPDX-License-Identifier: GPL-2.0 2*62661f3bSKuninori Morimoto/* 3*62661f3bSKuninori Morimoto * Device Tree for ULCB + Kingfisher + Simple Audio Card 4*62661f3bSKuninori Morimoto * 5*62661f3bSKuninori Morimoto * Copyright (C) 2022 Renesas Electronics Corp. 6*62661f3bSKuninori Morimoto */ 7*62661f3bSKuninori Morimoto 8*62661f3bSKuninori Morimoto/* 9*62661f3bSKuninori Morimoto * (A) CPU0 <----> ak4613 10*62661f3bSKuninori Morimoto * (B) CPU1 ----> HDMI 11*62661f3bSKuninori Morimoto * (C) CPU2 ----> PCM3168A-p 12*62661f3bSKuninori Morimoto * (D) CPU3 <---- PCM3168A-c 13*62661f3bSKuninori Morimoto * 14*62661f3bSKuninori Morimoto * (A) aplay -D plughw:0,0 xxx.wav 15*62661f3bSKuninori Morimoto * (B) aplay -D plughw:0,1 xxx.wav 16*62661f3bSKuninori Morimoto * (C) aplay -D plughw:0,2 xxx.wav 17*62661f3bSKuninori Morimoto * 18*62661f3bSKuninori Morimoto * (A) arecord -D plughw:0,0 xxx.wav 19*62661f3bSKuninori Morimoto * (D) arecord -D plughw:0,3 xxx.wav 20*62661f3bSKuninori Morimoto */ 21*62661f3bSKuninori Morimoto 22*62661f3bSKuninori Morimoto&sound_card { 23*62661f3bSKuninori Morimoto /* dai-link@0/1 are defined in ulcb.dtsi */ 24*62661f3bSKuninori Morimoto 25*62661f3bSKuninori Morimoto /* 26*62661f3bSKuninori Morimoto * (C) CPU2 -> PCM3168A-p 27*62661f3bSKuninori Morimoto */ 28*62661f3bSKuninori Morimoto simple-audio-card,dai-link@2 { 29*62661f3bSKuninori Morimoto reg = <2>; 30*62661f3bSKuninori Morimoto cpu { 31*62661f3bSKuninori Morimoto bitclock-master; 32*62661f3bSKuninori Morimoto frame-master; 33*62661f3bSKuninori Morimoto dai-tdm-slot-num = <8>; 34*62661f3bSKuninori Morimoto sound-dai = <&rcar_sound 2>; 35*62661f3bSKuninori Morimoto }; 36*62661f3bSKuninori Morimoto codec { 37*62661f3bSKuninori Morimoto mclk-fs = <512>; 38*62661f3bSKuninori Morimoto sound-dai = <&pcm3168a 0>; 39*62661f3bSKuninori Morimoto }; 40*62661f3bSKuninori Morimoto }; 41*62661f3bSKuninori Morimoto /* 42*62661f3bSKuninori Morimoto * (D) CPU3 <- PCM3168A-c 43*62661f3bSKuninori Morimoto */ 44*62661f3bSKuninori Morimoto simple-audio-card,dai-link@3 { 45*62661f3bSKuninori Morimoto reg = <3>; 46*62661f3bSKuninori Morimoto cpu { 47*62661f3bSKuninori Morimoto bitclock-master; 48*62661f3bSKuninori Morimoto frame-master; 49*62661f3bSKuninori Morimoto dai-tdm-slot-num = <6>; 50*62661f3bSKuninori Morimoto sound-dai = <&rcar_sound 3>; 51*62661f3bSKuninori Morimoto }; 52*62661f3bSKuninori Morimoto codec { 53*62661f3bSKuninori Morimoto mclk-fs = <512>; 54*62661f3bSKuninori Morimoto sound-dai = <&pcm3168a 1>; 55*62661f3bSKuninori Morimoto }; 56*62661f3bSKuninori Morimoto }; 57*62661f3bSKuninori Morimoto}; 58*62661f3bSKuninori Morimoto 59*62661f3bSKuninori Morimoto&pcm3168a { 60*62661f3bSKuninori Morimoto /* 61*62661f3bSKuninori Morimoto * (C) CPU2 -> PCM3168A-p 62*62661f3bSKuninori Morimoto * (D) CPU3 <- PCM3168A-c 63*62661f3bSKuninori Morimoto */ 64*62661f3bSKuninori Morimoto #sound-dai-cells = <1>; 65*62661f3bSKuninori Morimoto}; 66*62661f3bSKuninori Morimoto 67*62661f3bSKuninori Morimoto&rcar_sound { 68*62661f3bSKuninori Morimoto 69*62661f3bSKuninori Morimoto rcar_sound,dai { 70*62661f3bSKuninori Morimoto /* dai0-1 are defined in ulcb.dtsi */ 71*62661f3bSKuninori Morimoto 72*62661f3bSKuninori Morimoto /* 73*62661f3bSKuninori Morimoto * (C) CPU2 -> PCM3168A-p 74*62661f3bSKuninori Morimoto */ 75*62661f3bSKuninori Morimoto dai2 { 76*62661f3bSKuninori Morimoto playback = <&ssi3>; 77*62661f3bSKuninori Morimoto }; 78*62661f3bSKuninori Morimoto /* 79*62661f3bSKuninori Morimoto * (D) CPU3 <- PCM3168A-c 80*62661f3bSKuninori Morimoto */ 81*62661f3bSKuninori Morimoto dai3 { 82*62661f3bSKuninori Morimoto capture = <&ssi4>; 83*62661f3bSKuninori Morimoto }; 84*62661f3bSKuninori Morimoto }; 85*62661f3bSKuninori Morimoto}; 86