Lines Matching +full:pef2256 +full:- +full:codec
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/lantiq,pef2256.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Lantiq PEF2256
10 - Herve Codina <herve.codina@bootlin.com>
13 The Lantiq PEF2256, also known as Infineon PEF2256 or FALC56, is a framer and
20 - const: lantiq,pef2256
27 - description: Master Clock
28 - description: System Clock Receive
29 - description: System Clock Transmit
31 clock-names:
33 - const: mclk
34 - const: sclkr
35 - const: sclkx
40 reset-gpios:
50 '-pins$':
52 $ref: /schemas/pinctrl/pinmux-node.yaml#
65 - pins
66 - function
68 lantiq,data-rate-bps:
74 lantiq,clock-falling-edge:
78 edge). If 'clock-falling-edge' is not present, data is sent on the
81 lantiq,channel-phase:
86 The pef2256 delivers a full frame (32 8-bit time-slots in E1 and 24 8-bit
87 time-slots 8 8-bit signaling in E1/J1) every 125us. This lead to a data
88 rate of 2048000 bit/s. When lantiq,data-rate-bps is more than 2048000
89 bit/s, the data (all 32 8-bit) present in the frame are interleave with
90 unused time-slots. The lantiq,channel-phase property allows to set the
92 For instance, suppose lantiq,data-rate-bps = 8192000 (ie 4*2048000), and
93 lantiq,channel-phase = 2, the interleave schema with unused time-slots
94 (nu) and used time-slots (XX) for TSi is
96 <-- TSi --> <- TSi+1 -> <- TSi+2 ->
97 With lantiq,data-rate-bps = 8192000, and lantiq,channel-phase = 1, the
100 <-- TSi --> <- TSi+1 -> <- TSi+2 ->
101 With lantiq,data-rate-bps = 4096000 (ie 2*2048000), and
102 lantiq,channel-phase = 1, the interleave schema is
104 <-- TSi --> <- TSi+1 -> <- TSi+2 ->
107 '^codec(-([0-9]|[1-2][0-9]|3[0-1]))?$':
109 $ref: /schemas/sound/dai-common.yaml
112 Codec provided by the pef2256. This codec allows to use some of the PCM
113 system highway time-slots as audio channels to transport audio data over
115 The time-slots used by the codec must be set and so, the properties
116 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and
117 'dai-tdm-slot-rx-mask' must be present in the sound card node for
118 sub-nodes that involve the codec. The codec uses 8-bit time-slots.
119 'dai-tdm-tdm-slot-with' must be set to 8.
120 The tx and rx masks define the pef2256 time-slots assigned to the codec.
124 const: lantiq,pef2256-codec
126 '#sound-dai-cells':
130 - compatible
131 - '#sound-dai-cells'
134 - compatible
135 - reg
136 - clocks
137 - clock-names
138 - interrupts
143 - |
144 #include <dt-bindings/gpio/gpio.h>
145 #include <dt-bindings/interrupt-controller/irq.h>
147 pef2256: framer@2000000 {
148 compatible = "lantiq,pef2256";
151 interrupt-parent = <&intc>;
153 clock-names = "mclk", "sclkr", "sclkx";
154 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
155 lantiq,data-rate-bps = <4096000>;
158 pef2256_rpa_sypr: rpa-pins {
162 pef2256_xpa_sypx: xpa-pins {
168 pef2256_codec0: codec-0 {
169 compatible = "lantiq,pef2256-codec";
170 #sound-dai-cells = <0>;
171 sound-name-prefix = "PEF2256_0";
174 pef2256_codec1: codec-1 {
175 compatible = "lantiq,pef2256-codec";
176 #sound-dai-cells = <0>;
177 sound-name-prefix = "PEF2256_1";
182 compatible = "simple-audio-card";
183 #address-cells = <1>;
184 #size-cells = <0>;
185 simple-audio-card,dai-link@0 { /* CPU DAI1 - pef2256 codec 1 */
188 sound-dai = <&cpu_dai1>;
190 codec {
191 sound-dai = <&pef2256_codec0>;
192 dai-tdm-slot-num = <4>;
193 dai-tdm-slot-width = <8>;
195 dai-tdm-slot-tx-mask = <0 1 1 1 1>;
196 dai-tdm-slot-rx-mask = <0 1 1 1 1>;
199 simple-audio-card,dai-link@1 { /* CPU DAI2 - pef2256 codec 2 */
202 sound-dai = <&cpu_dai2>;
204 codec {
205 sound-dai = <&pef2256_codec1>;
206 dai-tdm-slot-num = <4>;
207 dai-tdm-slot-width = <8>;
209 dai-tdm-slot-tx-mask = <0 0 0 0 0 1 1 1 1>;
210 dai-tdm-slot-rx-mask = <0 0 0 0 0 1 1 1 1>;