From nobody Sun Nov 24 02:52:41 2024 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 59C531F76D0 for ; Fri, 8 Nov 2024 10:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731063069; cv=none; b=pXaGc3BKuAHcANyB20fGs+SiNCZL22EIOZnpIY1Nq8jWm6sXj9aGWhN3mxf8rseKvH6bhRcCaL+51RA+WeEyPaTNMHaOudYPi4DFV4KmriZ4i8cnHU8zG1U/8a1fyF/XrmR+peTnQpxtmcrY4QdkQjjQrrHO/DJGswtHVsVy7mc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731063069; c=relaxed/simple; bh=5R/kbi91DW/+YOWu/nBiwMSuOtCvIhihiX7sqnIwlYE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g49g6TmhEc5QoxoGMKOCZCqIkaiBQTTN0hDA/lcWcGu2/xRB4xhKGXb46C+YeJEYA1VY3LCt9/GzWEY02gI5mJXn8C6+096b8Nr+EQMdibs2PPjjISW9R1DpzsWcDTv918WPe/YCZodvD7uJGq85rdLFHZFfjlod+j38ObqXw7c= 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=YnuNyk3m; arc=none smtp.client-ip=209.85.218.42 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="YnuNyk3m" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a9ed49edd41so358678666b.0 for ; Fri, 08 Nov 2024 02:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1731063066; x=1731667866; darn=vger.kernel.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=t/e38PQFjeFG209Rga4nKvvbj7y/1sdDyJVGbXYbeis=; b=YnuNyk3mSQywjwo9HIHwQsz4lyBRZM57OOvX136IGl1zgia4rjTQ3rqFhIwykL3Rtu An3Lv/5/GrigxGt222Z3qCPlq7zr4ONYIUNk5HxDtfv4lmzDgdYmnSptIACjBlbtFWMK 176+nRktwL+zZBZz7gfcfm67iQY5Ew/dUvpQhgfJRGjAEoMXG1T13eWOAuo5231QSH+/ SHn+/ZGz/k+dcKfX6vnEDoVf+BD1eMFrwZiVGS3BGylLpzpluPwOgvaMx9/gMi4LC+b8 uCEJYZMnSoY6u0Yeq0vcXpSMaHWBox4nUhKzYMBAUSA5fUPIs+4eGBy6aiYNdXxkwGl0 FXvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731063066; x=1731667866; 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=t/e38PQFjeFG209Rga4nKvvbj7y/1sdDyJVGbXYbeis=; b=BbOole0lHjYy3vkhv5Lkm4XmvZO+IJgGrlrKA5YB5eXEn4huS69D9uy3nZoBbtUoUo 0GMDzxboEyoAZLJxJIhqtA8gdmb2nN5Mzrsps1obfDgRlCsLwEKK7XR0Y4F0/WFISQT1 zRsLwe/ST8BIJVTaBS/8EvKjyrS8zrM++i7w1vG8MG4P9sMMlcVyaghbMYHkPxESjJm3 6rrDjcYIMWQnyzHiEB/0s1mlyw1lv71ontP3VUjCvw+wK8dJGoE2K8SOjN0sVsac3sNP p27nFEtnpmrvLZ9Ai9Vo+YkMK5Tt0PX95k8mUUFOjEfjqKNrX8W8yXUpUDHoQJDkVZAy IRKw== X-Forwarded-Encrypted: i=1; AJvYcCVfHSRtzffdgUqrq/O5PfqX5IjJOb5L4k/gY9mHvlnkRCikoYGOeWQNrC3ld9Q+4cvj5IX2Ty4iKh4VPJU=@vger.kernel.org X-Gm-Message-State: AOJu0YxL10r4/SGFGUtHOe1Kh7msAOzfxLSExnEbMfEcO66NsvxVEmcE 2Dv5+j0Q7MyTCNyqgW5V+S2s7t1z+NJoyzwRgmYlblyRR+efHYbHOOJq3KMfDfM= X-Google-Smtp-Source: AGHT+IEROX9KaO6d/u0xO2QIjRrzXqnBo50+cssH572zzI8DNVKAplSUbSI9A0zYuxHxBmSPI6CWtA== X-Received: by 2002:a17:907:3e1d:b0:a99:4aa7:4d6f with SMTP id a640c23a62f3a-a9eefebc409mr218811466b.12.1731063065775; Fri, 08 Nov 2024 02:51:05 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.28]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0dc574dsm220464866b.101.2024.11.08.02.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 02:51:05 -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, perex@perex.cz, tiwai@suse.com, p.zabel@pengutronix.de 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@tuxon.dev, Claudiu Beznea Subject: [PATCH v2 21/25] arm64: dts: renesas: r9a08g045: Add SSI nodes Date: Fri, 8 Nov 2024 12:49:54 +0200 Message-Id: <20241108104958.2931943-22-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241108104958.2931943-1-claudiu.beznea.uj@bp.renesas.com> References: <20241108104958.2931943-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Claudiu Beznea --- Changes in v2: - none arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/d= ts/renesas/r9a08g045.dtsi index be8a0a768c65..24c6388cd0d5 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -14,6 +14,22 @@ / { #address-cells =3D <2>; #size-cells =3D <2>; =20 + audio_clk1: audio-clk1 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + /* This value must be overridden by boards that provide it. */ + clock-frequency =3D <0>; + status =3D "disabled"; + }; + + audio_clk2: audio-clk2 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + /* This value must be overridden by boards that provide it. */ + clock-frequency =3D <0>; + status =3D "disabled"; + }; + cpus { #address-cells =3D <1>; #size-cells =3D <0>; @@ -187,6 +203,86 @@ i2c3: i2c@10090c00 { status =3D "disabled"; }; =20 + ssi0: ssi@100a8000 { + compatible =3D "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg =3D <0 0x100a8000 0 0x400>; + interrupts =3D , + , + ; + interrupt-names =3D "int_req", "dma_rx", "dma_tx"; + clocks =3D <&cpg CPG_MOD R9A08G045_SSI0_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI0_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names =3D "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets =3D <&cpg R9A08G045_SSI0_RST_M2_REG>; + dmas =3D <&dmac 0x2665>, <&dmac 0x2666>; + dma-names =3D "tx", "rx"; + power-domains =3D <&cpg>; + #sound-dai-cells =3D <0>; + status =3D "disabled"; + }; + + ssi1: ssi@100a8400 { + compatible =3D "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg =3D <0 0x100a8400 0 0x400>; + interrupts =3D , + , + ; + interrupt-names =3D "int_req", "dma_rx", "dma_tx"; + clocks =3D <&cpg CPG_MOD R9A08G045_SSI1_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI1_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names =3D "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets =3D <&cpg R9A08G045_SSI1_RST_M2_REG>; + dmas =3D <&dmac 0x2669>, <&dmac 0x266a>; + dma-names =3D "tx", "rx"; + power-domains =3D <&cpg>; + #sound-dai-cells =3D <0>; + status =3D "disabled"; + }; + + ssi2: ssi@100a8800 { + compatible =3D "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg =3D <0 0x100a8800 0 0x400>; + interrupts =3D , + , + ; + interrupt-names =3D "int_req", "dma_rx", "dma_tx"; + clocks =3D <&cpg CPG_MOD R9A08G045_SSI2_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI2_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names =3D "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets =3D <&cpg R9A08G045_SSI2_RST_M2_REG>; + dmas =3D <&dmac 0x266d>, <&dmac 0x266e>; + dma-names =3D "tx", "rx"; + power-domains =3D <&cpg>; + #sound-dai-cells =3D <0>; + status =3D "disabled"; + }; + + ssi3: ssi@100a8c00 { + compatible =3D "renesas,r9a08g045-ssi", + "renesas,rz-ssi"; + reg =3D <0 0x100a8c00 0 0x400>; + interrupts =3D , + , + ; + interrupt-names =3D "int_req", "dma_rx", "dma_tx"; + clocks =3D <&cpg CPG_MOD R9A08G045_SSI3_PCLK2>, + <&cpg CPG_MOD R9A08G045_SSI3_PCLK_SFR>, + <&audio_clk1>, <&audio_clk2>; + clock-names =3D "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; + resets =3D <&cpg R9A08G045_SSI3_RST_M2_REG>; + dmas =3D <&dmac 0x2671>, <&dmac 0x2672>; + dma-names =3D "tx", "rx"; + power-domains =3D <&cpg>; + #sound-dai-cells =3D <0>; + status =3D "disabled"; + }; + cpg: clock-controller@11010000 { compatible =3D "renesas,r9a08g045-cpg"; reg =3D <0 0x11010000 0 0x10000>; --=20 2.39.2