From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289993; b=ra6nTXVO3oZNkb1SllvC3jQLmIHU0Y/CaOxWY5JxrV3qIyyYvKhLnYKCnKnyasvGlRs2 4Ck3asfuDL+zAfa2zzn5spmGkvfKPEPHj0EhrpkrJ1whJM0j6pu3gv23Cll1s3V9Fo5rJ MUrh6v2UKKzyfcGAa3Q3jMi5a/8ztSn0vWS+DrOrRKt5Jk6gFx32N3iBMYj0bvLl37qLQ trwOOA8UESlLfBNaDD68KvYhL8SspmTKi9z4v3Z6R+5k4Z2wFYkAvzzkwdcKsZEHxn6xk wtTk3qiPVUhbWvUamfB3eqK6LUztjleBemTx9sg5Om5rK5lhMrHhMszeB/o/qDe0hOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289993; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:To: Cc:In-Reply-To:References:Date:Message-Id:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=50e5Z0V1MDOwFelPuD9wgXHYbgZG+8AHATGS9t3jUYs=; b=BpM86ch62zShpehWlSkwBL+FXNDSCV9S29GiwKP9WVvSc+STb/YGP1CT51teTiq/RwtN quRUEspEh7qlekDiapo/BT3qqS6aR4nE/eyOiH7AMnkI2vgwzePx2RPE4kPb29fHEWVgg vXn5EgFfcg4efjmakECUmF2M7juBhJgOiGTVlCT2dWVq7fvLLAQsA2ooD5v2TssXx6uKz 68+pRjZ/Sg9EfYSTjTeCi/PJBHFT85HnVtGu6OdmeW9hJm1HxlaxhPm312t8/NidwEvFw 4ebw7UMWOf33Owd5bmk7ezFZX3bOHr2YIWZSJhIzJwDzq7A8aRNCqED37R1VJjLvd0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=ZzSvjVSo; arc=none smtp.remote-ip=209.85.218.43 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76F71606A68D for ; Thu, 3 Dec 2026 09:26:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76F71606A68D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=ZzSvjVSo Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-c4322d310e7so1426903866b.0 for ; Thu, 03 Dec 2026 01:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796289988; x=1796894788; darn=vger.kernel.org; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=50e5Z0V1MDOwFelPuD9wgXHYbgZG+8AHATGS9t3jUYs=; b=ZzSvjVSobGkFx4xRPvb/3IDV7SzyqrBufWueVTuOjCSzwjPBcBt1KSpUTEpJ57dlfB ukSe/XURvHJQLgXK2O5DnOR6FkGd3wyxYgAlU/YGa1un443UcuKRl3GwPLLh/yvKlBnA YSnYb0x4yWtLl/JJDS5/0MAZz9VP4JCSnOFsJuTiHOvFb5Qg+AdzSoIB7HHtT8ubl5vl O4VLGHUP3K+T7xIuQYq1pvy0dlIcgbY5Dfpp7ZwTMLzOuhqF2Hd9mwP6xYEFc2oeCjUz RceNI+4ozHCWasJWjS+Kytgd9cd7sHCQtfT82BtBsFn8JHy3DCh1Tomr/j0aRgGP7pjM ypEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289988; x=1796894788; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=50e5Z0V1MDOwFelPuD9wgXHYbgZG+8AHATGS9t3jUYs=; b=Gib2AAqqqzex1CDgx2Fi/xmhO7SxhsGGjCU245285C/hhiExn8AqJ7PgKVk0whLrUJ zUE3+gVETnjRgYY6LQmSFycvJrH8u+72ZOHNDHR1aUPgq2sBNRhOq2XZPkCbz2Gw/ZQX 5145VCTij60KbfmTaIPZmKj3LMIjl5cOUa0QxLC7N3mlDytRVMhaEcCpllH+nsaZHWHs P+btFmXTPtofv7OtmgG1aK2RZciGRTGllS6dKtPxMFrvb49rGi6edQfrSbbqk1+BxkOq G6qOj/n8b2UyJApDgQv24cmAfVyK3BklF7T4QtkhOondTW2MC1uRfEmecOfXudMe+9Od D3WA== X-Forwarded-Encrypted: i=1; AL+hErGM05Pcy1lcyenzC0R3eaaqJ+ukQx17OiZXBWe5gELuJO+Z5DYXHqLv4sxEIO4d6tphEK+FYkOwKvpccIo=@vger.kernel.org X-Gm-Message-State: APuU4Z+SBRIoeRcWI2jcBLreLZptBXYPW+1EEv1Gw7oddapKqIdhWk0N Ddl8Jw6HkTBXuHRPxaE8b0OLk1WKOKzislldI3rKgS/BfNHJpjWERjMrg4ASMQEqOAs= X-Gm-Gg: AZFdTZegR9YxEBEchsAvYTw4P6gmhmiTtQW2IiBYrT0/KwNBXBCiull6sScQEClEBFL 21Ve6a0Vg3fv/Gd3dZa3zAzCXU72JgIiJ01x028rvoxb+F7pWj/mFhp0aVJqGriDa8agxrlLuq1 LJI8kR/7szHHjUg/Xsy2uxeD0vzEVo4sl/PvMKedENqzauBJdoSALivEuwbsyIDv/HlavvwHz5H AKgXp6ke+MEKcOkcaMWITM+6qL1tJlHKnsvvuUQTYyBirCLw2pc9jrP9rpk96rnlh4R9QVqtK4u Lh9iL+FE2rjuihtQNTR6OprIJ7R+YX/hY8hx7Ur4WOZOjTX+OM9LRZYqtuf7v6baBipl/uFbDm9 9St6HlDHw48OSapeCC+CQue6pfnaEaICYzaSCJaZfjUvgrEslTTMkMe+zv3WN1bJgscdLDp/ut0 bmxu+vF0T1XUDxrfjQxxmVsYU6lhNbJiLY0agb7U15/iDQzw0SBfQb0iY6llUnmW9/i8IFQKohy X6JvxO+BN4wgd5K5Iz+QDBwkfausJD/bDXT6jCFanh/2ISt1TvWz4SRzdh9yMCudIAhflYszrz+ wM1jwkdXK/RS7hJeBK2EEngbdvXlkXEITG1ShjFvYeKSby9D X-Received: by 2002:a17:907:7f91:b0:c50:c04d:cbb4 with SMTP id a640c23a62f3a-c513ac9f641mr3675407066b.43.1796289987841; Thu, 03 Dec 2026 01:26:27 -0800 (PST) Received: from localhost (82-67-6-57.subs.proxad.net. [82.67.6.57]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae68788sm1447984366b.29.2026.12.03.01.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:26:27 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v9 0/2] Add Amlogic S4 audio clock controller support. From: Jerome Brunet To: Jiebing Chen Cc: 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 , 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, Krzysztof Kozlowski In-Reply-To: <20261201-audio_drvier-v9-0-cab2614f3807@amlogic.com> References: <20261201-audio_drvier-v9-0-cab2614f3807@amlogic.com> Date: Thu, 03 Dec 2026 10:26:26 +0100 Message-Id: <179628998637.3767986.5122953518460303253.b4-reply@b4> X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=5608; i=jbrunet@baylibre.com; h=from:subject:message-id; bh=9UStglag9yUrT2BXwndw0tuf3fJlIZh5IMiGjH0gsXQ=; b=owGbwMvMwCW2VtK+WnvWU3HG02pJDNmCpof0819rd7npHFnXG6MyZ/HJo01s5rUWyaJMb9oZD m948+9iRykLgxgXg6yYIksNd7X4O0mtL7Om69yGmcPKBDKEgYtTACZSwMfI8Dl4UaqfplnRk/Xp RWIGKXMOrTPkryxKnxXGcEwj69kibkaGXk/Pvhdb/6RFZmeG/VPxNed/PvmL82cntc+cpgU3Liz kAQA= X-Developer-Key: i=jbrunet@baylibre.com; a=openpgp; fpr=F29F26CF27BAE1A9719AE6BDC3C92AAF3E60AED9 On 2026-12-01 11:14 +0800, Jiebing Chen wrote: > 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 Please check Documentation/devicetree/bindings/submitting-patches.rst, bindings comes first. I've re-ordered while applying. -- Jerome