Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp633338lqs; Fri, 14 Jun 2024 00:20:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0aV3I21wAVNoSp82SUN6ICrHspHUwObZSx4lZNud3wVcUYVerj6iu8Gx8fJKgklinCCaSOKvPed5gv3DWwpNKScATjNdvpU7A2VSlZw== X-Google-Smtp-Source: AGHT+IEQDmVMAP+wmfFxmtyQf8whx4KK2pK7gicIcc15tLDpdXhLxm242PA1reP/hMfkwjeVGjrl X-Received: by 2002:a17:906:6a02:b0:a6e:771a:2a8c with SMTP id a640c23a62f3a-a6f60d2c459mr146948966b.21.1718349619894; Fri, 14 Jun 2024 00:20:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718349619; cv=pass; d=google.com; s=arc-20160816; b=qSAf2rhpk/8MvGpHXKRU4GmYL8/sOkPBDCwwkBMwppp2x9JGMOz0ok6wWfbzcMww9m fzEgN3ZGLupNITDGLQLg8Hnc5g294sxVG7AQyixtMNqPzKPdFvi2435Krc0lRuIZqM2x XjPl/if4mbqLP4a+KamGLMqnTIrr+vAHXa18/sNCvmc6FURVLycp5HeN7iaxaZqcN74D 50WYuIORVTcldvsUvkT0Dwob/9GNrgrjugjZoazoW+QIfPzTrkysvalVh2XljIsBkVo9 BoMbmhOzMBvimVAOIaM9Q/snAGQbtiOfmUTOlATv65W/eocACUqjDU3JjXCtcUF7SbvP s3bA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0QxVauz5TNvVTL0OezLmGuAsp2A+orwd7NL8d9jK5so=; fh=iCYd1ueCS6nZayPARvrmByfYVVSA5LeNaaXTNZoWrr0=; b=z53uvkOoIT+UNXD1TtyPTGA7Tlfxe1PKhn+FiMpHRlfWxuA/UITnOtQV29Wp5bi0WG x1EnVfImjAnYBTN30iV1Wj3bctY7lP0hzbYaV09dTnsx0xowZW0IplPqmx/4qJkf+S5G hdy0ZWiTQKd8DtVay6PdzrrRaK52lQsiHkFND6VaBm/wAyKM9lUN4wDjviYbhFBEKq6c l8lbSGYR2vjv2bfSB4hd+PEsA3gTkt/arYgi2nlaD96D9G+11YRK9Evff+Jg5kEpEyY2 EoNBsCZKgnC0592cwqnEsIjZmpxx++buFgVglnDKKJlj3aDkZLB3mu0Xv33m5b5ztjpf ntfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=ZBMFP19c; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-214434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214434-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e3ca1esi147427666b.890.2024.06.14.00.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=ZBMFP19c; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-214434-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214434-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 71FCB1F25504 for ; Fri, 14 Jun 2024 07:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F361214B094; Fri, 14 Jun 2024 07:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="ZBMFP19c" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BA791474BC for ; Fri, 14 Jun 2024 07:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718349596; cv=none; b=ALPClUzjdCibYS9PY/ku5qR83nPTrvjr6+qcLzWf4N92nymGM1JjCPrSQ5VJa3qSex5GmWkS+FzMLfzQHUH4QlpG4Rq+2RVQwJdjw4rAuwYnd8yC8hk7KZULPuzKskjuSgC7P9npX9TzXPWw8k4G0uIiR8ljG8KzaRmwp0VdCYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718349596; c=relaxed/simple; bh=UnHpqAE/7JWYsoHAOLhzOrWhsGpE0EkoI5ta7RitTbs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZnhZS2ioboAuJn30NyM+SVPVN9FigCqFWrB6GilXllk6qbD5GYCfKvuPk3j//M96tfFPV7co/MK/ZF8UJn+cb6ZSmN9WJ/teu/W02EHGT3i9qiBei8SZNJLSLA1Gm+7SM2g3RkP2HB0APod42QEOjVGAVztygZdBgNnj/Xyu+ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=ZBMFP19c; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42278f3aea4so18218955e9.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=vger.kernel.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=ZBMFP19cYL6u/r0z90ResCKJBrD935QzKDt97RXIk7ksAphHUW3mhwbsB7ie8IXExW 89gxMvn+Td/017Cd3ZnJfVxJhc8Lf3czzUEEYrHzaswMjBZkVh85TF5QhOcG0CvkJ9Dg HPB51h0sUHu7HtCj8NZ6S3CvSrFtlGOV9gchym9B5/q8fg162TVeJgjSvxIeG+IybXFU SZSxbCeeIdzTHlCniKCCzW671oRi7m/GyGUkGd51N2TZpBKV6yI5htVhrdRAIe8v1lcE OHbOSvcGWBU7G8vbhhHP2TXDqJfg0Qjjcw7+oC27xCgBR1jdXpgh5mXfv3RWgFul9/83 xDSg== 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=VGqwB+RSpyVt4L6akTcpflT5xs0nupLY1lHeqvvSTqD6qRMdJP+zZmvrQKGENlEwtW kKSxTUoucIQFH0p4NI2MT5wQvsGsgaBZW4TYn6QIyzbbYzTqt4flnW1kB8QtBILW0kfX 4ghwtP7pOmHc5NxJ/GFZcxi3wqzYlXYj8SRSGZ+zv97hpZywIh8a6k8thWs6fWZkr+KV fvWl2OOHOB36/rMV8WrbmpmkiPwzRpzLUZgwqYhIYujkxcaKmEacPQqwfBaThTzbqybe Ap8T6sIBQ9ez/PL3CtUWqfEM+TsonU7IaSGANMLiGSt4aCSVNNniKBSXpmnr2SX5AKW7 n4jg== X-Forwarded-Encrypted: i=1; AJvYcCXx1MI/wsrE1b1phsmyC/5XDV10KeOe+89BGe4ZAv6ErWw0xvQ8gv50zXtBw2JzwMJRTooJTn7tRyTxpDgmYG+GGiyXbn+210ZvcRBT X-Gm-Message-State: AOJu0YzeBJNFidQ3Mq+R+5ZOQDMlLpa/mZBn1Ei/RqZxm9RR/+WCi7vW fxvN3el/wKPe512jLeQAKhhmsYrL0Bkm200tvUJtEHUVvqgI6u/FsUhOGSSYoac= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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"; + }; + }; + +... -- 2.39.2