|
| 1 | +//Device tree overlay for ezsound 6x8 isolated card |
| 2 | +/dts-v1/; |
| 3 | +/plugin/; |
| 4 | + |
| 5 | +/ { |
| 6 | + compatible = "brcm,bcm2712"; |
| 7 | + |
| 8 | + fragment@0 { |
| 9 | + target = <&rp1_i2s0_18_21>; |
| 10 | + __overlay__ { |
| 11 | + pins = "gpio18", "gpio19", "gpio20", "gpio22", "gpio24", |
| 12 | + "gpio26", "gpio21", "gpio23", "gpio25", "gpio27"; |
| 13 | + }; |
| 14 | + }; |
| 15 | + |
| 16 | + fragment@1 { |
| 17 | + target = <&rp1_i2s1_18_21>; |
| 18 | + __overlay__ { |
| 19 | + pins = "gpio18", "gpio19", "gpio20", "gpio22", "gpio24", |
| 20 | + "gpio26", "gpio21", "gpio23", "gpio25", "gpio27"; |
| 21 | + }; |
| 22 | + }; |
| 23 | + |
| 24 | + fragment@2 { |
| 25 | + target = <&sound>; |
| 26 | + __overlay__ { |
| 27 | + compatible = "simple-audio-card"; |
| 28 | + #address-cells = <1>; |
| 29 | + #size-cells = <0>; |
| 30 | + i2s-controller = <&i2s_clk_consumer>; |
| 31 | + status="okay"; |
| 32 | + |
| 33 | + simple-audio-card,name = "ezsound-6x8"; |
| 34 | + |
| 35 | + dailink_out_master: simple-audio-card,dai-link@0 { |
| 36 | + reg = <0>; |
| 37 | + format = "i2s"; |
| 38 | + bitclock-master = <&pcm3168_playback>; |
| 39 | + frame-master = <&pcm3168_playback>; |
| 40 | + cpu { |
| 41 | + sound-dai = <&i2s_clk_consumer>; |
| 42 | + dai-tdm-slot-num = <2>; |
| 43 | + dai-tdm-slot-width = <32>; |
| 44 | + }; |
| 45 | + pcm3168_playback: codec { |
| 46 | + system-clock-fixed; |
| 47 | + mclk-fs = <256>; |
| 48 | + sound-dai = <&pcm3168a 0>; |
| 49 | + dai-tdm-slot-num = <2>; |
| 50 | + dai-tdm-slot-width = <32>; |
| 51 | + }; |
| 52 | + }; |
| 53 | + dailink_in_slave: simple-audio-card,dai-link@1 { |
| 54 | + reg = <1>; |
| 55 | + format = "i2s"; |
| 56 | + bitclock-master = <&pcm3168_capture>; |
| 57 | + frame-master = <&pcm3168_capture>; |
| 58 | + cpu { |
| 59 | + sound-dai = <&i2s_clk_consumer>; |
| 60 | + dai-tdm-slot-num = <2>; |
| 61 | + dai-tdm-slot-width = <32>; |
| 62 | + }; |
| 63 | + pcm3168_capture: codec { |
| 64 | + system-clock-fixed; |
| 65 | + mclk-fs = <256>; |
| 66 | + sound-dai = <&pcm3168a 1>; |
| 67 | + dai-tdm-slot-num = <2>; |
| 68 | + dai-tdm-slot-width = <32>; |
| 69 | + }; |
| 70 | + }; |
| 71 | + }; |
| 72 | + }; |
| 73 | + |
| 74 | + fragment@3 { |
| 75 | + target-path = "/"; |
| 76 | + __overlay__ { |
| 77 | + scki_clk: scki-clock { |
| 78 | + compatible = "fixed-clock"; |
| 79 | + #clock-cells = <0>; |
| 80 | + clock-frequency = <24576000>; |
| 81 | + }; |
| 82 | + }; |
| 83 | + }; |
| 84 | + |
| 85 | + // Bring the I2S clock consumer block up |
| 86 | + fragment@4 { |
| 87 | + target = <&i2s_clk_consumer>; |
| 88 | + __overlay__ { |
| 89 | + #sound-dai-cells = <0>; |
| 90 | + status = "okay"; |
| 91 | + }; |
| 92 | + }; |
| 93 | + |
| 94 | + fragment@5 { |
| 95 | + target = <&i2c1>; |
| 96 | + __overlay__ { |
| 97 | + #address-cells = <1>; |
| 98 | + #size-cells = <0>; |
| 99 | + |
| 100 | + pcm3168a: audio-codec@45 { |
| 101 | + #sound-dai-cells = <1>; |
| 102 | + compatible = "ti,pcm3168a"; |
| 103 | + status = "okay"; |
| 104 | + reg = <0x45>; |
| 105 | + clocks = <&scki_clk>; |
| 106 | + clock-names = "scki"; |
| 107 | + dac-force-cons; |
| 108 | + VDD1-supply = <&vdd_3v3_reg>; |
| 109 | + VDD2-supply = <&vdd_3v3_reg>; |
| 110 | + VCCAD1-supply = <&vdd_5v0_reg>; |
| 111 | + VCCAD2-supply = <&vdd_5v0_reg>; |
| 112 | + VCCDA1-supply = <&vdd_5v0_reg>; |
| 113 | + VCCDA2-supply = <&vdd_5v0_reg>; |
| 114 | + }; |
| 115 | + }; |
| 116 | + }; |
| 117 | +}; |
0 commit comments