From patchwork Fri Aug 30 13:02:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13785115 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 93A0BCA0FEF for ; Fri, 30 Aug 2024 13:17:00 +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=ukqX5sC9LJpcoIMKohkjjIWRhtJZ817S3qSAcOa4kZM=; b=P692Ozq2YDkJ0ybmeJIWDd7COs fC3ImV5ShUGiVtTLcltnjf4cZHEFbclKPpTPK+qjJ+p4mdj0w9irrgL1SRy+Db3wmLZQQ+FgYR1d/ IvZrhpxXihDypfFTjP7rqdnnyIvZp+Z0UE7vc6RB119+ULMBQ8I30dhciYzB6XAIkSjYkVdEksixF KDveiRWukLwV+uGteekto+y+Iz6Lviqii8prHmdP23k4Vs51YFCgtAxtSbcodEwQighjPaI6yW23j Eh7GVWhpI3EhQwjEVaQuN/rwqTiUtcSGjdiiqXPMDugcVAN9I9OECFRbilW6iVWZdRmuW3R9ytRAJ wxvjwGUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk1Ue-00000006NYm-3ncu; Fri, 30 Aug 2024 13:16:48 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk1H7-00000006Jnh-0gy9 for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 13:02:51 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f43de7ad5eso23492021fa.1 for ; Fri, 30 Aug 2024 06:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1725022967; x=1725627767; 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=ukqX5sC9LJpcoIMKohkjjIWRhtJZ817S3qSAcOa4kZM=; b=aGP44pGsMnXKttfPqTHKnfXf3Ew0W5u8/rHwgxaAfnLmCZwSvhvYHVgBjcdyU6zQyg uUDgeiqQMXI3wjVNhlrX3r1B21aj3hFlhbw3eFAYjEd5nvbvgmBuUnGiF34CEqr/+W2L PjGITK1JxeySu7EnEX2umj2OjyjduB0qlFBt0xQWH2nVGtzHP/wO9NQZa+jW2AOjDKDL ufsaxca/nhhj1Cd1qWFz4D1rGINKg3FzOLplfPE6qC9JUrK+jYBWB3M4H2nid4hO9WyU P+JF0KML9YoA41Wot8c4E9bdNwZ9wDT9Xys7ByEzXTHUxfw7RQng4uqdIzQCxHa5Y1f0 jopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725022967; x=1725627767; 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=ukqX5sC9LJpcoIMKohkjjIWRhtJZ817S3qSAcOa4kZM=; b=IJn1ehxhgz0v4z3adibljeUwTmmFq8HR2xYzd0g+PynuZLgMXYfpVUbsPQCDCUgarV rKYmEwYxdvmXn4iRx7qMeWbLmqI3l0UguU3dIoNbWH2CcJwuwkfQsbuqq931FBj+LfHo vdK/4eSiWddMC1TLmmQSlWGgCIoO3dUHpEzWy+sO3TUhmCxAImo/zDc4KLDtPMMoVuwi itXP4NUZVqYGU8p84w46pvFL5D7huBrnTIhuccfKUyWmxxWq98iPPe6Tj5TCQWhLbrRb HdlSgwEJFnF/r57WIQdc5ygzDwHihW3kiOlHRkCqgQbim4EI2lrnqLrm46Smf7syk3jE v6ng== X-Forwarded-Encrypted: i=1; AJvYcCWqeBEqLOW1VNWT8Q7X765xFpbj6rtZM96deDyftcLfuuEXEQniDjP3CoznWEvMahBUpAmRkcNhR5rVkQ/dwja9@lists.infradead.org X-Gm-Message-State: AOJu0Yw8yjA7WUNreyPsMAf4hLTysAgbAXiJokrorrFUuC6Gi2W/kCDS R/jDwzIIu8YV7hF9Yg3wJiBouoTVmuA8ByLioeV4gg2CTrJpq6tYM24gfM7YJOg= X-Google-Smtp-Source: AGHT+IF9cc2jwjLzI4jgE1O9TLs1SvEtqqWHN58dUrodIH74E0JWxf1LOzmgmFTE6AuLu3nFrEl8sQ== X-Received: by 2002:a05:6512:15a0:b0:530:ac0a:15e8 with SMTP id 2adb3069b0e04-53546af3fb5mr1440203e87.11.1725022965066; Fri, 30 Aug 2024 06:02:45 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba642594dsm80361785e9.47.2024.08.30.06.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 06:02:44 -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: claudiu.beznea@tuxon.dev, 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 Subject: [PATCH v3 07/12] arm64: dts: renesas: r9a08g045: Add VBATTB node Date: Fri, 30 Aug 2024 16:02:13 +0300 Message-Id: <20240830130218.3377060-8-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240830130218.3377060-1-claudiu.beznea.uj@bp.renesas.com> References: <20240830130218.3377060-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-20240830_060249_246189_71FB90FA X-CRM114-Status: GOOD ( 10.96 ) 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 VBATTB IP along with DT bindings for the clock it provides. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- Changes in v3: - dropped the child nodes of vbattb; along with this dropped ranges, interrupt-names, #address-cells, #size-cells - added vbattb_xtal as input clock for vbattb Changes in v2: - update compatibles - updated clocks and clock-names for clock-controller node - removed the power domain from the clock-controller as this is controlled by parent node in v2 arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index 067a26a66c24..247fa80a4f53 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -160,6 +160,18 @@ i2c3: i2c@10090c00 { status = "disabled"; }; + vbattb: vbattb@1005c000 { + compatible = "renesas,r9a08g045-vbattb"; + reg = <0 0x1005c000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb_xtal>; + clock-names = "bclk", "rtx"; + #clock-cells = <1>; + power-domains = <&cpg>; + resets = <&cpg R9A08G045_VBAT_BRESETN>; + status = "disabled"; + }; + cpg: clock-controller@11010000 { compatible = "renesas,r9a08g045-cpg"; reg = <0 0x11010000 0 0x10000>; @@ -425,4 +437,11 @@ timer { interrupt-names = "sec-phys", "phys", "virt", "hyp-phys", "hyp-virt"; }; + + vbattb_xtal: vbattb-xtal { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; + }; };