From 05e5ed418b179def81bfc5026f37cb2852cf03fd Mon Sep 17 00:00:00 2001 From: Sheetal Date: Mon, 12 May 2025 06:42:57 +0000 Subject: [PATCH] dt-bindings: Document Tegra264 HDA Support For Tegra264 device there is one clock, two resets and no power-domain. Add the Tegra264 compatible and necessary logic to the binding doc to determine appropriate clocks, resets and power-domain properties based on the compatible string. http://nvbugs/5239634 Signed-off-by: Sheetal Reviewed-by: Rob Herring (Arm) Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/20250512064258.1028331-3-sheetal@nvidia.com (cherry picked from commit 3bc2f3ba7b4d81523f89dfa369edb56507bd63e6) Reviewed-by: Mohan kumar Reviewed-by: Sameer Pujar Signed-off-by: Kartik Rajput Acked-by: Noah Wager Acked-by: Jacob Martin Signed-off-by: Noah Wager --- .../bindings/sound/nvidia,tegra30-hda.yaml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml index 1278e076d5b6..3773e16e5e41 100644 --- a/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml @@ -24,6 +24,7 @@ properties: - nvidia,tegra30-hda - nvidia,tegra194-hda - nvidia,tegra234-hda + - nvidia,tegra264-hda - items: - enum: - nvidia,tegra186-hda @@ -43,11 +44,11 @@ properties: maxItems: 1 clocks: - minItems: 2 + minItems: 1 maxItems: 3 clock-names: - minItems: 2 + minItems: 1 maxItems: 3 resets: @@ -152,6 +153,26 @@ allOf: items: - const: hda - const: hda2codec_2x + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra264-hda + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: hda + resets: + maxItems: 2 + reset-names: + items: + - const: hda + - const: hda2codec_2x + power-domains: false examples: - |