From 66699cfd81aec1fa5590ee32dddbab64fbc504b4 Mon Sep 17 00:00:00 2001 From: Adam Kondraciuk Date: Wed, 27 Nov 2024 16:06:44 +0100 Subject: [PATCH] [nrf fromlist] dts: nordic: nrf54h20: add TDM support for nRF54H20 Add TDM130 and TDM131 nodes. Upstream PR #: 82144 Signed-off-by: Adam Kondraciuk --- dts/bindings/i2s/nordic,nrf-tdm.yaml | 48 ++++++++++++++++++++++++++++ dts/common/nordic/nrf54h20.dtsi | 28 ++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 dts/bindings/i2s/nordic,nrf-tdm.yaml diff --git a/dts/bindings/i2s/nordic,nrf-tdm.yaml b/dts/bindings/i2s/nordic,nrf-tdm.yaml new file mode 100644 index 00000000000..eb9d7f68644 --- /dev/null +++ b/dts/bindings/i2s/nordic,nrf-tdm.yaml @@ -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" diff --git a/dts/common/nordic/nrf54h20.dtsi b/dts/common/nordic/nrf54h20.dtsi index f879e08fa52..987efb60bfe 100644 --- a/dts/common/nordic/nrf54h20.dtsi +++ b/dts/common/nordic/nrf54h20.dtsi @@ -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 = , + ; + }; + + 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 = , + ; + }; }; };