From patchwork Fri Jun 14 07:19:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13697969 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 83C03C27C6E for ; Fri, 14 Jun 2024 07:20:15 +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=0QxVauz5TNvVTL0OezLmGuAsp2A+orwd7NL8d9jK5so=; b=hqylFFk/ewHMUOllm8Ff9/jHs+ 2XFtPwZSIOtyt/dOzjSGoOJ4709n4NYh1JQj3U3C3IGHpvCQj7xnaQKXUtbCwS2WNMQLnCuQsCp6P qui1bYh9fWfAoaxBbC2pfqUDXe6deeBlp2zjgTnCrpiTxZCpcFrMcvFZ4PFrUccOsUkVZcXjacZvi VnjHVHS1grddbDRTaSR37ze/pMur9bBzS/TrHLvnlcSwYW9d7hywcW1CHNvPosZVHgjelNbZ/aFoU YJ5EbXqCnTwKmD+cQY5joPnRjo/OXvA2bq4WmadUkKs2MKdXZagUVEOSN8ux+ZZohxJHTzSUBtUMi rcaZ6xag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1EB-00000001jSm-0wiu; Fri, 14 Jun 2024 07:20:03 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI1E2-00000001jOd-1lKb for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2024 07:19:56 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42278f3aea4so18218965e9.1 for ; Fri, 14 Jun 2024 00:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1718349593; x=1718954393; 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=0QxVauz5TNvVTL0OezLmGuAsp2A+orwd7NL8d9jK5so=; b=AoBUT19ZNdp6jp5ieuzVO0jMlMG6RUN8q3Zr+YxrO6BqyBX3o2o0qz/rOZqOerMqnG g0H9fy2csUwtKTUkUSQHNmqdjgZ9PCmTv02XHkvyN3ECcJwUj9Ye2CKcHhY+YG+VdIL5 NbNOq3ZNQQBdCfiOuiQxqNJO+CKjPnTEXSQy4BzmH8cck1In/C89/pcPdIFuZg43lOvg Fy+LBuQRM8fIk+H4KEon4S8jxz3JHyqxyBuh6G/5Z4br0GCeRQvum/Uj7WhApuRlfict YfU3YQPjOqkR8br5lxJzw/5pz5PkMQv2m7FngbfEB4za8yzHKG/oMzJzClCB4baiLrDe slBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718349593; x=1718954393; 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=0QxVauz5TNvVTL0OezLmGuAsp2A+orwd7NL8d9jK5so=; b=X0fAd+Cive+XKAgG5GokwVAjTHtge5jaIKzyiJ5g5aCR2NMVXRpB8mlF0ovWnhNHy+ bpF5eN6XSGaM9SmC10Gu5lwlN7ADOMABHL7MXOoJ1ITD1T0Fdts1281j5X3xqPeWcv01 1SjEi8fkWxXFik7DlLFAWTysy7+oza++Hj3oyrnWFpR+IeYAcD0STQhA7Z6d2e//1E7c yWr79yNd994lh1/PjB16jI+97IT+wrdH5VQ96uEiJYcm/T0/6nmV6u0VZqZnGYiXVgy4 zchDextqKtPARGVOItaGaXUbmBmmz0xurVNgbq7vbNiIbflFEOe1vieHeKN5Y+Dl4vnT juCQ== X-Forwarded-Encrypted: i=1; AJvYcCVWobfG0kOyJ3k6rMh3s25/NVX+etKS8Nx2AsH08HwiqZAy+DGupsdDDvG1VmUF50shv0nDKdOUyJbwRhs3IbBfR9J8y98SPt6XoLmeHZ1gcHPaMSc= X-Gm-Message-State: AOJu0YxqfYEgIH2AAgNRmG221Fv6xq/j//cpGaDLQfnwXjlJtF6S6+RY Vjwd61UKfZOJfmFGz+2/lQ1JKCD9+M7/Z1uX7OiRvH2eE3veE8cAL8EdabgbiIs= X-Google-Smtp-Source: AGHT+IHfNR5m5jzi7MF01qpnq6BgN03DUzSf3nrX7ojdPohOqwLKv2aANGZR0DxpHv7c1Ds1ipc1mw== X-Received: by 2002:a05:600c:3587:b0:422:5c5d:1b92 with SMTP id 5b1f17b1804b1-4230482272fmr17219395e9.3.1718349592694; Fri, 14 Jun 2024 00:19:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:19:52 -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 02/12] dt-bindings: clock: renesas,rzg3s-vbattb-clk: Document the VBATTB clock driver Date: Fri, 14 Jun 2024 10:19:22 +0300 Message-Id: <20240614071932.1014067-3-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_001954_488261_774B3F07 X-CRM114-Status: GOOD ( 14.43 ) 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 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 + +required: + - compatible + - reg + - clocks + - clock-names + - power-domains + - '#clock-cells' + - renesas,vbattb-load-nanofarads + +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"; + }; + }; + +...