Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: xtfpga: add audio card to xtfpga DTS

This includes OpenCores I2C host controller, TI CDCE706 clock generator,
xtfpga I2S master controller, xtfpga SPI master controller, TI TLV320AIC23
audio codec and a simple audio card.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+64
+64
arch/xtensa/boot/dts/xtfpga.dtsi
··· 40 40 #clock-cells = <0>; 41 41 compatible = "fixed-clock"; 42 42 }; 43 + 44 + clk54: clk54 { 45 + #clock-cells = <0>; 46 + compatible = "fixed-clock"; 47 + clock-frequency = <54000000>; 48 + }; 43 49 }; 44 50 45 51 soc { ··· 70 64 interrupts = <1 1>; /* external irq 1 */ 71 65 local-mac-address = [00 50 c2 13 6f 00]; 72 66 clocks = <&osc>; 67 + }; 68 + 69 + i2s0: xtfpga-i2s@0d080000 { 70 + #sound-dai-cells = <0>; 71 + compatible = "cdns,xtfpga-i2s"; 72 + reg = <0x0d080000 0x40>; 73 + interrupts = <2 1>; /* external irq 2 */ 74 + clocks = <&cdce706 4>; 75 + }; 76 + 77 + i2c0: i2c-master@0d090000 { 78 + compatible = "opencores,i2c-ocores"; 79 + #address-cells = <1>; 80 + #size-cells = <0>; 81 + reg = <0x0d090000 0x20>; 82 + reg-shift = <2>; 83 + reg-io-width = <1>; 84 + interrupts = <4 1>; 85 + clocks = <&osc>; 86 + 87 + cdce706: clock-synth@69 { 88 + compatible = "ti,cdce706"; 89 + #clock-cells = <1>; 90 + reg = <0x69>; 91 + clocks = <&clk54>; 92 + clock-names = "clk_in0"; 93 + }; 94 + }; 95 + 96 + spi0: spi-master@0d0a0000 { 97 + compatible = "cdns,xtfpga-spi"; 98 + #address-cells = <1>; 99 + #size-cells = <0>; 100 + reg = <0x0d0a0000 0xc>; 101 + 102 + tlv320aic23: sound-codec@0 { 103 + #sound-dai-cells = <0>; 104 + compatible = "tlv320aic23"; 105 + reg = <0>; 106 + spi-max-frequency = <12500000>; 107 + }; 108 + }; 109 + }; 110 + 111 + sound { 112 + compatible = "simple-audio-card"; 113 + simple-audio-card,format = "i2s"; 114 + simple-audio-card,mclk-fs = <256>; 115 + 116 + simple-audio-card,cpu { 117 + sound-dai = <&i2s0>; 118 + }; 119 + 120 + simple-audio-card,codec { 121 + sound-dai = <&tlv320aic23>; 122 + simple-audio-card,bitclock-master = <0>; 123 + simple-audio-card,frame-master = <0>; 124 + clocks = <&cdce706 4>; 73 125 }; 74 126 }; 75 127 };