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 B5B9CC83F0F for ; Thu, 10 Jul 2025 03:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id :Date:Subject:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qnN9rBa2RRbGq/dL0CVefV/FVf98ApyFJABP9uwbV8M=; b=xTbXtreFHkJRTM 0oQoNiZQ8eMwH+yvewqocUbozAmupPiJakuXVhpR6qril2YhZXuaSL+xI0e6MPWdeZO1VUt4MCrZ+ +3npo3N7PvN/9KzuprmqX/tEiZrV1LDGvOUfU7mdxeDvBc0TRJhqdLa6cYz2/1ZyzBv8/jxcF2FTY AQT7e5b+rmAdwn2TMDG6B2yh3CqCSM43guoICQRBGGkvc/7hkeOq0UHmnDmF5QGGHr+I32MXapjXd 5rNx/8KidkTqLY8hKjPbel82HtdQaDi5QK+mU1jg1RYQTb1XjyE6UJplIcsMwGrJBo6ARf7OX9c7p xWxwnrkeIK9AB7rI9+8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZi51-0000000AaZo-2yyW; Thu, 10 Jul 2025 03:36:15 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZi4z-0000000AaY4-3Txk; Thu, 10 Jul 2025 03:36:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 3002D61139; Thu, 10 Jul 2025 03:36:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id CDAAEC4CEEF; Thu, 10 Jul 2025 03:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752118571; bh=J9IHr1KctOiK5uQHZbL/z3dzePJcspSYALMm97MYSQ4=; h=From:Subject:Date:To:Cc:Reply-To:From; b=Y5hSEqGTXu/Pj3yyA4uWS0LpBDCYQuOGTxum+FvU6lh+QU+0iRrgASLXoH8nCmxVD Sexi7U27kS355BYYEQVuJb18uGpgGEoSf/Ne3MghxggY+1RHKU8nmkkIuPsCCVitET UzjAHhC4vSkVMjaKGstgMX3QK9ymKfXBEhIRNaQTrLt8BF54F7dl95H0Qt918XzEtI 0HB69onL0ZDh/sWchE6WSSfnpYFyvvltuHb4Z9anqALLGfRmdhiMfYyv+kNmfFhhdN q0y3SdSytqVo+uflv/Uv97avlpJzLzPitppHMTWN3UoOFIystTvykHZHRagTUUUsVO bmmM/xpWo1w1Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B920AC83F09; Thu, 10 Jul 2025 03:36:11 +0000 (UTC) From: jiebing chen via B4 Relay Subject: [PATCH v5 0/6] Add support for S4 audio Date: Thu, 10 Jul 2025 11:35:36 +0800 Message-Id: <20250710-audio_drvier-v5-0-d4155f1e7464@amlogic.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAk1b2gC/2XM3WoCMRCG4VuRHDdlJpM1WY96HyIl5kcH6qZkN Siy994oFHVljr6B572KMRaOo1gtrqLEyiPnoY3uYyH83g27KDm0LRSoDhBBulPg/B1K5VgkGNe RRa97vRWN/JaY+HzPrTdt73k85nK51yvevv8heg1VlCCtR20MJLIOvtzhJ+/Yf/p8ELdUVQ+uU M+4apyMtZgcGd/Hd05PXNkZp8bDNgWCDkzU/p3rByfsZ1w3vrTtTHLBYP/Kp2n6A3i68TRnAQA A X-Change-ID: 20250110-audio_drvier-07a5381c494b To: Jerome Brunet , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Michael Turquette , Stephen Boyd Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, jian.xu@amlogic.com, shuai.li@amlogic.com, zhe.wang@amlogic.com, jiebing chen X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752118569; l=2849; i=jiebing.chen@amlogic.com; s=20250110; h=from:subject:message-id; bh=J9IHr1KctOiK5uQHZbL/z3dzePJcspSYALMm97MYSQ4=; b=rqiq0Hm8pHRGBFSUb4QfYzyj05BRkcTHYujviz7z7Z/l5KLn0NWIymzBLMeVCmcJ3cqtxuVOm LGEhApJJnhPD/vCifRnMFRD2RT6AyICY0sQw5MuzIpTVJl80EgjXfNv X-Developer-Key: i=jiebing.chen@amlogic.com; a=ed25519; pk=6rFvvF45A84pLNRy03hfUHeROxHCnZ+1KAGw/DoqKic= X-Endpoint-Received: by B4 Relay for jiebing.chen@amlogic.com/20250110 with auth_id=316 X-Original-From: jiebing chen X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jiebing.chen@amlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org This series completes the end-to-end audio support for S4 SoC from hardware bindings to driver implementation and system integration. 1 Device Tree Bindings Updates Added audio power domain support for S4 SoC.Defined mclk/sclk pad clock IDs in AXG audio bindings. Add S4 audio tocodec binding support. 2 Driver Implementation Implemented S4 tocodec driver for G12A architecture. Add mclk pad divider support for S4 in AXG audio clock. 3 Device Tree Integration Add Amlogic S4 audio subsystem support in arm64 DTS. Signed-off-by: jiebing chen --- Changes in v5: - Fix warning Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yam when make dt_binding_check - The audio reg is mounted below the APB bus in dts file. - Deal with pad clock in a distinct controller. - Fix warning for sound/soc/meson/g12a-toacodec.c - Link to v4: https://lore.kernel.org/r/20250319-audio_drvier-v4-0-686867fad719@amlogic.com Changes in v4: - fix dtb check warning - add maxItems of power domain for dt-bindings - fixed audio clock pads regmap base and reg offset - use dapm widget to control tocodec bclk and mclk enable - Link to v3: https://lore.kernel.org/r/20250228-audio_drvier-v3-0-dbfd30507e4c@amlogic.com Changes in v3: - remove g12a tocodec switch event - Modify the incorrect title for dt-bindings - Link to v2: https://lore.kernel.org/r/20250214-audio_drvier-v2-0-37881fa37c9e@amlogic.com Changes in v2: - remove tdm pad control and change tocodec base on g12a - change hifipll rate to support 24bit - add s4 audio clock - Link to v1: https://lore.kernel.org/r/20250113-audio_drvier-v1-0-8c14770f38a0@amlogic.com --- jiebing chen (6): dt-bindings: clock: meson: Add audio power domain for s4 soc dt-bindings: clock: axg-audio: Add mclk and sclk pad clock ids dt-bindings: Asoc: axg-audio: Add s4 audio tocodec ASoC: meson: g12a-toacodec: Add s4 tocodec driver clk: meson: axg-audio: Add the mclk pad div for s4 chip arm64: dts: amlogic: Add Amlogic S4 Audio .../bindings/clock/amlogic,axg-audio-clkc.yaml | 55 ++- .../bindings/sound/amlogic,g12a-toacodec.yaml | 1 + .../boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 218 +++++++++++ arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 387 ++++++++++++++++++ drivers/clk/meson/axg-audio.c | 435 ++++++++++++++++++++- drivers/clk/meson/axg-audio.h | 6 + include/dt-bindings/clock/axg-audio-clkc.h | 11 + sound/soc/meson/g12a-toacodec.c | 42 ++ 8 files changed, 1152 insertions(+), 3 deletions(-) --- base-commit: 6ecd20965bdc21b265a0671ccf36d9ad8043f5ab change-id: 20250110-audio_drvier-07a5381c494b Best regards, -- Jiebing Chen _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic