From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0296F36BAD for ; Fri, 10 Apr 2026 05:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=eZONTy3jkQF6vvheJ4A4geJ0E0xBe92xQL8/wb4o+I4=; b=Xa6kTgiLty4vB1wG5xpZoMr1Ox rCxPTaZjFKfU2otyx+TOkiw3Gib1ccXnrgxM7WLxjZeskzcf1YbXBiG0TF2fIcXHUQxQKcHTa2cgu uRx3Ao8EId8GjEfKuoErQXZg1oVpI8uuwT8Y9dfh7c0P3z4JOGt43CP0D3PgMVAzBGrIXTk/G+3PZ JmimEMvBzAeEneK6i3k7yo5sLRS5Y+n7q0L5utGBwUoTmW90enpRCOoApxU4+QuBeIWJ/sZpA2ebT WT15jtvx19nFxIYtxJ8QbwUQTPz3KaB5MHxHeHk3YHNYYsVxBfvhApawIs6HalKDNInVkt08SIy6F nMBCmepQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wB4qI-0000000BeIQ-2C98; Fri, 10 Apr 2026 05:55:46 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wB4qF-0000000BeHG-1DVc for linux-arm-kernel@lists.infradead.org; Fri, 10 Apr 2026 05:55:45 +0000 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-3585ec417f6so689143a91.1 for ; Thu, 09 Apr 2026 22:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775800542; x=1776405342; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eZONTy3jkQF6vvheJ4A4geJ0E0xBe92xQL8/wb4o+I4=; b=EdL+HPHhsjm2z7KKSACs4MGLV4Hdwn5zUdW0a9skwvrJq+nAFwg91Ze6Y+KEQ39s6G sf+N+v1BH1c8/0apvKJHNVp0GayFnhQKt+uTLnPEU5UePgXQIxugqx5NaACaZUDuEHHa DQ+SX+NuU5dMJ+qcqYAxicOZZZKeadfEtab5LEPFYW9RKz/ejsNExzCkpT4q74FDNgk3 uWVKjWYNhBZqaUF9wPQxjn4aOrUWhZn33oFIKrUfNxpTyf/fmmdawf3ISrkUl9p+Lebq jqHUpIGjFyVkHKCKXtMjRq3MG+eEjoJ1n0v1d0XMcdroszXzJXJMTAD74sP+01JqAO0Z 8tLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775800542; x=1776405342; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eZONTy3jkQF6vvheJ4A4geJ0E0xBe92xQL8/wb4o+I4=; b=o+q7xo/LMsFWW6dZqC0Teoa4Qj74fUFQ/5tu9cPW2ZDZM9EBeI0F9fqnM5kCvJuoSp Q36UsuLpxgpITKyNSWrZgA7QIN7IlxHk5Vz7GaJbF31ghrgCYi8IqbkpkQjmrpTkNsc8 sgR/BzkGkUJJCCCDF3e3OjlkfW3Gz39ArQCFTY4emBRMK/SrNE3QvikI3vVGWUjlWVf/ yTGTHkyry4CUM1p8JHO3whvjxxGp9wSQY8y/C36GzMpnBtN+0s18b1QgGf8Sw07Scple Q4K85yVQJjLxBTySnTti8NhcFJ1S0eb1QnKxLF0mka3l795yWh6PKgtpN4yf1b5nWJ6x TvsA== X-Forwarded-Encrypted: i=1; AJvYcCXNAL9G5XWB7W9shjC8JHUAjKT+rptO7ZaZpl+nK1uH/N4ybPr+90ic2GZ34fuGV8g1y3RYKlRANPUWqnMk6u5p@lists.infradead.org X-Gm-Message-State: AOJu0Yxym3nwDXpvO9jtbzfLhcJkzfuuUg5oMN6QEba3pOCDAKo2c/YO KoYjWqx0wha3SymQPe3V0IaOQqe72VEQIaAPWvtY2qNc8KZ1cgTULaRF X-Gm-Gg: AeBDievq1XUF1aB6Hs4IBQPeyyeGT3Lv4mQtLWAOxBjaNknjK0mFNtkIBIP7bhKcV4h dyyhlJr1pJ0EnJM1VeH2TcDEfPyQTFE7R+2R0LuRCSzZ/0P7aBPK7wwjVQbs0E8R6Q0hTwwQFlE tWXiGkK4tMf5uY+K7z7C/csRcUOBb9Xmy1I5MLJ9u8q5vvhb02cjpVcW29ANm2vKjPMxBbwh1A7 oectuLZNJrFWVzeth+InrTiY3RwiA/kRrwOJh492adGWprv7S48NiRZS5Fh5l26nEIxtG/g37t4 uJUC0X0SGbhzX3XNIYdXxopU+6nxpFEFBNGoW3IAwMTJlabzOj/YKYoSMBY4u9Fw4DswNBkuOqc q18EbVP+06AayCRYp8UGHjHrV+uRGn5ZKy3EDGKQZSaUWIsoAE/5HtPk+1vp+3yI9RH+lotAU3x Do1jmsFb1ddWbEcUDr0kZ3UqK1 X-Received: by 2002:a17:90b:52c8:b0:35b:a44f:b80 with SMTP id 98e67ed59e1d1-35e42fe6580mr1407691a91.1.1775800541645; Thu, 09 Apr 2026 22:55:41 -0700 (PDT) Received: from localhost ([223.233.84.165]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35e4131cfacsm1777318a91.10.2026.04.09.22.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2026 22:55:41 -0700 (PDT) From: Anushka Badhe To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Anushka Badhe Subject: [PATCH v2] ASoC: dt-bindings: rockchip: convert rk3399-gru-sound to DT Schema Date: Fri, 10 Apr 2026 11:25:32 +0530 Message-ID: <20260410055532.60868-1-anushkabadhe@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260409_225543_339415_8B9EED0D X-CRM114-Status: GOOD ( 19.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the rockchip,rk3399-gru-sound.txt DT binding to DT Schema format. Update rockchip,cpu from a single I2S controller phandle to a phandle-array. Add an optional second entry for the SPDIF controller, as seen in rk3399-gru.dtsi, required by boards with DisplayPort audio. Signed-off-by: Anushka Badhe --- Changes in v2: - Fix subject and body: "YAML Schema" -> "DT Schema" - Fix title: "ROCKCHIP" -> "Rockchip" - List items for rockchip,cpu with I2S and SPDIF descriptions - List items for rockchip,codec - Update descriptions for rockchip,cpu, rockchip,codec and dmic-wakeup-delay-ms .../sound/rockchip,rk3399-gru-sound.txt | 22 ------- .../sound/rockchip,rk3399-gru-sound.yaml | 60 +++++++++++++++++++ 2 files changed, 60 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt create mode 100644 Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.yaml diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt deleted file mode 100644 index 72d3cf4c2606..000000000000 --- a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.txt +++ /dev/null @@ -1,22 +0,0 @@ -ROCKCHIP with MAX98357A/RT5514/DA7219 codecs on GRU boards - -Required properties: -- compatible: "rockchip,rk3399-gru-sound" -- rockchip,cpu: The phandle of the Rockchip I2S controller that's - connected to the codecs -- rockchip,codec: The phandle of the audio codecs - -Optional properties: -- dmic-wakeup-delay-ms : specify delay time (ms) for DMIC ready. - If this option is specified, which means it's required dmic need - delay for DMIC to ready so that rt5514 can avoid recording before - DMIC send valid data - -Example: - -sound { - compatible = "rockchip,rk3399-gru-sound"; - rockchip,cpu = <&i2s0>; - rockchip,codec = <&max98357a &rt5514 &da7219>; - dmic-wakeup-delay-ms = <20>; -}; diff --git a/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.yaml b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.yaml new file mode 100644 index 000000000000..e9d13695cc77 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rockchip,rk3399-gru-sound.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/rockchip,rk3399-gru-sound.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip with MAX98357A/RT5514/DA7219 codecs on GRU boards + +maintainers: + - Heiko Stuebner + +properties: + compatible: + const: rockchip,rk3399-gru-sound + + rockchip,cpu: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + List of phandles to the Rockchip CPU DAI controllers connected to codecs + minItems: 1 + items: + - items: + - description: Phandle to the Rockchip I2S controllers + - items: + - description: | + Phandle to the Rockchip SPDIF controller. Required when a + DisplayPort audio codec is referenced in rockchip,codec + + rockchip,codec: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + The phandles of the audio codecs connected to the Rockchip CPU DAI + controllers + minItems: 1 + maxItems: 6 + items: + maxItems: 1 + + dmic-wakeup-delay-ms: + description: | + specify delay time (ms) for DMIC ready. + If this option is specified, a delay is required for DMIC to get ready + so that rt5514 can avoid recording before DMIC sends valid data + +required: + - compatible + - rockchip,cpu + - rockchip,codec + +additionalProperties: false + +examples: + - | + sound { + compatible = "rockchip,rk3399-gru-sound"; + rockchip,cpu = <&i2s0 &spdif>; + rockchip,codec = <&max98357a &rt5514 &da7219 &cdn_dp>; + dmic-wakeup-delay-ms = <20>; + }; + -- 2.43.0