Skip to content

Commit e7c304c

Browse files
WalkerChenLConchuOD
authored andcommitted
riscv: dts: starfive: jh7110: add the node and pins configuration for tdm
Add the tdm controller node and pins configuration of tdm for the StarFive JH7110 SoC. Reviewed-by: Hal Feng <[email protected]> Signed-off-by: Walker Chen <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent ac73c09 commit e7c304c

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,46 @@
315315
slew-rate = <0>;
316316
};
317317
};
318+
319+
tdm_pins: tdm-0 {
320+
tx-pins {
321+
pinmux = <GPIOMUX(44, GPOUT_SYS_TDM_TXD,
322+
GPOEN_ENABLE,
323+
GPI_NONE)>;
324+
bias-pull-up;
325+
drive-strength = <2>;
326+
input-disable;
327+
input-schmitt-disable;
328+
slew-rate = <0>;
329+
};
330+
331+
rx-pins {
332+
pinmux = <GPIOMUX(61, GPOUT_HIGH,
333+
GPOEN_DISABLE,
334+
GPI_SYS_TDM_RXD)>;
335+
input-enable;
336+
};
337+
338+
sync-pins {
339+
pinmux = <GPIOMUX(63, GPOUT_HIGH,
340+
GPOEN_DISABLE,
341+
GPI_SYS_TDM_SYNC)>;
342+
input-enable;
343+
};
344+
345+
pcmclk-pins {
346+
pinmux = <GPIOMUX(38, GPOUT_HIGH,
347+
GPOEN_DISABLE,
348+
GPI_SYS_TDM_CLK)>;
349+
input-enable;
350+
};
351+
};
352+
};
353+
354+
&tdm {
355+
pinctrl-names = "default";
356+
pinctrl-0 = <&tdm_pins>;
357+
status = "okay";
318358
};
319359

320360
&uart0 {
@@ -325,7 +365,6 @@
325365

326366
&usb0 {
327367
dr_mode = "peripheral";
328-
status = "okay";
329368
};
330369

331370
&U74_1 {

arch/riscv/boot/dts/starfive/jh7110.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,27 @@
491491
status = "disabled";
492492
};
493493

494+
tdm: tdm@10090000 {
495+
compatible = "starfive,jh7110-tdm";
496+
reg = <0x0 0x10090000 0x0 0x1000>;
497+
clocks = <&syscrg JH7110_SYSCLK_TDM_AHB>,
498+
<&syscrg JH7110_SYSCLK_TDM_APB>,
499+
<&syscrg JH7110_SYSCLK_TDM_INTERNAL>,
500+
<&syscrg JH7110_SYSCLK_TDM_TDM>,
501+
<&syscrg JH7110_SYSCLK_MCLK_INNER>,
502+
<&tdm_ext>;
503+
clock-names = "tdm_ahb", "tdm_apb",
504+
"tdm_internal", "tdm",
505+
"mclk_inner", "tdm_ext";
506+
resets = <&syscrg JH7110_SYSRST_TDM_AHB>,
507+
<&syscrg JH7110_SYSRST_TDM_APB>,
508+
<&syscrg JH7110_SYSRST_TDM_CORE>;
509+
dmas = <&dma 20>, <&dma 21>;
510+
dma-names = "rx","tx";
511+
#sound-dai-cells = <0>;
512+
status = "disabled";
513+
};
514+
494515
usb0: usb@10100000 {
495516
compatible = "starfive,jh7110-usb";
496517
ranges = <0x0 0x0 0x10100000 0x100000>;

0 commit comments

Comments
 (0)