Skip to content

Commit

Permalink
[nrf fromlist] dts: nordic: nrf54h20: add TDM support for nRF54H20
Browse files Browse the repository at this point in the history
Add TDM130 and TDM131 nodes.

Upstream PR #: 82144

Signed-off-by: Adam Kondraciuk <[email protected]>
  • Loading branch information
adamkondraciuk committed Jan 14, 2025
1 parent a5c9848 commit 66699cf
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
48 changes: 48 additions & 0 deletions dts/bindings/i2s/nordic,nrf-tdm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

description: Nordic TDM (Time division multiplexed audio interface)

compatible: "nordic,nrf-tdm"

include: [i2s-controller.yaml, pinctrl-device.yaml, nordic-clockpin.yaml, "memory-region.yaml"]

properties:
reg:
required: true

interrupts:
required: true

mck-frequency:
type: int
description: |
Frequency of the MCK clock. Configured independently of SCK.
pinctrl-0:
required: true

pinctrl-names:
required: true

easydma-maxcnt-bits:
type: int
required: true
description: |
Maximum number of bits available in the EasyDMA MAXCNT register. This
property must be set at SoC level DTS files.
clock-source:
type: string
default: "FLL16M"
description: |
Clock source to be used by the TDM peripheral. The following options
are available:
- "FLL16M": 16 MHz peripheral clock
- "ACLK": Audio PLL clock with configurable frequency (frequency for
this clock must be set via the "hfclkaudio-frequency" property
in the "nordic,nrf-clock" node); this clock source is only available
in the nRF53 Series SoCs and it requires the use of HFXO
enum:
- "FLL16M"
- "ACLK"
28 changes: 28 additions & 0 deletions dts/common/nordic/nrf54h20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,34 @@
endtx-stoptx-supported;
frame-timeout-supported;
};

tdm130: tdm@992000 {
compatible = "nordic,nrf-tdm";
easydma-maxcnt-bits = <15>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x992000 0x1000>;
interrupts = <402 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
clocks = <&fll16m>;
power-domains = <&gpd NRF_GPD_SLOW_ACTIVE>;
nordic,clockpin-enable = <NRF_FUN_TDM_SCK_M>,
<NRF_FUN_TDM_MCK>;
};

tdm131: tdm@997000 {
compatible = "nordic,nrf-tdm";
easydma-maxcnt-bits = <15>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x997000 0x1000>;
interrupts = <407 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
clocks = <&fll16m>;
power-domains = <&gpd NRF_GPD_SLOW_ACTIVE>;
nordic,clockpin-enable = <NRF_FUN_TDM_SCK_M>,
<NRF_FUN_TDM_MCK>;
};
};
};

Expand Down

0 comments on commit 66699cf

Please sign in to comment.