From patchwork Tue Jul 16 10:30:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13734278 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 4FB42C3DA59 for ; Tue, 16 Jul 2024 10:32:43 +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=Lfsm6nSG5J99n7fBjSEyZBKTrg1AsoRf03PyuQSS78k=; b=o7p4ZAyaexfB9DCbY8XBkEySS6 QMkrJEdpIj7pkTzHVl6j7kLrWxF+d/IHHbAwd36ZAbKKimBEg022DRAafexjeLVjOsLoeYCdxEXY/ j+tDediAjQAoaA1+BvXfcRzDCMGuUNLWE9b1IS5h/FpkYLmkO3neL/wh+qSalRlngVTsVZBS6yqNK cjdwJsZon//OoBKSxcdihxDVGlVUxXpPbK8QEZOwGWPkglOqgzWdBEcw7TCCzT0x9Q4JZlhvYPss+ Ff/w7c4jspTHdPaZbuUhqSvq/kZRJQYooyXuMSX7baesn7LHWRrQQu8+Sadooyvs2tnWkmPdPb2na bHvJSy6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTfTz-0000000A3Dg-3MF2; Tue, 16 Jul 2024 10:32:31 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTfSJ-0000000A2TN-2j8q for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 10:30:49 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-427b9dcbb09so4800215e9.3 for ; Tue, 16 Jul 2024 03:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1721125846; x=1721730646; 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=Lfsm6nSG5J99n7fBjSEyZBKTrg1AsoRf03PyuQSS78k=; b=AmffDTTJPbOy0dOIEDe+A1B7N7wEOD+W+0dWTSKxO5BElCyQJ272tiQ7O6+hXnIIKr OmfwDjykikAtd6E+xjaZj2d+Cj7zSiPgX0q8WH6G2vK0tdQwOBlIvAyWVJx23ZsQoU0V I9jshBUBx5Y1gSErOzE0MmhSdkshEM6Rl990wQ+BCadVHnx2nW4Yz8PXBhrHInGi6se9 upTLi9IEBb8jGeApcEc6AkScomWO+SE4oGQp7itE7fhDNL6mjpllmJ6Uxhs1AtXplwKu 1koL2DmJp1Ctp5akZGU6z5oU/JXND80j5w6XXZa6/osr5jI4Fp5g349VLtIzqEgP5F5w Xm4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721125846; x=1721730646; 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=Lfsm6nSG5J99n7fBjSEyZBKTrg1AsoRf03PyuQSS78k=; b=NQ8XKNmZ3ug7MxrbUE3qMktn7TjcdOIr4UVLCZ5AtwqLjVrnMcD3WJZEVamtQAw+PR K0KtxZWrJIzFlGqYGBM9e6uP5L8Z73IT7WrEooDcaRfBpzJ+gfNKetd3Y47xBFwp5xN8 32b21WkslUkKZtW4Xnlzoxu350FNunmMkO4xf3ocLVaxUOANgKnV+cEkiv/aFIp8IFMz nhtQwyjwLL3Jk2HceZgGKkxTZKy7DyQ39vmOsTTl1eKLT9AVgiaMRpO2M8FKagPqWtFa p23vbLN7kS6fZyZjMQjfwfeB7mF+xZmuSNE0oT2JrGUBydnR1W5tNTIXd33MXV/lR5wZ gmMw== X-Forwarded-Encrypted: i=1; AJvYcCVnWRUhbSOeYNtBimz6SijsUoo1lPyfv8/OkaFlGvtIJ+k4cMirRZuiBey7RxdjAAI40NmfPFj6AO5mvkdPbmlQpmDenqfCfVU68Vfwlj8qeFmxfRc= X-Gm-Message-State: AOJu0YyblG3jfDZcpkNX0FrLZeSNLx6jxcIiUj/AJ9mjPAwTD+lur6eW 44+6OvxbOHLnePE/faLxjDduQ8RWL/DZj56F+5QVbkTwJSE8M/5WPLns4YSr1w0= X-Google-Smtp-Source: AGHT+IGdDT8jIaqfwHSd4jCsuylmV/YWlg71WG2lfw6K9e3FV4X+drTEDU0GFqSOCs5IcXpk4rI+eQ== X-Received: by 2002:a05:600c:35c5:b0:426:61af:e1d6 with SMTP id 5b1f17b1804b1-427ba6fa0d1mr12677545e9.29.1721125845829; Tue, 16 Jul 2024 03:30:45 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.171]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427a5e77488sm121546145e9.9.2024.07.16.03.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 03:30:45 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alexandre.belloni@bootlin.com, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v2 06/11] arm64: dts: renesas: r9a08g045: Add VBATTB node Date: Tue, 16 Jul 2024 13:30:20 +0300 Message-Id: <20240716103025.1198495-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240716103025.1198495-1-claudiu.beznea.uj@bp.renesas.com> References: <20240716103025.1198495-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-20240716_033047_755109_5E2A0457 X-CRM114-Status: GOOD ( 11.17 ) 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 --- 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 | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index 0d5c47a65e46..78b4e088a3a5 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -72,6 +72,30 @@ scif0: serial@1004b800 { status = "disabled"; }; + vbattb: vbattb@1005c000 { + compatible = "renesas,r9a08g045-vbattb"; + reg = <0 0x1005c000 0 0x1000>; + ranges = <0 0 0 0x1005c000 0 0x1000>; + interrupts = ; + interrupt-names = "tampdi"; + clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>; + clock-names = "bclk"; + power-domains = <&cpg>; + resets = <&cpg R9A08G045_VBAT_BRESETN>; + #address-cells = <2>; + #size-cells = <2>; + status = "disabled"; + + vbattclk: clock-controller@1c { + compatible = "renesas,r9a08g045-vbattb-clk"; + reg = <0 0x1c 0 0x10>; + clocks = <&vbattb_xtal>; + clock-names = "xin"; + #clock-cells = <0>; + status = "disabled"; + }; + }; + cpg: clock-controller@11010000 { compatible = "renesas,r9a08g045-cpg"; reg = <0 0x11010000 0 0x10000>; @@ -299,4 +323,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>; + }; };