From patchwork Wed Nov 6 08:17:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13864057 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 274341D271D for ; Wed, 6 Nov 2024 08:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730881160; cv=none; b=kxz7CRdmfq0Y8rjq1fQCGxC/4hM8zl1dxV5SNErJCxZOHgRqycgYg9D1yACcG8pouPKVCRHHwRgF9RBbMh5o8fk3DoE/G19UBZhYs/d3kZ7r8IcETskuDrnTSWoq1DRs/BEm3fUuLNNsTpk+Qu9Jr5MobfEKC5WOiAlihUXKjOg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730881160; c=relaxed/simple; bh=GpBDUTZ3YVREfgsYBDreS3OjzBVkAgTgUgBjQMMYioM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QG/7Xd+4NOPeef9XCMWdEmpwiaCp3kYZtmOT0gh1PgIveijQbV3tOkR0VhFgnxiQdPNdyiL2bPby8W1orX631tfko6UqtEv3IpkraSdzy39l3TTATXB2MLlE8BUO0LKpwaI3Lg16fnsSiJeGV43pNAuV7UU75Pyetz2nVYzUObQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=pb7+cJhV; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="pb7+cJhV" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-539f58c68c5so11489917e87.3 for ; Wed, 06 Nov 2024 00:19:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1730881155; x=1731485955; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=O0EwWiHqZRcRNhtKVqfQIo8EgL8Jkkj2R1J1tOzysMA=; b=pb7+cJhVpqTVTT7LXw0aeKym4KcDoYFZ4QHE2Iig+DmndeE5U5UgPjcTd00LcB7mEO 2Mpo4hTM6NYtLr02F9fdnDukYc3KLB6LPIU/zvk0dG6k5C4e3FXUBMUFuYMfq3yOSaD8 aO5Cvd05+6QYPUpi9Fx3zOPonve4Twa92kwLxlbiCAS1VnyR63Tt5v88DZ+Ijalj9/jh NHytgoiVCjwYifjclA2E17TJ9wW6yXp+OvMAOcO6rLhwHuHt+okfvw06DjG3aqk+8QyT jaoDTVKr24YYZ8zvx92H/Tj2YfHRI25z1H32NClp38I2PDCQJGvOA3c8X0P7IM+MBXkm W0Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730881155; x=1731485955; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O0EwWiHqZRcRNhtKVqfQIo8EgL8Jkkj2R1J1tOzysMA=; b=qbUlOtI8lU587jg8AsLDOXAZzW+sWSFCa2oveD2jfXzrN6Vb1ur0qLLJaYeGf7a0cH UkV3s42tz+0F8R19+PDNPD4BhwJrtqQnPYGozFjD8onI7jY9XWMsOaEiccUdFesiUegF DzDY09PLbiSPY+cUBEui8bxYyH8iAK9BTG6sdTvUDpckQ1O73eKFwudPdi6yq9WUFewU plFthBton1IgOJ5zrpBnAJ/t7gMALQmEfdIYLZtFKh5lUuzcfPqYJUeVoVUDxpDR9iLY H7BI3j6dgQ19Xu4kf48szXCQ1W08qQLtYp+48ngAKH4fFmcWeC8PWbhq+zucENbp/iHa YFNg== X-Forwarded-Encrypted: i=1; AJvYcCX6APSUMWedCCoE61DrZEaLhZZbBvUnhzWeJJQHefywjWbi6df+JxrPVXUMVDNN89+OCwBVnUGQ2Us=@vger.kernel.org X-Gm-Message-State: AOJu0YzdkdFPN+pG0JAuQQwdGbC2dj3j+cdK/0yANOjJ26mhezhabBoJ soUgEHI8c0gFMagP21mryxyswL4e6UVpJRmtD+0lxKPo+hrK4lkxntqr/vLOkEA= X-Google-Smtp-Source: AGHT+IFtafBLis7fezHXs17e2MYW4DBcU7xNwUH27d76x7GwpqPEQILU3OH71SRjhwJ/jvCHwWZnIw== X-Received: by 2002:a05:6512:3d0e:b0:53c:74ed:9de with SMTP id 2adb3069b0e04-53d65dc9860mr15311533e87.6.1730881155098; Wed, 06 Nov 2024 00:19:15 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.28]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb16a2dbcsm241369766b.40.2024.11.06.00.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 00:19:14 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, lgirdwood@gmail.com, broonie@kernel.org, magnus.damm@gmail.com, linus.walleij@linaro.org, support.opensource@diasemi.com, perex@perex.cz, tiwai@suse.com, p.zabel@pengutronix.de, Adam.Thomson.Opensource@diasemi.com Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org, Claudiu Beznea Subject: [PATCH 00/31] Add audio support for the Renesas RZ/G3S SoC Date: Wed, 6 Nov 2024 10:17:55 +0200 Message-Id: <20241106081826.1211088-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Claudiu Beznea Hi, Series enables the audio support for the Renesas RZ/G3S SoC along with runtime PM and suspend to RAM. Patches: - 01/31 - add clock, reset and power domain support - 02-04/31 - update versaclock3 clock generator driver to support the 5L35023 hardware variant; versaclock3 provides clocks for the audio devices (SSIF, DA7212 codec) - 05/31 - add pin control support for audio - 06-21/31 - add SSIF support for the RZ/G3S SoC; fixes and cleanups were also included - 22-26/31 - updates the da7213 codec driver to support the DA7212 hardware variant; suspend to RAM code was adjusted to cope with the RZ/G3S power saving modes - 27-31/31 - add device tree support Merge strategy, if any: - clock patches (01-04/31) can go through the Renesas tree - pinctrl patch (05/31) can go though the Renesas tree - audio patches (06-26/31) can go through audio tree - device tree patches (27-31/31) can go through Renesas tree Thank you, Claudiu Beznea Claudiu Beznea (29): clk: renesas: r9a08g045-cpg: Add clocks, resets and power domains support for SSI clk: versaclock3: Prepare for the addition of 5L35023 device dt-bindings: clock: versaclock3: Document 5L35023 Versa3 clock generator clk: versaclock3: Add support for the 5L35023 variant pinctrl: renesas: rzg2l: Add audio clock pins ASoC: sh: rz-ssi: Terminate all the DMA transactions ASoC: sh: rz-ssi: Use only the proper amount of dividers ASoC: sh: rz-ssi: Fix typo on SSI_RATES macro comment ASoC: sh: rz-ssi: Remove pdev member of struct rz_ssi_priv ASoC: sh: rz-ssi: Remove the rz_ssi_get_dai() function ASoC: sh: rz-ssi: Remove the 2nd argument of rz_ssi_stream_is_play() ASoC: sh: rz-ssi: Use a proper bitmask for clear bits ASoC: sh: rz-ssi: Use readl_poll_timeout_atomic() ASoC: sh: rz-ssi: Use temporary variable for struct device ASoC: sh: rz-ssi: Use goto label names that specify their actions ASoC: sh: rz-ssi: Rely on the ASoC subsystem to runtime resume/suspend the SSI ASoC: sh: rz-ssi: Enable runtime PM autosuspend support ASoC: sh: rz-ssi: Add runtime PM support ASoC: sh: rz-ssi: Issue software reset in hw_params API ASoC: sh: rz-ssi: Add suspend to RAM support ASoC: dt-bindings: renesas,rz-ssi: Document the Renesas RZ/G3S SoC ASoC: da7213: Populate max_register to regmap_config ASoC: da7213: Return directly the value of regcache_sync() ASoC: da7213: Add suspend to RAM support arm64: dts: renesas: r9a08g045: Add SSI nodes arm64: dts: renesas: rzg3s-smarc-som: Add versa3 clock generator node arm64: dts: renesas: Add da7212 audio codec node arm64: dts: renesas: rzg3s-smarc: Enable SSI3 arm64: dts: renesas: rzg3s-smarc: Add sound card Hao Bui (2): ASoC: da7213: Avoid setting PLL when closing audio stream ASoC: da7213: Extend support for the MCK in range [2, 50] MHz .../bindings/clock/renesas,5p35023.yaml | 1 + .../bindings/sound/renesas,rz-ssi.yaml | 1 + arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 96 ++++++++ .../boot/dts/renesas/rzg3s-smarc-som.dtsi | 47 +++- arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi | 66 +++++ drivers/clk/clk-versaclock3.c | 67 +++-- drivers/clk/renesas/r9a08g045-cpg.c | 20 ++ drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 + sound/soc/codecs/da7213.c | 27 ++- sound/soc/codecs/da7213.h | 1 + sound/soc/renesas/rz-ssi.c | 228 +++++++++++------- 11 files changed, 437 insertions(+), 119 deletions(-)