Skip to content

Commit d867850

Browse files
[nrf fromlist] dts: nordic: nrf54h20: add TDM support for nRF54H20
Add TDM130 and TDM131 nodes. Upstream PR #: 82144 Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent 3a08244 commit d867850

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Nordic TDM (Time division multiplexed audio interface)
5+
6+
compatible: "nordic,nrf-tdm"
7+
8+
include: [i2s-controller.yaml, pinctrl-device.yaml, nordic-clockpin.yaml, "memory-region.yaml"]
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
interrupts:
15+
required: true
16+
17+
mck-frequency:
18+
type: int
19+
description: |
20+
Frequency of the MCK clock. Configured independently of SCK.
21+
22+
pinctrl-0:
23+
required: true
24+
25+
pinctrl-names:
26+
required: true
27+
28+
easydma-maxcnt-bits:
29+
type: int
30+
required: true
31+
description: |
32+
Maximum number of bits available in the EasyDMA MAXCNT register. This
33+
property must be set at SoC level DTS files.
34+
35+
clock-source:
36+
type: string
37+
default: "FLL16M"
38+
description: |
39+
Clock source to be used by the TDM peripheral. The following options
40+
are available:
41+
- "FLL16M": 16 MHz peripheral clock
42+
- "ACLK": Audio PLL clock with configurable frequency (frequency for
43+
this clock must be set via the "hfclkaudio-frequency" property
44+
in the "nordic,nrf-clock" node); this clock source is only available
45+
in the nRF53 Series SoCs and it requires the use of HFXO
46+
enum:
47+
- "FLL16M"
48+
- "ACLK"

dts/common/nordic/nrf54h20.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,34 @@
14651465
endtx-stoptx-supported;
14661466
frame-timeout-supported;
14671467
};
1468+
1469+
tdm130: tdm@992000 {
1470+
compatible = "nordic,nrf-tdm";
1471+
easydma-maxcnt-bits = <15>;
1472+
#address-cells = <1>;
1473+
#size-cells = <0>;
1474+
reg = <0x992000 0x1000>;
1475+
interrupts = <402 NRF_DEFAULT_IRQ_PRIORITY>;
1476+
status = "disabled";
1477+
clocks = <&fll16m>;
1478+
power-domains = <&gpd NRF_GPD_SLOW_ACTIVE>;
1479+
nordic,clockpin-enable = <NRF_FUN_TDM_SCK_M>,
1480+
<NRF_FUN_TDM_MCK>;
1481+
};
1482+
1483+
tdm131: tdm@997000 {
1484+
compatible = "nordic,nrf-tdm";
1485+
easydma-maxcnt-bits = <15>;
1486+
#address-cells = <1>;
1487+
#size-cells = <0>;
1488+
reg = <0x997000 0x1000>;
1489+
interrupts = <407 NRF_DEFAULT_IRQ_PRIORITY>;
1490+
status = "disabled";
1491+
clocks = <&fll16m>;
1492+
power-domains = <&gpd NRF_GPD_SLOW_ACTIVE>;
1493+
nordic,clockpin-enable = <NRF_FUN_TDM_SCK_M>,
1494+
<NRF_FUN_TDM_MCK>;
1495+
};
14681496
};
14691497
};
14701498

0 commit comments

Comments
 (0)