From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CA8B606A6A1 for ; Tue, 1 Dec 2026 03:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Jf18Ti/3; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H/1546k9 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-Unsubscribe-Post:List-Owner; bh=t/N914V8XCyEZ4B+4HRlsBCjVyZCRM/BV8X+kWv6aQs=; b=Jf18Ti/3fcfWXrOGbDE9RdIWAm dgx2jJg84vohtEj0G5xtAIIbgZl9a/5VfpXX9JgWY3vuSKE17eKvSMgi7ap8HnRERB5adjh2bW+fz Hw5luyYK1pS96FrUVRwigPqi4eM9vPPPjcPfkgskCXi1jBk12xUGQG6mY9UcBEI0btkLL/HwxO2T2 92iV+KDeiOrZ6rhCst/r/w353S+v4IlpwHE/pfVCsUzaUV2KL2lwtwKwmv+7oelGdywlBwqDRHwc4 ZDGbwViYd3wFyaiw5fHt/uwGwfraFF8/2nkgnwGNhWYTqIBo2ZfOdjrP//asa4vuocccd2KLQqZeI P8PFZE9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYEK5-00000006QG7-0d8h; Tue, 01 Dec 2026 03:14:29 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYEK3-00000006QF0-2LE3; Tue, 01 Dec 2026 03:14:27 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id D552461176; Tue, 1 Dec 2026 03:14:26 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796094866; b=mGrFtAFj4pk3NKymbw8oFh+UEP423kvup5pUPfox/iI4E6XO/ouUGpi5gDYw1aifT3bR BVvRzCAN4o7Jtw5uU38MVvyHGqzc1+o6xY93IFWx6jBzI53TyeyrNL3U1osr7x2BzRh6B bSqleuH3/mai+n/smqx8TOKBiAxljtbrw140lFq3QkHdItsyuMSSPz3P1rYXRkc0dbm5k dNno2pHjg6EGwwaRMv556RCmktr/fSBtqTkJHk43La9iMpGaMqOBo3Q7z/t638vDVh3y/ yH5e2ep0B5dwz7pBZlc2rQURqE2jVEOzBnoRHM7q+VERkp/xONPs7Hp1wraeC8rUupg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796094866; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=yyjDUuPLuBDzgGOHrZqEgDHSs+yeO0TzHKhlot/UzEk=; b=sqFy8cOGS9oc8qE9zAulIO7RcYWufEqR0AcISDk7l4tQhWi3UDmRWd4kAGFh+u9Sj8m/ PnnqI54xDK+anjeEdaxkSg31iqxep1I43ceZW6W0ZXSj9c2b+U9cnjIJa732TU9BHvkBg vL7a2byv0upbieUyki1aQB2w3SGWgiZqE7qKSuoCw16ulJvA5K6nJiczaPglNlz16Dr6B bWldZfc7DHDxBlvQSbYFQYRiro/zPK01lVSswrU6Fg23Y47LwWD9xl6e9eZ4ZNn9KwS93 NJliD475lPi5cUzjpY0crh+QoL5pUb+BpF+g+IYa5EAWRuDbAPg3QOC23pR+PgfTozw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id D91A71F0089B; Tue, 1 Dec 2026 03:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796094866; bh=yyjDUuPLuBDzgGOHrZqEgDHSs+yeO0TzHKhlot/UzEk=; h=From:Subject:Date:To:Cc:Reply-To; b=H/1546k9vIuytUn2RJFLgZ+Xw15x1xgjZ3LClVnEVOh8yTvMBgPXzHvblKsGS+Edi CR93RMZTG2gZda8tTQDwSwrEt/3BVXZt0bNH+Yh6Q2UbT+uACUtogOB6qUMQ1WZFRp uMrhnaHa++kHL9dBiUDNv6M+i+d3VmEa35QRh3B1Mm5qHAO4JjWdvtnr9fqS8bEn/M DGYPLTPPjiazBSRoA09TN95cOTrKaCRc5hhw4oopDdugv0tqY2h9vvYFDNvXTRKxr+ u8CsvnPw5Cnp83o2IQQ816mUKCbA4x+BR+g3M7/h+C4rc8cIe9B8w+lhO3aFYGaTXH s/1H7/OADNQ9w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 396504EB74; Tue, 1 Dec 2026 03:14:14 +0000 (UTC) From: Jiebing Chen via B4 Relay Subject: [PATCH v9 0/2] Add Amlogic S4 audio clock controller support. Date: Tue, 01 Dec 2026 11:14:02 +0800 Message-Id: <20261201-audio_drvier-v9-0-cab2614f3807@amlogic.com> X-Archived-By: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHo7DmsC/2XS20oDMRQF0F8peXYkJ9cTn/wPEcnk0gZsRzIal DL/7mmhjp2Qpx1YO7DJmc2pljSzp92Z1dTKXKYTBfewY+HgT/s0lEiZCS40B+CD/4pleou1lVQ Hbr2WCEE5NTIiHzXl8n2te3mlfCjz51R/ru0NLre3Inlf1GDgAwZQ1vIs0fNnf3yf9iU8hunIL lVNrFyA2nBBXFpEyF7a4FLP5T8ucMMl8TjmKLnmNqnQc7VyCW7DFXGDdGz20YLruV653Y7Y9OV 1BVpnSFYZ1XNz44aDMBtuiDuXpOao9RhEz+0fB9puwy1xMTqffHJhRN9zXHn3AxoSB4VOKKDhU N7zZVl+AZli22pjAgAA 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 , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796094853; l=5582; i=jiebing.chen@amlogic.com; s=20250110; h=from:subject:message-id; bh=VnTTprHRlIfPs+Nulu1eQvC+OroL60LMqKOBVlXUObw=; b=2NtN75rreseef7IH1B1lV2EUuwG8+tcvJXzS37M8Xw4BnH2DIqS+KVaP7JRBNwPe2TJEolUho KLoBoM4Tnh4Cdzm8usDp5uax/HoCfVqBqBAmJ0lz9o4JH0yRqx8MZq9 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-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" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 S4 uses the existing AXG audio clock driver and reuses the SM1 and G12A clock hardware. Pad clock and data selection is done by pinmux, so those pad clocks are not registered. The controller has an internal reset line, like G12A and SM1, and an audio power domain that must be enabled before use. The new compatible is amlogic,s4-audio-clkc; power-domains is required for S4 and forbidden for the other compatibles. Signed-off-by: jiebing chen --- Changes in v9: - Separate out the clk-related patches for independent submission. . - Link to v8: https://patch.msgid.link/20261110-audio_drvier-v8-0-1489241e4c83@amlogic.com Changes in v8: - The S4 clock-enable macros now have an _S4 suffix, and S4 uses its own source mux at the correct bit instead of the SM1 one. - Align the new CTRL0_BCLK_ENABLE_SHIFT and CTRL0_MCLK_ENABLE_SHIFT macros with the existing style: two spaces after #define, and the values lined up with the other CTRL0_* macros. - Rename the DAPM supplies from I2S BCLK Gate and I2S MCLK Gate to I2S BCLK EN and I2S MCLK EN. - Connect both clock supplies directly to OUT EN. They are no longer chained, so the audio path does not pass through them. OUT EN enables BCLK and MCLK when it is powered on. The audio path remains IN -> SRC -> OUT EN -> OUT Capture. - 5 V regulator. Drop regulator-boot-on and regulator-always-on from vcc5v_reg. It stays the amplifier VCC-supply and is enabled only when the amplifier is in use. - Unused codec. Remove the dmics node. Nothing referenced it. - Amplifier name. Change sound-name-prefix from 10U2 to Analog_PA, and update the audio-routing entries to Analog_PA INL, Analog_PA INR, Analog_PA OUTL, and Analog_PA OUTR. - 64 kHz clocks. Keep CLKID_HIFI_PLL at 1179648000 for the 48 kHz family and CLKID_MPLL0 at 270950400 for the 44.1 kHz family. Add CLKID_MPLL1 at 393216000 for the 64 kHz family. - Coaxial SPDIF output. Add spdif_out_h_pins in meson-s4.dtsi. GPIOH_4 is muxed as spdif_out_h / spdif_out, with a 3 mA drive and the bias disabled. &spdifout_a uses that pinctrl so the coaxial output can be enabled. - Disabled by default. Mark the audio controllers, the audio clock controller, and the audio arbiter as status = "disabled" in meson-s4.dtsi. AQ222 enables only the instances it uses. - Codec supply. Move AVDD-supply = <&vddio_ao1v8> out of the SoC dtsi and onto the board-level &acodec node. - Add the missing blank lines after the new power-domains property and after the new allOf conditional block. - Link to v7: https://patch.msgid.link/20261021-audio_drvier-v7-0-2b9aeae9cb8a@amlogic.com Changes in v7: - Use the supply widget to manage the tocodec clock enable signal. - Remove redundant MPLL frequencies. - Fixed dt_binding warning - Link to v6: https://lore.kernel.org/r/20260126-audio_drvier-v6-0-99e350855bc2@amlogic.com Changes in v6: - Fix the problem of string for Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml - Remove clock pad register, and it will be submitted as an independent patch. - Redescribe sound/soc/meson/g12a-toacodec.c - Link to v5: https://lore.kernel.org/r/20250710-audio_drvier-v5-0-d4155f1e7464@amlogic.com 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 To: Neil Armstrong To: Jerome Brunet To: Michael Turquette To: Stephen Boyd To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Liam Girdwood To: Mark Brown To: Jaroslav Kysela To: Takashi Iwai To: Kevin Hilman To: Martin Blumenstingl Cc: linux-amlogic@lists.infradead.org Cc: linux-clk@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-sound@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- Jiebing Chen (2): clk: meson: axg_audio: add S4 support dt-bindings: clock: meson: Add audio power domain for S4 soc .../bindings/clock/amlogic,axg-audio-clkc.yaml | 17 +++ drivers/clk/meson/axg-audio.c | 165 +++++++++++++++++++++ 2 files changed, 182 insertions(+) --- base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d 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