From mboxrd@z Thu Jan 1 00:00:00 1970 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 7C2A4C27C6E for ; Mon, 17 Jun 2024 07:03:13 +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: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=z9u5RgFlaJzJI59pGIkMpx9evCqFOfmt+BUqY3LGf4Q=; b=JHOPPaS8FYY8sg1pLE+iXdosYe DvowTXXHvXMo6yUkifyG92y+wkftmmIFk35C9RiQ8RZxZCUFr52jB66ZDI46+ciAroT2RfTxgTYcp DqNxDUXck2ey3x5Axe4lOSKcsl3Ud4vL+fIU5XWS3q6v5ou96dgiVGG+lAHc7vj5X8iy8hX2zD1rh zkAws1rWsQJm8vUGRyO1LY4mNJPJZaqXOJv6S7025swrtebZpHvL3BWfBz5YeO7oe/30IUm0XGryU 3rENUYavie7+oGhF5BZH3+QPpl4d7TPYpo3y9GlPZDwJ0IxyMl9hEyP3yaKhhv5jjPI8yjd59Behd 3fpRciug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6OI-00000009Wkf-1VD6; Mon, 17 Jun 2024 07:02:58 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6OE-00000009WiF-0CYT for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2024 07:02:56 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-57a30dbdb7fso6793026a12.3 for ; Mon, 17 Jun 2024 00:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1718607770; x=1719212570; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=z9u5RgFlaJzJI59pGIkMpx9evCqFOfmt+BUqY3LGf4Q=; b=NzLBW7Ry/7PnYb8iiKb+Ugl0lo9c6FC2eGF1wxSyaiCD4cV7t+jW4ITlha3eGlDb94 Nju2w520BUj/9dYCx2fEkS74OVA4amDAm/Evjx8S25rDmlTipJJTvfiEZWnsKXLyUZJe dCcJnzlzSqMS94xZw/DxU/aiSmWh95845yU6KYijEPiRzVKLEaO50M7kCkgWYmMHHZMy R31T3XyQV0wp6/1EsPC1BdR/I/yBMvXQUCTOK6NNjl9K4PZsIE2eabkd+hydx9jqgQxW ASCLjRxLY/QbHXruNXEoEKLQv+o7E4hU6l4w/7hOcbJXyYFvo6985KdH8qy4u0zfEoE2 +mbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718607770; x=1719212570; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z9u5RgFlaJzJI59pGIkMpx9evCqFOfmt+BUqY3LGf4Q=; b=ixycvPviK6ZdS+QkK42JYCOhMwvIaepAlquMq/pfMtvfyRROItXaPtRtxgtAMfA2N0 w127B/lVUn3PSWHjo2r/1kZapMRxoWa1PQxfwSjLEywc0g5MN6aMZKS0KyRmTmGpzrnD uYcCJzM0V/1Lnk5ZW7shKGmzei9lMjRn/HpgUcWr7tkLYEnlLNSOVCTBgdktfkOHsgvW P40MK0LdeYxMr5+pZgNd0+LRkFVTq2c7PTKobzsDL7KJi9SLDkrvORjvHItDpDZa/4wK BGba5ZnxZiGg6gDvEBIvPV9F/iQLdnDOS+Vk3ZUXo8M7O+HQS0gIP4dMD0Is2uTrDpKZ FVvw== X-Forwarded-Encrypted: i=1; AJvYcCXx1ykq01esMlekvPxZhz5qJrvSrhyuyRY1fnVzhAJuvVdTYgymZ7u73oS4cobaJt1AIsKGlbabsKhBSpjflkmWAVzLpcS5xCEcXZD0hW0P19ErjzQ= X-Gm-Message-State: AOJu0YzLJsHxwu92uOmecQQR+h3zh7+UiIWzLbGmTlgwkzWC5IhsjIE9 exAmq+JJAj7nnksYrdmZy0k0KIzUTQ0XylS63KfqokoR7KHVCjtCfw0gwpy7a7Q= X-Google-Smtp-Source: AGHT+IG+pcKbD9FHXOBzC2Vl0cLGum5HEC0ycJQ5ARdqsW469VQEuDJs55UUPa0z1vAk4z7J+hn3+A== X-Received: by 2002:a50:ccd9:0:b0:57c:6740:f47c with SMTP id 4fb4d7f45d1cf-57cbd69c7e9mr5872718a12.27.1718607769728; Mon, 17 Jun 2024 00:02:49 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.189]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb72da785sm5972959a12.28.2024.06.17.00.02.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jun 2024 00:02:49 -0700 (PDT) Message-ID: <3d9ed0ec-ca9a-45b4-a633-8f7051d13cff@tuxon.dev> Date: Mon, 17 Jun 2024 10:02:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/12] dt-bindings: clock: renesas,rzg3s-vbattb-clk: Document the VBATTB clock driver Content-Language: en-US To: Conor Dooley Cc: 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, 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 References: <20240614071932.1014067-1-claudiu.beznea.uj@bp.renesas.com> <20240614071932.1014067-3-claudiu.beznea.uj@bp.renesas.com> <20240615-angler-occupier-6188a3187655@spud> From: claudiu beznea In-Reply-To: <20240615-angler-occupier-6188a3187655@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_000254_264877_55AFC4D7 X-CRM114-Status: GOOD ( 15.20 ) 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 On 15.06.2024 15:17, Conor Dooley wrote: > On Fri, Jun 14, 2024 at 10:19:22AM +0300, Claudiu wrote: >> From: Claudiu Beznea >> >> The VBATTB IP of the Renesas RZ/G3S SoC controls the clock that feeds >> the RTC and the tamper detector. Add documentation for the VBATTB clock >> driver. >> >> Signed-off-by: Claudiu Beznea >> --- >> .../clock/renesas,rzg3s-vbattb-clk.yaml | 90 +++++++++++++++++++ >> 1 file changed, 90 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/clock/renesas,rzg3s-vbattb-clk.yaml >> >> diff --git a/Documentation/devicetree/bindings/clock/renesas,rzg3s-vbattb-clk.yaml b/Documentation/devicetree/bindings/clock/renesas,rzg3s-vbattb-clk.yaml >> new file mode 100644 >> index 000000000000..ef52a0c0f874 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/clock/renesas,rzg3s-vbattb-clk.yaml >> @@ -0,0 +1,90 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/clock/renesas,rzg3s-vbattb-clk.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Renesas VBATTB clock >> + >> +maintainers: >> + - Claudiu Beznea >> + >> +description: >> + Renesas VBATTB module is an always on powered module (backed by battery) which >> + generates a clock (VBATTCLK). This clocks feeds the RTC and the tamper detector >> + modules. >> + >> +properties: >> + compatible: >> + const: renesas,rzg3s-vbattb-clk >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: VBATTB module clock >> + - description: VBATTB input xtal >> + >> + clock-names: >> + items: >> + - const: bclk >> + - const: vbattb_xtal >> + >> + '#clock-cells': >> + const: 0 >> + >> + power-domains: >> + maxItems: 1 >> + >> + renesas,vbattb-load-nanofarads: >> + description: load capacitance of the on board xtal >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [ 4000, 7000, 9000, 12500 ] >> + >> + renesas,vbattb-osc-bypass: >> + description: set when external clock is connected to RTXOUT pin >> + type: boolean > > When you say "external clock", is that an input or an output? I took that statement from the HW manual. As of the HW manual [1], table 42.2, that would be an input. [1] https://www.renesas.com/us/en/products/microcontrollers-microprocessors/rz-mpus/rzg3s-general-purpose-microprocessors-single-core-arm-cortex-a55-11-ghz-cpu-and-dual-core-cortex-m33-250