From patchwork Tue Dec 10 17:09:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13903403 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 E2BE1E77180 for ; Wed, 11 Dec 2024 11:33:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 389E62C08; Wed, 11 Dec 2024 12:33:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 389E62C08 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1733916824; bh=8/PHs3hergaZwLujvAzPGvYQcQ9nR8hOIaSM9/vOn8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eiMYikQv49LemEtZqO7IhAr6022oXbN52YtRxA2g9KSIvRFjERKx8hIIV7pugsDCl 0ZS9TMIiR1Tla+/rZJRAzQWLJ/ugWUX8+lM8k10VZQTlsTQ8NFRZkPfZvT8/ANgv2D dP4FIAyitsVz1hMcKAtB9TI7cGL1uVSep7KuRQB8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4A6B9F89732; Wed, 11 Dec 2024 12:28:16 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 26727F89737; Wed, 11 Dec 2024 12:28:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E4ABFF80482; Tue, 10 Dec 2024 18:11:53 +0100 (CET) Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 56E01F800E9 for ; Tue, 10 Dec 2024 18:11:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 56E01F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=tuxon.dev header.i=@tuxon.dev header.a=rsa-sha256 header.s=google header.b=E6/xNDlM Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5d41848901bso2977714a12.0 for ; Tue, 10 Dec 2024 09:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1733850652; x=1734455452; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zbnqkT50sIwhXb4LpARwC8AegnQU36VT8IZg+EnVYck=; b=E6/xNDlMJ9pDVurNM0Xr9oss9jIBPt+5t9Cyfo117NJ533Bpnj82Ole3cCPbjjqLc1 4oSbkZhFgGXxs4a0ab1FwUvlhHYmhh2gSXiP0GQLmxgIsTxM0DVAtmjRVFTDKhc4MRai LgQIOUhL8VEAD0lZ3c6UR6EpgslvTCvL1yQs82IM4Sapuy4D+r6gbY86hw061sKQUhn2 u5lNH+JG4iHimLoSO/YYNpc374BsoIj95QGELPmc2L0A+raQdLfUgmhiGBVyNdWBIWe2 2I9rrj2E+yqQc2cYfcDKTR5wGt/ggL3sjBWpN9irB2T/pbLIR9UW2Y759mA5iX7xZurm RjyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733850652; x=1734455452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zbnqkT50sIwhXb4LpARwC8AegnQU36VT8IZg+EnVYck=; b=j2owkFpyNDD5ZTCW8mMV03xp6J8a6WUaNakMTyK1oiEupVSd1YojdlqoxGAmgWz3+B 3T7AvwJVETW0Y+M5Hml++rkbvBiUxgcXvzkwO+9urWsrXmsbgcx682j6zVKaigJ6EPcZ XndojYq/wYNW6vHehDF3f2N2oZXHTZy94X85WLEC941m4jgFr/v9j5A/JZvuMtUx4r7A CJi1yKvRu/EJmQOM+hb00KmOa1udnHXQt3AgJRbfj0teWk3vJHZUt4mf5cWKz8eYnoul DA6Jvz57fn8oUh1d4ll9nGzA5H/um12IVa4UmW1cwHnaU/kIP6YXhyFYjdQcvKKX4lCN AK5w== X-Forwarded-Encrypted: i=1; AJvYcCXVRUzdQcVHWccZQWsnS8shRLUHsYnTxCQMKTWx5CLztoG2zJTCL9y9thRLa6J1muUeJt0Jl1X/WkIu@alsa-project.org X-Gm-Message-State: AOJu0YwvWn+pBWl03GawJ35/Vj+ILgPvnxPiDpbOa7BF8+hW1GX+Xsnq TulklKrA7KuIQN7HEpdLx05JfETg2JufaqprTImbjUA2MU++oxWwcYvrbR2Xv4c= X-Gm-Gg: ASbGnctIYS4rN6XbbY4tA4VUpWDfAq6sVKtAP1Noapc25MbR2vCzKMpo/1+ZflyW0sR ZSR9tQ4000GwHVqQY4Gbwxn4EJRQUddBCd8ZliJLyLFNw2Hmwun20g7OVmsk5umDGteMIgizqnQ XSGHG/BGY2ZihpUnUYytR1q1YafPwGBad+viX35tlSBZsFzBDN+MwgW62gFh7/b3nFWBi2uX+Ih BDi+rf6rYMhPv2s62r2hwy4t69qd9uT8gqnwn/Zvxg6YRZiK8TF2OCkmP1dUII4iY384Xjyle7n TGEiRtstBXc= X-Google-Smtp-Source: AGHT+IGhOq0ISs6UITM0F+o/rYn/y64cloP1K9d/mnU2rOj31uCI1nueqLaUR3TcQZ6R+M3PsUDCEA== X-Received: by 2002:a05:6402:4308:b0:5d0:e9a8:4c96 with SMTP id 4fb4d7f45d1cf-5d41e2b4a25mr4157459a12.9.1733850651848; Tue, 10 Dec 2024 09:10:51 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.161]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3e7936581sm4853124a12.56.2024.12.10.09.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 09:10:51 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, magnus.damm@gmail.com, perex@perex.cz, tiwai@suse.com, p.zabel@pengutronix.de, biju.das.jz@bp.renesas.com Cc: claudiu.beznea@tuxon.dev, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Claudiu Beznea Subject: [PATCH v4 20/24] arm64: dts: renesas: r9a08g045: Add SSI nodes Date: Tue, 10 Dec 2024 19:09:49 +0200 Message-Id: <20241210170953.2936724-21-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241210170953.2936724-1-claudiu.beznea.uj@bp.renesas.com> References: <20241210170953.2936724-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 X-MailFrom: claudiu.beznea@tuxon.dev X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: AIZCSOBYPINJX5LZV63RDV74QYN2N57S X-Message-ID-Hash: AIZCSOBYPINJX5LZV63RDV74QYN2N57S X-Mailman-Approved-At: Wed, 11 Dec 2024 11:27:12 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Claudiu Beznea Add DT nodes for the SSI IPs available on the Renesas RZ/G3S SoC. Along with it external audio clocks were added. Board device tree could use it and update the frequencies. Reviewed-by: Biju Das Signed-off-by: Claudiu Beznea --- Changes in v4: - s/audio-clk1/audio1-clk - s/audio-clk2/audio2-clk - dropped status for the audio clock nodes - collected tags Changes in v3: - none Changes in v2: - none arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index be8a0a768c65..0e06a4b96c64 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -14,6 +14,20 @@ / { #address-cells = <2>; #size-cells = <2>; + audio_clk1: audio1-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by boards that provide it. */ + clock-frequency = <0>; + }; + + audio_clk2: audio2-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by boards that provide it. */ + clock-frequency = <0>; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -187,6 +201,86 @@ i2c3: i2c@10090c00 { status = "disabled"; }; + ssi0: ssi@100a8000 { + compatible = "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg = <0 0x100a8000 0 0x400>; + interrupts = , + , + ; + interrupt-names = "int_req", "dma_rx", "dma_tx"; + clocks = <&cpg CPG_MOD R9A08G045_SSI0_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI0_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets = <&cpg R9A08G045_SSI0_RST_M2_REG>; + dmas = <&dmac 0x2665>, <&dmac 0x2666>; + dma-names = "tx", "rx"; + power-domains = <&cpg>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + ssi1: ssi@100a8400 { + compatible = "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg = <0 0x100a8400 0 0x400>; + interrupts = , + , + ; + interrupt-names = "int_req", "dma_rx", "dma_tx"; + clocks = <&cpg CPG_MOD R9A08G045_SSI1_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI1_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets = <&cpg R9A08G045_SSI1_RST_M2_REG>; + dmas = <&dmac 0x2669>, <&dmac 0x266a>; + dma-names = "tx", "rx"; + power-domains = <&cpg>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + ssi2: ssi@100a8800 { + compatible = "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg = <0 0x100a8800 0 0x400>; + interrupts = , + , + ; + interrupt-names = "int_req", "dma_rx", "dma_tx"; + clocks = <&cpg CPG_MOD R9A08G045_SSI2_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI2_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets = <&cpg R9A08G045_SSI2_RST_M2_REG>; + dmas = <&dmac 0x266d>, <&dmac 0x266e>; + dma-names = "tx", "rx"; + power-domains = <&cpg>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + + ssi3: ssi@100a8c00 { + compatible = "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg = <0 0x100a8c00 0 0x400>; + interrupts = , + , + ; + interrupt-names = "int_req", "dma_rx", "dma_tx"; + clocks = <&cpg CPG_MOD R9A08G045_SSI3_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI3_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets = <&cpg R9A08G045_SSI3_RST_M2_REG>; + dmas = <&dmac 0x2671>, <&dmac 0x2672>; + dma-names = "tx", "rx"; + power-domains = <&cpg>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + cpg: clock-controller@11010000 { compatible = "renesas,r9a08g045-cpg"; reg = <0 0x11010000 0 0x10000>;