From patchwork Sat Oct 19 08:47:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu X-Patchwork-Id: 13842633 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 0F3DAD3C902 for ; Sat, 19 Oct 2024 09:01:48 +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=n76uaOc9JNK30gqBdGs/PkLGDzcsWgIHozNG9uixX7Y=; b=p2GTOF8tIT9Rtt+jdFBVpzuf9Y eIVSxUELyPVssozw0Kz3wYgcgRv2DkeJ7Ff6wuaaB1xPGo1lh3o6GwQsBgTL/kt936oCE6m40Ir+Q rJmepAw0fy/9PDI8DHNndqqAkOYQoPsoJ8veK7Gd8LqdS+XNAF2EgmPYOgeFnGo8+Qfly9FtykbJb zEZXQ+a1iDbWwkb5XaSB2Krkna4Zg9/ixic5RTHNKpZYNrYhBI2YZtgS/bmlvuh+7LSio8+ecmWqO zkgfbofpKV8+nQy1TiJJZ+Cs9qJK0j1kZlqyiaZKMwznalhFL7xe7dnpWAB7Q/agptiBKtyG+9bEl 1gUX7PwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t25L8-00000002vgH-1C1u; Sat, 19 Oct 2024 09:01:38 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2582-00000002s6Z-2dQB for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 08:48:08 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-37d447de11dso2243866f8f.1 for ; Sat, 19 Oct 2024 01:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1729327685; x=1729932485; 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=n76uaOc9JNK30gqBdGs/PkLGDzcsWgIHozNG9uixX7Y=; b=pYgdXEJnf44BBXhrr1YLFmXujfUUWice6UPVmF62cV53qX543MsFqS5m5FZ8yGkbMM AkQUe1YUlgZf6b8efTaNCgjgEhfJBTw9c8cToxX7gFGMbVsw4KYEljCRVfWd6C4RI1g5 uDZPFcTc9dH6/mx5YVbSKYK5wreh3goxip3+Oy3yQbq6eOt3pxBnXz4Ns+0lCk/t5C5J 1JXMoz5LCLCYZ0WcOw+jWPzNA+BkNfyq5G82s7bvdbEsiO58OqgAUEnWiifoSJbh0CF4 7hcwa7XaINaLjd3W0U370nIIgSeWBIaJfcydJGRyqyzZSOuBo/V0eLmAEh4BRVHb1hVm 59Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729327685; x=1729932485; 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=n76uaOc9JNK30gqBdGs/PkLGDzcsWgIHozNG9uixX7Y=; b=GsfAmKQcRSxyqcm0K3syLE74C3GO+lA2GHkkO3StFwcX16RBrbGGCWVYz3ojBtJxsq CxO4YgU85WJzhTHUzi8vJnuroUUWvMvMhdowDaMpaEdCN46VQVH+nIocV79T3BDt/QBI ltbrT68E6MYFRcai0eRYn8eDrZ1OXNW188A7LVigBICVZcwjtp1uVshErpZpZfmAvIhs mlxQmssFk6OYIHnQ/qvvIaNYbOPvc6tiJJzodzRKprF1Xy6zjw5LqwRO/QK8sc1wJ7jj Qz2UD6lkwfFcjCnVmqOkvBw/GNEvk3J0OODIvjPI6zHtUgCY5J3OwKll316RkX9gG9st Iczg== X-Forwarded-Encrypted: i=1; AJvYcCWpwCFqn3mJXEvoIDKn7rJzCb6CCEVCS4ZWhaQ4pL0ZK6MrCPAxjW/iRmwZ0Lii8lBjca2bXN/tg/oS4qUCTMGJ@lists.infradead.org X-Gm-Message-State: AOJu0Yy/nWM0+KrDov/cMjF5QfbWJNRom8dJVEJi1MkLHK3LSOfOg+aX M/Y1wRJLVeRRwMPQz/G/FDNUaWo0Iev0IzI/d2/OPUj2jLuw0z0ttdEJ2ABgno8= X-Google-Smtp-Source: AGHT+IEEpZiPiPfOC3M+a4OKPRdnozREuAvkhWiKYBAZoC4J0fDI95R1gsDCMYp599YKfb8ArETdfQ== X-Received: by 2002:a5d:67cc:0:b0:37d:4cd6:6f2b with SMTP id ffacd0b85a97d-37eab6ec97cmr3930148f8f.14.1729327684650; Sat, 19 Oct 2024 01:48:04 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 01:48:04 -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 08/12] arm64: dts: renesas: r9a08g045: Add VBATTB node Date: Sat, 19 Oct 2024 11:47:34 +0300 Message-Id: <20241019084738.3370489-9-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_014806_711600_E625CD72 X-CRM114-Status: GOOD ( 12.74 ) 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. Reviewed-by: Geert Uytterhoeven Signed-off-by: Claudiu Beznea --- Changes in v4: - used clock-controller for the vbattb node name - move the node near scif0 for ordering - set the vbattb_xtal status as disabled to avoid having it exported in linux with frequency = 0 in boards that don't use it - collected tags 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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index 067a26a66c24..827db9f61802 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -72,6 +72,18 @@ scif0: serial@1004b800 { status = "disabled"; }; + vbattb: clock-controller@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"; + }; + i2c0: i2c@10090000 { compatible = "renesas,riic-r9a08g045", "renesas,riic-r9a09g057"; reg = <0 0x10090000 0 0x400>; @@ -425,4 +437,12 @@ 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>; + status = "disabled"; + }; };