From patchwork Tue Jul 16 10:30:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13734277 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 56070C3DA59 for ; Tue, 16 Jul 2024 10:32:24 +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=DutJfFYyPW6LbOov2zw2hBuFnpsIDvuTXHPgZwrrhHw=; b=nPwSQAWlKztaX92ysMy/7gmSDT dwWVGRyIfFy5BecimelgYril5AC13cRP4GhVLZHLPKj4H5t6khHsEXXQHd9A3x5xHGGreD8frp5nt d6NY8dZAegT5EUpCmRnbz94UlFpoMsB2R1+PrF07PlgBOJEsHN5YP7TCuydv2sT8bX6U71cfql2ec dBTxEfhrb1VQ+NwSlm6cEE1VWpx0EDAooddMuC0zF0PSS5k5qpzXtjHsr4xL+8ZiePmJcQU8TuIRB 1NccPsO1yN9uCHFHc5LXE4yJ2xAcyp3S7iD+knheP9FovhobQw5kCv05wJ+gcKwkIHs+omAHejy0J zKqqUj9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTfTh-0000000A34b-0uGB; Tue, 16 Jul 2024 10:32:13 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTfSG-0000000A2Rt-22Ni for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 10:30:46 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-367a9ab4d81so3235532f8f.1 for ; Tue, 16 Jul 2024 03:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1721125842; x=1721730642; 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=DutJfFYyPW6LbOov2zw2hBuFnpsIDvuTXHPgZwrrhHw=; b=fR9Dv4F8bGA+iTzHe25CdF8rbvgadByREFApXpLAuilokQw5z24S6TVbla+jDg4fs2 HMaGyufVugMbozkxtoAWy5RrTp+zqjV7rVtzRuydyi2P9QEf0y6iXPc01gXhgEDSDwcr eLbTZB+MPmGYaaC1mmR2xvI6IrAHr8VeP4GxYMYnFhDRIrkdLlgT6tJMAMqwh4iF6uDA 4BeZkS5YNjBoGllJ9AC6Q/LMPqRDhjqvo/qeI55DBzbTtA/0jogGFTGu+8D6DMZVx8Qx TD4ZL5IiMz8DtHwKD484dKNahznNo1d5kyfYkCUgCrJf+2nqMmKJhWyuy/aSpGTk9Ade E6ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721125842; x=1721730642; 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=DutJfFYyPW6LbOov2zw2hBuFnpsIDvuTXHPgZwrrhHw=; b=Ve7lVdh4Z5S2KvMo3jnapK/CDa0h67thRkgkXYglsX6Y3eoXNkzNtMGilXRjKkVW7p AjyftiDcExNCBCfqogUtOOU0qtzHEEFfCgVB4C4v0c3IYKkcXADVtdufa4M/mC0UNKax TQHsKx559J2I/zwL3wO+yFWtWNGzsYKNDiHJuDiB4ImNF+QJtqtl2uHD1BbFaXiEZrGV XrC+y88tPhcoVfG2sXx7UUg99vqJcJp5C1BFiMJFXiUHzylQrWPzmYM6MPQqFQXqAaTE /aWCua2WFLtpMnlZx/oJ3AKQVUiJERXYPRJpX3y4Kg0v3IKONCjQnck1/ufdnB3OIt65 nYgA== X-Forwarded-Encrypted: i=1; AJvYcCWpY0/FbN+lYJlviDw1c4SbqGL+++kwn8mWGwvHFh+ftJbZVj+YjYZEcasph/1/qzpqn0RaxAS5B9dgWxbHrxS/Wpebflpm1WHqyKorUARZsJPKhRY= X-Gm-Message-State: AOJu0Yzj0Noqp1YxyqL/f6FTNclgUIa7x8TBOZlNj+uSW0mjehfKpoU5 qOLSQfVfOhqF6XMi/vrK+pWYuHr/vjKMafxH9NAToZqL3A7d20aV8A92LK8xi30= X-Google-Smtp-Source: AGHT+IFU3cDQXFUWCvhj2jbJm95VoDDyWAcY2PCPxU3FwC7xwW2+LqlxWB/VeBVZJ81bc0MyLsa17w== X-Received: by 2002:a5d:6487:0:b0:367:91d8:a1d2 with SMTP id ffacd0b85a97d-3682614a8a8mr1354950f8f.30.1721125842490; Tue, 16 Jul 2024 03:30:42 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.171]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427a5e77488sm121546145e9.9.2024.07.16.03.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 03:30:42 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alexandre.belloni@bootlin.com, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v2 04/11] dt-bindings: rtc: renesas,rzg3s-rtc: Document the Renesas RTCA-3 IP Date: Tue, 16 Jul 2024 13:30:18 +0300 Message-Id: <20240716103025.1198495-5-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240716103025.1198495-1-claudiu.beznea.uj@bp.renesas.com> References: <20240716103025.1198495-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-20240716_033044_618195_DA9C313F X-CRM114-Status: GOOD ( 15.53 ) 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 Document the RTC IP (RTCA-3) available on the Renesas RZ/G3S SoC. The RTC IP available on Renesas RZ/V2H is almost identical with the one found on Renesas RZ/G3S (it misses the time capture functionality which is not yet implemented on proposed driver). For this, added also a generic compatible that will be used at the moment as fallback for both RZ/G3S and RZ/V2H. Signed-off-by: Claudiu Beznea Reviewed-by: Conor Dooley --- Changes in v2: - updated patch description and title - included reference to rtc.yaml - updated compatible list with a generic compatible as explained in patch description; with this the node in examples section has also been updated - used items to describe interrupts, interrupt-names, clock, clock-names - updated title section .../bindings/rtc/renesas,rz-rtca3.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml diff --git a/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml b/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml new file mode 100644 index 000000000000..21f104b1e86b --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/renesas,rz-rtca3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RTCA-3 Real Time Clock + +maintainers: + - Claudiu Beznea + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a08g045-rtca3 # RZ/G3S + - const: renesas,rz-rtca3 + + reg: + maxItems: 1 + + interrupts: + items: + - description: Alarm interrupt + - description: Periodic interrupt + - description: Carry interrupt + + interrupt-names: + items: + - const: alarm + - const: period + - const: carry + + clocks: + items: + - description: RTC counter clock + + clock-names: + items: + - const: counter + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + rtc@1004ec00 { + compatible = "renesas,r9a08g045-rtca3", "renesas,rz-rtca3"; + reg = <0x1004ec00 0x400>; + interrupts = , + , + ; + interrupt-names = "alarm", "period", "carry"; + clocks = <&vbattclk>; + clock-names = "counter"; + };