From patchwork Fri Jun 14 07:19:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13697974 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 D7A9BC27C77 for ; Fri, 14 Jun 2024 07:20:52 +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=kXKVp/I1qd30TXm2YU7BrLpdhU1oFUuJMaRiNvsEfzg=; b=CIY81Rc38DPXmDOtdvCKV7uEnK UQz7O9Ozo35fKH5IlpuPlXTzBiBcQVvfgpwQMoxw5OcMQPjUq+EPRlfAWujIoMJAmSDn/SrA3ssKy 2QR5dKA4PBWStsPXO1tXudvp8CWZwEp5Twu6ay2F5r/wAdh4jCR3qMnUFRDD2bGb21uP0C+MZ1UFd 3SSVkbOfUgXDORaLHvFst5WC2UnvDjepMuSgIL+BtWO86kdJPStg9P/qV7gsaUjn9zQGyHSFpW6T2 +Dlyy1w/1DzdUGSefgxxX2REekOjGbMIyiE2m7SE73oWQvGxC2FRCtzmLP/DRMszXJKaHs8lukU+7 V30AGn0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1Ek-00000001jpy-1Hrg; Fri, 14 Jun 2024 07:20:38 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1EH-00000001jWI-3Ogv for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2024 07:20:13 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-421820fc26dso15971775e9.2 for ; Fri, 14 Jun 2024 00:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1718349606; x=1718954406; 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=kXKVp/I1qd30TXm2YU7BrLpdhU1oFUuJMaRiNvsEfzg=; b=KHtzJ6lq7SQy9HjJ+wVo6HHf+30QRSRTwSyt4cw3XldKzd/nU4rL9NtYoB1IA4XYn/ NqGqi6lTQVTOjlfW3EMzXG/oeBP28eAQ5tgNHbxk5PWmoLOh5XfL8GW5J+VwB2LHhpJn c0Bb2/tFxG00PWblT1e7yvLGi9a7rF5wtmnAXK2/O5wgR2q6e70vCzDWES+snMo7KEXh RSwHKvOkUZOiIcZcYIFDYwX6lmZ/c2PcCi/bl8eE7gJSadddzLNKyw1UeUllOPwLpxwQ ozjez9fwcTlu7yvf5j6YeMYyYgaE5LIZbeb/XJ4CLsFMPZd1uKYZ+fG9dDoTl+V7MqYq iLTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718349606; x=1718954406; 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=kXKVp/I1qd30TXm2YU7BrLpdhU1oFUuJMaRiNvsEfzg=; b=WLsucaIGA79ghs7rNX4eyn2xF2xpxTKlPflDx6JBxvZCmG4d9nlanlo3k6D/CmRTB3 0/MYVf0ST5KDUKZzAZMb6fp52lRLfZS1vezzfL6AflW9Obr/xlqe9CnLK352QslwpYJS d8GKa4chGJp1Mq4dFihASc3BS6zOmenF2toamk9MdGMXWdFxi/OW8h0hFbjgBEH8GxzO znV7c6IMTgX/IDWcExTF33FBqlKq/vOTInL5WSmN7cXGIwgjrM8Vpc3r5xpVkz17BYHJ sJRXldctk27cn014kj/67Th+F3yrM/4JXXFa88kmJhYnVUKb/Mo43XRoiIQ5fcdigS77 /vyg== X-Forwarded-Encrypted: i=1; AJvYcCVCQPDJX5VqK982C9dzh/rpbL5N/bYcJmOxHAKmEPyHy/hb0MJH6gMEHLT1WQuitmanyYH12WMN2vkUgTifxDvFNzsx5DEeffXdho6OXf0EM/Te0/M= X-Gm-Message-State: AOJu0Yyj6N6m+A3gi4cz43mKvt0eGUkl82j2HuUkCJTSvPp1FV6XtKd0 mKuIbdiPAtChvCvXI33fuEyDD7sHQhqWK5KVFBa8t4zfhl0u56a3y7jhca2C74w= X-Google-Smtp-Source: AGHT+IELHWn4BzKIGJx3SJDAu+6lh0yAH4ZMV9I9BhoPMupkp0AFTyAryhX00A34g6cHm0AlspWEVA== X-Received: by 2002:a05:600c:358d:b0:422:683b:df4d with SMTP id 5b1f17b1804b1-4230481a008mr16406855e9.8.1718349601911; Fri, 14 Jun 2024 00:20:01 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.189]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42286eef9eesm87272555e9.9.2024.06.14.00.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:20:01 -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, lee@kernel.org, alexandre.belloni@bootlin.com, magnus.damm@gmail.com 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 07/12] arm64: dts: renesas: r9a08g045: Add VBATTB node Date: Fri, 14 Jun 2024 10:19:27 +0300 Message-Id: <20240614071932.1014067-8-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240614071932.1014067-1-claudiu.beznea.uj@bp.renesas.com> References: <20240614071932.1014067-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-20240614_002010_034501_313B5312 X-CRM114-Status: GOOD ( 10.21 ) 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 --- arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index 2162c247d6de..b7bd2e1f3462 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -72,6 +72,31 @@ scif0: serial@1004b800 { status = "disabled"; }; + vbattb: vbattb@1005c000 { + compatible = "renesas,rzg3s-vbattb", "syscon", "simple-mfd"; + 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,rzg3s-vbattb-clk"; + reg = <0 0x1c 0 0x10>; + clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb_xtal>; + clock-names = "bclk", "vbattb_xtal"; + #clock-cells = <0>; + power-domains = <&cpg>; + status = "disabled"; + }; + }; + cpg: clock-controller@11010000 { compatible = "renesas,r9a08g045-cpg"; reg = <0 0x11010000 0 0x10000>; @@ -296,4 +321,11 @@ timer { <&gic GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, <&gic GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; }; + + vbattb_xtal: vbattb-xtal { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; + }; };