From patchwork Sat Oct 19 08:47:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu X-Patchwork-Id: 13842634 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 DBBCED3C902 for ; Sat, 19 Oct 2024 09:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ptzp2AGtDmlh4y6yStaA1mKsAkuInOqVi2zvAlMIYfQ=; b=Zta0L2q2Ghhk29gfFsyKHuRLqT sHRVlj57V9DQWpFN6Lg53suAFLO9PZdz4ZrFooBwTYYiUE/okV8SCeBnmJ5M1XO33EIIu7HGwpvSM /qiD1DWpbInwM5fjxb/oaqE6d7bSBT+CNfRk+75ThIspSm92lmjVcOJN2B/hoF1O5wbmN2vMVKwKo Hf1zrvPhdGOnk40m8yn9N1P/7BbN0o38HwAaE0o7zKtyndlOVHW04rgmBLaHwHf+wIPqZThwDVt4Z LOplA+jHb+7Vl/jHU+QQi2vNh43X60utwF16qopbfEvbzZxgAuiWkWQSHOWHvGVuBbo6NvVvrCGna FNEiCfXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t25MZ-00000002vxP-1Hg5; Sat, 19 Oct 2024 09:03:07 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2584-00000002s78-38KO for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 08:48:10 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-43158625112so27445845e9.3 for ; Sat, 19 Oct 2024 01:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1729327687; x=1729932487; darn=lists.infradead.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=ptzp2AGtDmlh4y6yStaA1mKsAkuInOqVi2zvAlMIYfQ=; b=VP36J7kAvEMdOApkKG+kTitpIZbY/r3QAzlh0TvnTROMMVYtR9GpwKlYvH+J3kbSck pCDzcIkXiGsXjW05WPwB5lmKYNW5AiqQ2qMa8DZrgzL5JoqjMnP4JcLa/J6fbSLvDc8A n576cKkE6upGesm37IOArtY6lUPgYgjAlqLuCnplP4Nji3e5598X2KggibKL26zbtg3I r6M3ruDtN1lgdqJpByPXmkJFnerYsY90gcQlazfDH07L/X6xrVvgmI8pvewN5C7HshT6 SlhQIXIKEXZqRIOsQmA5AIOFkcKaKhTr12MJvGZgcFkI94Jzm6y/PpylzuM3osaM3d4D k/aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729327687; x=1729932487; 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=ptzp2AGtDmlh4y6yStaA1mKsAkuInOqVi2zvAlMIYfQ=; b=ah11Y/fdVcFMDQvTOrQVMzYV3gbRFWlRwmLdYMEECoQFZRFRJfsvrtWixRabpcrikZ 5N4n2XM8CFr6emZedbLCr6Qc/K7AUNEHGkqBMme0v98r+HzuwJ8DInYCIUKTN0N4HeVm VuZ9a4hLHdWbIfWKupZmOKWs4lFz7IBxIELlKdNweWo1JijFGaUmX3+4e+dadCKgHSI6 95/W/3JQv2M9VPkc1Nioh98P4ibT8R1ALTDGqz42rt0JtXWUQOt0Z8Vl/cOmmXTIx8kW o3fnysgIv8zpc4nhXQsCj4byvMDk9MRS3fJUIVXx849ooDfr1ALDrMk+8+8REv9Nshr6 578w== X-Forwarded-Encrypted: i=1; AJvYcCXJtc6OAdm8KAtZMyBoOH7dSNt6WemVn09mBDLuzQBtzFRoGu3Xhd5howiZvR8WxmivCC9JTpVS+TfZ0U316IZX@lists.infradead.org X-Gm-Message-State: AOJu0Yw42DV26kF59LcLY0Viiy3aWtD7czScVaV+VU2w7x1FeQY7/2Qk NiroVPGVA/ir5SzX0MugKrxfmCiuZ7TxV478Z6e/fK3zNmBRBtJWYrIM/fYOx40= X-Google-Smtp-Source: AGHT+IGbEO57QVxQnowfYpKy9hDCCPJFLMCxr57/LQT6YuDTh7tb4JJuV+/9WkjzM5dKYZ890WhRRQ== X-Received: by 2002:a5d:6a8e:0:b0:37d:4e80:516 with SMTP id ffacd0b85a97d-37ea21a215dmr3401480f8f.34.1729327686755; Sat, 19 Oct 2024 01:48:06 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.23]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ecf0eccbasm3898731f8f.81.2024.10.19.01.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 01:48:06 -0700 (PDT) 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, alexandre.belloni@bootlin.com, magnus.damm@gmail.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-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v4 09/12] arm64: dts: renesas: r9a08g045: Add RTC node Date: Sat, 19 Oct 2024 11:47:35 +0300 Message-Id: <20241019084738.3370489-10-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241019084738.3370489-1-claudiu.beznea.uj@bp.renesas.com> References: <20241019084738.3370489-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_014808_830743_1DF9D931 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Claudiu Beznea Add the DT node for the RTC IP available on the Renesas RZ/G3S SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- Changes in v4: - dropped the assigned-clocks, assigned-clock-parents properties as they fit better on vbattb node - moved the RTC close to serial node for ordering Changes in v3: - added CPG clock, power domain, reset - and assigned-clocks, assigned-clock-parents to configure the VBATTCLK - included dt-bindings/clock/r9a08g045-vbattb.h Changes in v2: - updated compatibles arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index 827db9f61802..14e105de2f08 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -7,6 +7,7 @@ #include #include +#include / { compatible = "renesas,r9a08g045"; @@ -72,6 +73,20 @@ scif0: serial@1004b800 { status = "disabled"; }; + rtc: rtc@1004ec00 { + compatible = "renesas,r9a08g045-rtca3", "renesas,rz-rtca3"; + reg = <0 0x1004ec00 0 0x400>; + interrupts = , + , + ; + interrupt-names = "alarm", "period", "carry"; + clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb VBATTB_VBATTCLK>; + clock-names = "bus", "counter"; + power-domains = <&cpg>; + resets = <&cpg R9A08G045_VBAT_BRESETN>; + status = "disabled"; + }; + vbattb: clock-controller@1005c000 { compatible = "renesas,r9a08g045-vbattb"; reg = <0 0x1005c000 0 0x1000>;