From patchwork Sat Oct 19 08:47:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13842635 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 D1474D3C904 for ; Sat, 19 Oct 2024 09:04:44 +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=w4OL4boJT/2hL4Oh+ceYHE7eZzRVFhBoQ6Np4j2BgTU=; b=zi1Y2AiM/JQOkipk035KteauMH mcf2q8/tPX5wwUccvjnjHk0J0peSKRVQxbmXozq0fl6jEqILq9AEWXI8YBsPN6Jqq121nreMqIioz 4i70HqkWYGgYN1pfXIlCC2Yfup2HAjou0Ciql8aJ1WgV6qTFOqxkFBWBMh/pGp3O4QOKhnnAz6S+d GWXKaiftHt18GxWXd4h8jAiRA8moHSuMEhVyl2Hytt3JTGwmKiDbhb+R04iLeEZMWC2Uy85UKJ7FM UJwpBl7B6bVp5cqT6d1B/5SgJNUKU2BRaqoLtecKKjogwdMt64mY6RGANyqgN8p9kb/U223/tS5/Q oB6LdZiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t25Nz-00000002wEk-2FzA; Sat, 19 Oct 2024 09:04:35 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2586-00000002s7z-3SuH for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 08:48:12 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4315e62afe0so23146325e9.1 for ; Sat, 19 Oct 2024 01:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1729327689; x=1729932489; 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=w4OL4boJT/2hL4Oh+ceYHE7eZzRVFhBoQ6Np4j2BgTU=; b=RnNh5l7ZnAK+gzkf3fn6yOxYizkSz+8ctgq/po6TVvcWNiZE0pbjBWawkDU+nRyPJX RnSVNa8/dS+Ww1mejMs8f2pGEvqZYJnblL14fR0fPjbwPkgu0xFAPLqB97p9LgYVfkxp glhoVTOqpD9wANp3cL0uwb5DxQ9TwhMR3mRx50yL+EbOGJAqk8dvw8ck6Xtpall9O4MH 22lGIMGponsjEZp6qH8yuBwIPxQBZUSVbWXIx4sePdN6jsUc54liGRVcv2CP4zEUZORA sjI2boc+ES9QHiS9WTHcc2kxfLmCBj7byEXc/FsnS7U79xVmCJhKB/50pIq2RJWkdnlo UsSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729327689; x=1729932489; 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=w4OL4boJT/2hL4Oh+ceYHE7eZzRVFhBoQ6Np4j2BgTU=; b=dykrdfXqH7Aar0hPTfi+okqJVr5Els4PXJMq+77LU4LD8p2R0RWfiOtxfxKRGXUUFn XV4Be/m1sfO7kEdNLD+UoXdVBFavpqvfMOilcN1Lz2nY/KpAIse85I2+7w6oGrlTR5hZ LuTjuMXLXnS0mpoAQRQsPtkpaxXKSMjpr6OKRMk/VG4TMICtHxMyXPQ4C/tFLEfuQtHE wL/93A3k6Bp6zXdRbIkJezSmexO50Qfj4aapm54eTWT//YWqRTPZolLzLBxTyLH12dH8 qiYutKbtu9EmEmT8D45pjuj3bYaF0coJNWKq933BreARJCdLyw+7vAHsKHFlpgoyL9/6 s8xQ== X-Forwarded-Encrypted: i=1; AJvYcCVJXRsYgvyMCOSkVZCNg6P+S514MAm8mtSCbBpOfvMzWnd0qahrGHxxsaJNfRsz8qyn+pDvqHu2gezAtO9YY3Am@lists.infradead.org X-Gm-Message-State: AOJu0YzK/7G4SOQL/gnUFttto3fG8egEaVByAE2C5OBgF90nHeG37Apc pAqQH2yQtUOFIhPqzJtJyIH6oYJaRARIzp4MH8lyTDUij/2fOhQJ+xAerzV0cTQ= X-Google-Smtp-Source: AGHT+IGuwNzhPfqAHFLa3fosifp/I0jtRbEAeCuSIqQl7cObyIUSv6yK/EkVUXdr3J1GxmE8+2J+NA== X-Received: by 2002:a05:600c:8719:b0:42c:ba83:3f0e with SMTP id 5b1f17b1804b1-431616331ddmr38040205e9.7.1729327688555; Sat, 19 Oct 2024 01:48:08 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 01:48:07 -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 10/12] arm64: dts: renesas: rzg3s-smarc-som: Enable VBATTB Date: Sat, 19 Oct 2024 11:47:36 +0300 Message-Id: <20241019084738.3370489-11-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_014810_899169_EA0E762E X-CRM114-Status: GOOD ( 10.69 ) 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 Enable the VBATTB controller. It provides the clock for RTC. Reviewed-by: Geert Uytterhoeven Signed-off-by: Claudiu Beznea --- Changes in v4: - added assigned-clocks, assigned-clock-parents properties - set vbattb_xtal status = "okay" - collected tags Changes in v3: - updated patch description - dropped vbattclk - added renesas,vbattb-load-nanofarads on vbattb - moved vbattb before vbattb_xtal Changes in v2: - none arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi index 21bfa4e03972..6be0ffdcb87e 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi @@ -5,6 +5,7 @@ * Copyright (C) 2023 Renesas Electronics Corp. */ +#include #include #include @@ -346,6 +347,18 @@ mux { }; }; +&vbattb { + assigned-clocks = <&vbattb VBATTB_MUX>; + assigned-clock-parents = <&vbattb VBATTB_XC>; + quartz-load-femtofarads = <12500>; + status = "okay"; +}; + +&vbattb_xtal { + clock-frequency = <32768>; + status = "okay"; +}; + &wdt0 { timeout-sec = <60>; status = "okay";