Home
last modified time | relevance | path

Searched full:tdm (Results 1 – 25 of 660) sorted by relevance

12345678910>>...27

/kernel/linux/linux-6.6/sound/soc/starfive/
Djh7110_tdm.c3 * jh7110_tdm.c -- StarFive JH7110 TDM driver
127 /* data related to DMA transfers b/w tdm and DMAC */
136 static inline u32 jh7110_tdm_readl(struct jh7110_tdm_dev *tdm, u16 reg) in jh7110_tdm_readl() argument
138 return readl_relaxed(tdm->tdm_base + reg); in jh7110_tdm_readl()
141 static inline void jh7110_tdm_writel(struct jh7110_tdm_dev *tdm, u16 reg, u32 val) in jh7110_tdm_writel() argument
143 writel_relaxed(val, tdm->tdm_base + reg); in jh7110_tdm_writel()
146 static void jh7110_tdm_save_context(struct jh7110_tdm_dev *tdm, in jh7110_tdm_save_context() argument
150 tdm->saved_pcmtxcr = jh7110_tdm_readl(tdm, TDM_PCMTXCR); in jh7110_tdm_save_context()
152 tdm->saved_pcmrxcr = jh7110_tdm_readl(tdm, TDM_PCMRXCR); in jh7110_tdm_save_context()
155 static void jh7110_tdm_start(struct jh7110_tdm_dev *tdm, in jh7110_tdm_start() argument
[all …]
/kernel/linux/linux-5.10/sound/soc/zte/
Dzx-tdm.c3 * ZTE's TDM driver
83 static inline u32 zx_tdm_readl(struct zx_tdm_info *tdm, u16 reg) in zx_tdm_readl() argument
85 return readl_relaxed(tdm->regbase + reg); in zx_tdm_readl()
88 static inline void zx_tdm_writel(struct zx_tdm_info *tdm, u16 reg, u32 val) in zx_tdm_writel() argument
90 writel_relaxed(val, tdm->regbase + reg); in zx_tdm_writel()
93 static void zx_tdm_tx_en(struct zx_tdm_info *tdm, bool on) in zx_tdm_tx_en() argument
97 val = zx_tdm_readl(tdm, REG_PROCESS_CTRL); in zx_tdm_tx_en()
102 zx_tdm_writel(tdm, REG_PROCESS_CTRL, val); in zx_tdm_tx_en()
105 static void zx_tdm_rx_en(struct zx_tdm_info *tdm, bool on) in zx_tdm_rx_en() argument
109 val = zx_tdm_readl(tdm, REG_PROCESS_CTRL); in zx_tdm_rx_en()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/pinctrl/
Dmarvell,kirkwood-pinctrl.txt130 mpp20 20 gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
132 mpp21 21 gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
134 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
136 mpp23 23 gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
138 mpp24 24 gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo)
139 mpp25 25 gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk)
140 mpp26 26 gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk)
141 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
142 mpp28 28 gpio, ge1(col), ts(mp8), tdm(int), audio(extclk)
143 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst)
[all …]
Dmarvell,armada-xp-pinctrl.txt45 mpp24 24 gpio, lcd(hsync), sata1(prsnt), tdm(rst)
46 mpp25 25 gpio, lcd(vsync), sata0(prsnt), tdm(pclk)
47 mpp26 26 gpio, lcd(clk), tdm(fsync)
48 mpp27 27 gpio, lcd(e), tdm(dtx), ptp(trig)
49 mpp28 28 gpio, lcd(pwm), tdm(drx), ptp(evreq)
50 mpp29 29 gpio, lcd(ref-clk), tdm(int0), ptp(clk)
51 mpp30 30 gpio, tdm(int1), sd0(clk)
52 mpp31 31 gpio, tdm(int2), sd0(cmd)
53 mpp32 32 gpio, tdm(int3), sd0(d0)
54 mpp33 33 gpio, tdm(int4), sd0(d1), dram(bat), dram(vttctrl)
[all …]
Dmarvell,armada-370-pinctrl.txt22 mpp6 6 gpio, ge0(txd0), sata0(prsnt), tdm(rst), audio(sdo)
23 mpp7 7 gpo, ge0(txd1), tdm(dtx), audio(lrclk)
24 mpp8 8 gpio, ge0(txd2), uart0(rts), tdm(drx), audio(bclk)
26 mpp10 10 gpio, ge0(txctl), uart0(cts), tdm(fsync), audio(sdi)
31 mpp13 13 gpio, ge0(rxd2), i2c1(sck), sd0(d1), tdm(pclk),
37 mpp16 16 gpio, ge0(rxclk), uart1(rxd), tdm(int), audio(extclk)
40 mpp19 19 gpio, ge0(txclk), ge1(txclkout), tdm(pclk)
77 mpp53 53 gpio, dev(ad14), sd0(clk), tdm(pclk), spi0(cs2),
79 mpp54 54 gpo, dev(ad15), tdm(dtx)
80 mpp55 55 gpio, dev(cs1), uart1(txd), tdm(rst), sata1(prsnt),
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/
Dmarvell,kirkwood-pinctrl.txt130 mpp20 20 gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
132 mpp21 21 gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
134 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
136 mpp23 23 gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
138 mpp24 24 gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo)
139 mpp25 25 gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk)
140 mpp26 26 gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk)
141 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
142 mpp28 28 gpio, ge1(col), ts(mp8), tdm(int), audio(extclk)
143 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst)
[all …]
Dmarvell,armada-xp-pinctrl.txt45 mpp24 24 gpio, lcd(hsync), sata1(prsnt), tdm(rst)
46 mpp25 25 gpio, lcd(vsync), sata0(prsnt), tdm(pclk)
47 mpp26 26 gpio, lcd(clk), tdm(fsync)
48 mpp27 27 gpio, lcd(e), tdm(dtx), ptp(trig)
49 mpp28 28 gpio, lcd(pwm), tdm(drx), ptp(evreq)
50 mpp29 29 gpio, lcd(ref-clk), tdm(int0), ptp(clk)
51 mpp30 30 gpio, tdm(int1), sd0(clk)
52 mpp31 31 gpio, tdm(int2), sd0(cmd)
53 mpp32 32 gpio, tdm(int3), sd0(d0)
54 mpp33 33 gpio, tdm(int4), sd0(d1), dram(bat), dram(vttctrl)
[all …]
Dmarvell,armada-370-pinctrl.txt22 mpp6 6 gpio, ge0(txd0), sata0(prsnt), tdm(rst), audio(sdo)
23 mpp7 7 gpo, ge0(txd1), tdm(dtx), audio(lrclk)
24 mpp8 8 gpio, ge0(txd2), uart0(rts), tdm(drx), audio(bclk)
26 mpp10 10 gpio, ge0(txctl), uart0(cts), tdm(fsync), audio(sdi)
31 mpp13 13 gpio, ge0(rxd2), i2c1(sck), sd0(d1), tdm(pclk),
37 mpp16 16 gpio, ge0(rxclk), uart1(rxd), tdm(int), audio(extclk)
40 mpp19 19 gpio, ge0(txclk), ge1(txclkout), tdm(pclk)
77 mpp53 53 gpio, dev(ad14), sd0(clk), tdm(pclk), spi0(cs2),
79 mpp54 54 gpo, dev(ad15), tdm(dtx)
80 mpp55 55 gpio, dev(cs1), uart1(txd), tdm(rst), sata1(prsnt),
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Dstarfive,jh7110-tdm.yaml4 $id: http://devicetree.org/schemas/sound/starfive,jh7110-tdm.yaml#
7 title: StarFive JH7110 TDM Controller
10 The TDM Controller is a Time Division Multiplexed audio interface
12 audio over a serial interface. The TDM controller can operate both
24 - starfive,jh7110-tdm
31 - description: TDM AHB Clock
32 - description: TDM APB Clock
33 - description: TDM Internal Clock
34 - description: TDM Clock
36 - description: TDM External Clock
[all …]
Dqcom,q6dsp-lpass-ports.yaml52 qcom,tdm-sync-mode:
56 TDM Synchronization mode
61 qcom,tdm-sync-src:
65 TDM Synchronization source
69 qcom,tdm-data-out:
73 TDM Data out signal to drive with other masters
77 qcom,tdm-invert-sync:
81 TDM Invert the sync
85 qcom,tdm-data-delay:
89 TDM Number of bit clock to delay data
[all …]
Dtdm-slot.txt1 TDM slot:
3 This specifies audio DAI's TDM slot.
5 TDM slot properties:
6 dai-tdm-slot-num : Number of slots in use.
7 dai-tdm-slot-width : Width in bits for each slot.
8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional
9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional
12 dai-tdm-slot-num = <2>;
13 dai-tdm-slot-width = <8>;
14 dai-tdm-slot-tx-mask = <0 1>;
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dqcom,q6afe.txt54 - qcom,tdm-sync-mode:
55 Usage: required for tdm interface
62 - qcom,tdm-sync-src:
63 Usage: required for tdm interface
69 - qcom,tdm-data-out:
70 Usage: required for tdm interface
76 - qcom,tdm-invert-sync:
77 Usage: required for tdm interface
83 - qcom,tdm-data-delay:
84 Usage: required for tdm interface
[all …]
Dtdm-slot.txt1 TDM slot:
3 This specifies audio DAI's TDM slot.
5 TDM slot properties:
6 dai-tdm-slot-num : Number of slots in use.
7 dai-tdm-slot-width : Width in bits for each slot.
8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional
9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional
12 dai-tdm-slot-num = <2>;
13 dai-tdm-slot-width = <8>;
14 dai-tdm-slot-tx-mask = <0 1>;
[all …]
Damlogic,axg-sound-card.txt24 Required TDM Backend dai-link properties:
27 Optional TDM Backend dai-link properties:
28 - dai-tdm-slot-rx-mask-{0,1,2,3}: Receive direction slot masks
29 - dai-tdm-slot-tx-mask-{0,1,2,3}: Transmit direction slot masks
34 - dai-tdm-slot-num : Please refer to tdm-slot.txt.
37 - dai-tdm-slot-width : Please refer to tdm-slot.txt. default to 32 if omitted.
53 - dai-tdm-slot-tx-mask : Please refer to tdm-slot.txt.
54 - dai-tdm-slot-rx-mask : Please refer to tdm-slot.txt.
94 dai-tdm-slot-tx-mask-2 = <1 1>;
95 dai-tdm-slot-tx-mask-3 = <1 1>;
[all …]
Dzte,tdm.txt1 ZTE TDM DAI driver
6 * zte,zx296718-tdm
13 - zte,tdm-dma-sysctrl : Reference to the sysctrl controller controlling
21 tdm: tdm@1487000 {
22 compatible = "zte,zx296718-tdm";
29 zte,tdm-dma-sysctrl = <&sysctrl 0x10c 4>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt58 - fsl,tdm-interface
61 Definition : Specify that hdlc is based on tdm-interface
63 The property below is dependent on fsl,tdm-interface:
74 - fsl,tdm-framer-type
75 Usage: required for tdm interface
80 - fsl,tdm-id
81 Usage: required for tdm interface
83 Definition : number of TDM ID
87 Usage: required for tdm interface
89 Definition : time slot mask for TDM operation. Indicates which time
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt58 - fsl,tdm-interface
61 Definition : Specify that hdlc is based on tdm-interface
63 The property below is dependent on fsl,tdm-interface:
74 - fsl,tdm-framer-type
75 Usage: required for tdm interface
80 - fsl,tdm-id
81 Usage: required for tdm interface
83 Definition : number of TDM ID
87 Usage: required for tdm interface
89 Definition : time slot mask for TDM operation. Indicates which time
[all …]
/kernel/linux/linux-6.6/drivers/soc/fsl/qe/
Dtsa.c125 struct tsa_tdm tdm[2]; /* TDMa and TDMb */ member
366 struct tsa_tdm *tdm; in tsa_of_parse_tdm_route() local
410 tdm = &tsa->tdm[tdm_id]; in tsa_of_parse_tdm_route()
412 serial_info->rx_fs_rate = clk_get_rate(tdm->l1rsync_clk); in tsa_of_parse_tdm_route()
413 serial_info->rx_bit_rate = clk_get_rate(tdm->l1rclk_clk); in tsa_of_parse_tdm_route()
416 serial_info->tx_fs_rate = tdm->l1tsync_clk ? in tsa_of_parse_tdm_route()
417 clk_get_rate(tdm->l1tsync_clk) : in tsa_of_parse_tdm_route()
418 clk_get_rate(tdm->l1rsync_clk); in tsa_of_parse_tdm_route()
419 serial_info->tx_bit_rate = tdm->l1tclk_clk ? in tsa_of_parse_tdm_route()
420 clk_get_rate(tdm->l1tclk_clk) : in tsa_of_parse_tdm_route()
[all …]
Dqe_tdm.c8 * QE TDM API Set - TDM specific routines implementations.
47 pr_err("QE-TDM: Invalid rx-sync-clock property\n"); in ucc_of_parse_tdm()
51 pr_err("QE-TDM: Invalid rx-sync-clock property\n"); in ucc_of_parse_tdm()
60 pr_err("QE-TDM: Invalid tx-sync-clock property\n"); in ucc_of_parse_tdm()
64 pr_err("QE-TDM: Invalid tx-sync-clock property\n"); in ucc_of_parse_tdm()
70 pr_err("QE-TDM: Invalid tx-timeslot-mask property\n"); in ucc_of_parse_tdm()
78 pr_err("QE-TDM: Invalid rx-timeslot-mask property\n"); in ucc_of_parse_tdm()
83 ret = of_property_read_u32_index(np, "fsl,tdm-id", 0, &val); in ucc_of_parse_tdm()
86 pr_err("QE-TDM: No fsl,tdm-id property for this UCC\n"); in ucc_of_parse_tdm()
92 if (of_property_read_bool(np, "fsl,tdm-internal-loopback")) in ucc_of_parse_tdm()
[all …]
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/
Dqe_tdm.c8 * QE TDM API Set - TDM specific routines implementations.
49 pr_err("QE-TDM: Invalid rx-sync-clock property\n"); in ucc_of_parse_tdm()
53 pr_err("QE-TDM: Invalid rx-sync-clock property\n"); in ucc_of_parse_tdm()
62 pr_err("QE-TDM: Invalid tx-sync-clock property\n"); in ucc_of_parse_tdm()
66 pr_err("QE-TDM: Invalid tx-sync-clock property\n"); in ucc_of_parse_tdm()
72 pr_err("QE-TDM: Invalid tx-timeslot-mask property\n"); in ucc_of_parse_tdm()
80 pr_err("QE-TDM: Invalid rx-timeslot-mask property\n"); in ucc_of_parse_tdm()
85 ret = of_property_read_u32_index(np, "fsl,tdm-id", 0, &val); in ucc_of_parse_tdm()
88 pr_err("QE-TDM: No fsl,tdm-id property for this UCC\n"); in ucc_of_parse_tdm()
94 if (of_property_read_bool(np, "fsl,tdm-internal-loopback")) in ucc_of_parse_tdm()
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/renesas/
Dulcb-kf-audio-graph-card-mix+split.dtsi3 * Device Tree for ULCB + Kingfisher + Audio Graph Card (MIX + TDM Split)
14 * (C) CPU2 (2ch) ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
15 * (D) CPU3 (2ch) --/ (TDM-1 : 2,3ch)
16 * (E) CPU4 (2ch) --/ (TDM-2 : 4,5ch)
17 * (F) CPU5 (2ch) --/ (TDM-3 : 6,7ch)
22 * (C) aplay -D plughw:0,2 xxx.wav (TDM-0)
23 * (D) aplay -D plughw:0,3 xxx.wav (TDM-1)
24 * (E) aplay -D plughw:0,4 xxx.wav (TDM-2)
25 * (F) aplay -D plughw:0,5 xxx.wav (TDM-3)
64 convert-channels = <8>; /* to 8ch TDM */
[all …]
Dulcb-kf-simple-audio-card-mix+split.dtsi3 * Device Tree for ULCB + Kingfisher + Simple Audio Card (MIX + TDM Split)
14 * (C) CPU3 (2ch) ----> (8ch) (Y) PCM3168A-p (TDM-0 : 0,1ch)
15 * (D) CPU2 (2ch) --/ (TDM-1 : 2,3ch)
16 * (E) CPU4 (2ch) --/ (TDM-2 : 4,5ch)
17 * (F) CPU5 (2ch) --/ (TDM-3 : 6,7ch)
22 * (C) aplay -D plughw:0,2 xxx.wav (TDM-0)
23 * (D) aplay -D plughw:0,3 xxx.wav (TDM-1)
24 * (E) aplay -D plughw:0,4 xxx.wav (TDM-2)
25 * (F) aplay -D plughw:0,5 xxx.wav (TDM-3)
47 convert-channels = <8>; /* to 8ch TDM */
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/
Dq6afe.h98 /** Clock ID for Primary TDM IBIT */
100 /** Clock ID for Primary TDM EBIT */
102 /** Clock ID for Secondary TDM IBIT */
104 /** Clock ID for Secondary TDM EBIT */
106 /** Clock ID for Tertiary TDM IBIT */
108 /** Clock ID for Tertiary TDM EBIT */
110 /** Clock ID for Quartery TDM IBIT */
112 /** Clock ID for Quartery TDM EBIT */
114 /** Clock ID for Quinary TDM IBIT */
116 /** Clock ID for Quinary TDM EBIT */
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6afe.h98 /** Clock ID for Primary TDM IBIT */
100 /** Clock ID for Primary TDM EBIT */
102 /** Clock ID for Secondary TDM IBIT */
104 /** Clock ID for Secondary TDM EBIT */
106 /** Clock ID for Tertiary TDM IBIT */
108 /** Clock ID for Tertiary TDM EBIT */
110 /** Clock ID for Quartery TDM IBIT */
112 /** Clock ID for Quartery TDM EBIT */
114 /** Clock ID for Quinary TDM IBIT */
116 /** Clock ID for Quinary TDM EBIT */
[all …]
/kernel/linux/linux-6.6/sound/soc/meson/
Daxg-card.c11 #include "axg-tdm.h"
70 "setting tdm link slots failed\n"); in axg_card_tdm_dai_init()
78 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_init()
96 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_lb_init()
134 lb->cpus->dai_name = "TDM Loopback"; in axg_card_add_tdm_loopback()
172 snprintf(propname, 32, "dai-tdm-slot-tx-mask-%d", i); in axg_card_parse_cpu_tdm_slots()
182 snprintf(propname, 32, "dai-tdm-slot-rx-mask-%d", i); in axg_card_parse_cpu_tdm_slots()
193 dev_err(card->dev, "tdm link has no cpu slots\n"); in axg_card_parse_cpu_tdm_slots()
197 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots()
213 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
[all …]

12345678910>>...27