From patchwork Fri Jun 14 07:19:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13697970 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 9C473C27C7B for ; Fri, 14 Jun 2024 07:20:17 +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=Ixl009mBesNeSDDCyc0T/56E+aCT/BvPofzaYSLxjQA=; b=jYzOJvBxmkrLZFD0pVxioUrNz8 2TRLNZ/eAGwcNoVSt5GLKdHegZZ/80gQzvJ0HfQyx+geU8cKyvry0YBHz5qh83TmPgbyq8beeF5Ay c//IcsSy9bwNgAw3azpxg9TafYn26UK6EDU14seiTAkfGzOVxLjl1eIDv/uo2tR68GBCvcJdtNc94 KuDmFRGjoFOvpBaKqOz7Lv+1jnhXC9Q9B2WRvA1CLC6gwBgH1PCdHgAXjiJm4BDK4arnIGqTI7yaL kGBoBPs7UiuMeZqEFwDtsLPg6OHwCSQcMpl2NxD81I9I6Jd75J7aS1oSCAYSBVGY3Bj0J2rYWg7QB pmdIDcgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1EC-00000001jTy-15Yg; Fri, 14 Jun 2024 07:20:04 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1E4-00000001jPI-19Pk for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2024 07:19:57 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso21133481fa.3 for ; Fri, 14 Jun 2024 00:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1718349594; x=1718954394; 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=Ixl009mBesNeSDDCyc0T/56E+aCT/BvPofzaYSLxjQA=; b=bdO8XPJpP2wcHYsg07i205lnCs8c6/VLoEri5D5M3dIDnZ4xYHQ+80CPuxsZnFeUCl 83d7lEzXlN4S46Rge79kWAwUBLO5vkFYyHHQfQkC16PWui9SQWlBmZqOIzHjy+TWTkOw /Pd+6Yjgo62OGFaDc1NTs0dwtRX2rSz4rye3XW3CY1VmZs3GfZp4CZdNvQaL2p0PvRH1 nA0VKoZdcRrEh2uDbvGeLWKj3YYEPFU0dVpBnSEcK6oAwcVz2qiNXKGXK1Xvqt+BY7e8 bL1YrAWGfusGrwhU4X9+/qvkBbmcv0yE5OWnunyA8Cd3Pv3G4HL/MgHIM3caosFWgnhn Ad2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718349594; x=1718954394; 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=Ixl009mBesNeSDDCyc0T/56E+aCT/BvPofzaYSLxjQA=; b=AoueJ3O44prbP8lGgkjpqcAsBF6DuYVwjwOYfiUaQEJIBOyxxG860nGOrmG0/opfHG 7iOjt37GCh8h9s2fDGvT2aztxCwlfne/qajOFGSdEsMoTo0nTuHoKJtd2bZHVK6c4reF AP14Vm6euqHJO2+yh8pr6Gj1P0Qtb5BBUcExYxcm0Ekbhd7nvcjnRKUBCU6WGlwWXbXE iCn0xX8/8iJxIzyypmUhbuQkyqZhDaKkN5zHbPmycahZ8DytkMKPP2Z7e+KxKh7Qz5/T rdW52Gjy9mkVhQ8aplOW1/NIlYlbotwxHHU95jX3J2aRs4gKSbs2DoM9fY6OJ2jWGknY ijSQ== X-Forwarded-Encrypted: i=1; AJvYcCWuhWsEvNC77Om8A56GnDe5qVwJk+dkkAhhSHSCnOPd7+66NkimiWw1r0/JEw0dTn4WUmKb6fUXgkvwM2ONvZScH7iOy+NPT2Vt22/NodTMZ6wbxz4= X-Gm-Message-State: AOJu0YzJWfomDKqX+Xy+Jnt2qP2mwqt2ou6Y1Fdy70NTwKWMWKkNeSOu SmJkKhs96ST1i6mnMixTDsIWV+SZsbUeUsEGAGulow9pKSU2gaucMaU6ZJj1nGc= X-Google-Smtp-Source: AGHT+IFQvvveENgINLJWrLT4M0WKErWAJthxs4nbH1m2OyDevlrK0F+sl7H/gjqurZRQ2TaLMWaqNw== X-Received: by 2002:a2e:b165:0:b0:2ec:1a8b:c379 with SMTP id 38308e7fff4ca-2ec1a8bc51bmr1997811fa.45.1718349594527; Fri, 14 Jun 2024 00:19:54 -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.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:19:53 -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 03/12] dt-bindings: mfd: renesas,rzg3s-vbattb: Document VBATTB Date: Fri, 14 Jun 2024 10:19:23 +0300 Message-Id: <20240614071932.1014067-4-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_001956_404158_62D42E2E X-CRM114-Status: GOOD ( 13.71 ) 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 The VBATTB IP of the Renesas RZ/G3S SoC controls the clock for RTC, the tamper detector and a small general usage memory of 128B. Add documentation for it. Signed-off-by: Claudiu Beznea --- .../bindings/mfd/renesas,rzg3s-vbattb.yaml | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzg3s-vbattb.yaml diff --git a/Documentation/devicetree/bindings/mfd/renesas,rzg3s-vbattb.yaml b/Documentation/devicetree/bindings/mfd/renesas,rzg3s-vbattb.yaml new file mode 100644 index 000000000000..c0259e557dc5 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/renesas,rzg3s-vbattb.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/renesas,rzg3s-vbattb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas Battery Backup Function (VBATTB) + +description: + Renesas VBATTB is a module which controls the RTC clock (VBATTCLK), tamper + detection logic and a small general usage memory (128B). + +maintainers: + - Claudiu Beznea + +properties: + compatible: + items: + - const: renesas,rzg3s-vbattb + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + ranges: true + + interrupts: + maxItems: 1 + + interrupt-names: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + '#address-cells': + const: 2 + + '#size-cells': + const: 2 + +patternProperties: + "^clock-controller@[0-9a-f]+$": + $ref: /schemas/clock/renesas,rzg3s-vbattb-clk.yaml# + description: VBATTCLK clock + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - power-domains + - resets + +additionalProperties: false + +examples: + - | + #include + #include + + vbattb: vbattb@1005c000 { + compatible = "renesas,rzg3s-vbattb", "syscon", "simple-mfd"; + reg = <0x1005c000 0x1000>; + ranges = <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"; + }; + }; + +...