From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) (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 142C13B8950 for ; Thu, 24 Sep 2026 13:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790256150; cv=none; b=M+vBTR9MTX6mzU5JKlDwXjQlyQhpz+THmaiXZMd8lVx4/IZF+2bNYpNPCPRRywes16r76eiZ/k++IUbEMQhC3bUiFkCxUrK/T5VzZCASQVqvgoSuuDt+kAawjUiqOgLStsz01vTkHXsMrEZJqsAPnx9XGFKqViYaM6j+e9vp+Nk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790256150; c=relaxed/simple; bh=RFqzRpDbccKYDGRVRmxPzGxVc19/VeDxMrdkQ09eHX0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Xjq0aYAhRHvOD6rv6DbMMA6JtQtX/qj7OG0/8LB1dPCsC2KXKxE5qlmjFHLad74xofAz2LIYHN+/iktiH5SFpYczUCtCNwIOKxoMGrjAK0epyAk7RX1EbnbkemyEH35/PhNC63Dp4Cd9HSofCPShNv3uiz+YpBV2hmb7M8c4tJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=P4lr0nBn; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P4lr0nBn" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-482f6350faaso1354435f8f.0 for ; Thu, 24 Sep 2026 06:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790256141; x=1790860941; 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:content-type; bh=OmYrjQOzcxucWQmamc/vv/7UXHbT5JB9PXlS09/wJnQ=; b=P4lr0nBnSbjB9GXDOPvGIVhahSQpBo0+/3D+Y+kSO0XS/Jl1kpczyEYEXOhXXR71xl ml4+dXBeNv4Y/9QD1YVQ2MKiBVYRnEUBwX+LtGYSRd074UhEfOyT6twpVzJggeJ2wNYw KBpEtImKt56ST/hMP6+WIQkCAkFQ5TIRFGOMGqHHB+I2QoFf8RTf+pZFXJak2L34qOje sVNZwbaEa3gGJ7U4w0rHv/9e4JMO7vUyHlhrK55B1glJvmxhdngUtO7plxDJjwQT4sYE 12ibE8I8PB2HlFcNA4Do9ghXUaN5xtAF5AEsC/u0WCgUJnL6lxzX3ZTckUp05FuWPQX4 ow3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790256141; x=1790860941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=OmYrjQOzcxucWQmamc/vv/7UXHbT5JB9PXlS09/wJnQ=; b=Y4N0uux/k75zXXne07hjEuq+2ZjXQtyT/pwC5dhq9O4v6fqFmgS5/cb9McDfgntX5Y VitrttSQiDDYyYjGBMacczABaFWohvWhq+9ZCSMwN+wJQW0uwC/hsCufSmqBa7c5dwsq +GHKlIh1ERyqpudeHCgI6HYDybAPYaRDGw3ht7j/zrpljndGAUIif4wGzCbWUIL7hjn4 5azfw+9Uuwsg/erlN/avnsO1kHs/ft7j8qecV+N6CzaYQ+e3ajlCDqerrBArzakgmBsb ZGn0WuaP5LVlxcS4AD379rMPtOib7hxl4hYC6JgopMjX9dC3V5sbPMma/a8tb0FLwGVO EhhQ== X-Forwarded-Encrypted: i=1; AKwUvBwDvSFW7/tI64w2Nz70r0K5oEi0vsPrPEuY/P6x12rMub3Y/0jbRkK1E7qgt2DcMpFQmAZb5UYzU9w=@vger.kernel.org X-Gm-Message-State: AFuF++lNVnSJQ4+U71TKo/ITiYPFLcLQvznDZ3jIf9sdDOAmUtIQK4kz QP2Hb4q3SyOJWiA9XnZgVU+kQIAIhaJdUHladUw5O/tCtCicYU8MQv7r X-Gm-Gg: AYBFou0qK0EZa6BwCgO+IkbViZpm41ck5Hg5GYv2M5u3r3urKTNBo+yE40127wto3Lz eNZs3SJIeRNmsx0Ryp952XGvA1YqWm3RXtudmTgtvWcHefKtdOGSRJMqTpHmmsIKjwHDhzgL9gJ Zc9jHJXjbvedk4henuwKJXEuzPxzRFSBLRg0BO7fnd37pyyFUjKZKYEt1x09lcZ0Hcp0nckyuyt pqasv7KIWPUSYm+LxRtpeYIK5VLUJ8zQoSKosuk3DcQUHKv+wQwNyizkKrq0YFHZaLKLiRUlAlL UiYlWcyMhWTetaS43SCowEv2BUhhBBFDyQQAxOvzrTyOdH1MtvId9KSb/hdISu2ldE1am0GmBcN sR1AgjGx+cL+43rPtdsJ/kS1/oZXFzqILcYRSu55pb6HLsalsW43XEL9WxRKkkcaxEFrRNen+FO dMul0q+YQ5yCfP4SIDu8CA7bJB0mzEbaOmAfjPEFqBrAOS7KbYQp80eypRnUzYN0SB5JKOVseCy 5bnjKkfjHNVyZ7y+b++TKzzfQGl9kATDrzp8Fb7NqvWeA== X-Received: by 2002:a05:6000:2501:b0:487:ff2:14f5 with SMTP id ffacd0b85a97d-4887170d387mr5025354f8f.4.1790256140984; Thu, 24 Sep 2026 06:22:20 -0700 (PDT) Received: from zeus.localdomain (212.71.14.70.adsl.dyn.edpnet.net. [212.71.14.70]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4886876c267sm14642949f8f.16.2026.09.24.06.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 06:22:20 -0700 (PDT) From: Sander Speetjens To: Alexandre Belloni Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Jonathan Bell , Stefan Wahren , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, sander.speetjens@gmail.com Subject: [PATCH v5 1/2] dt-bindings: rtc: Add property for Raspberry Pi 5 RTC Date: Thu, 24 Sep 2026 15:22:16 +0200 Message-ID: <20260924132217.1281752-2-sander.speetjens@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260924132217.1281752-1-sander.speetjens@gmail.com> References: <20260924132217.1281752-1-sander.speetjens@gmail.com> Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Raspberry Pi 5 has a built-in RTC that can be battery-backed via the VBAT pin. When a rechargeable coin cell is used, the hardware requires a trickle-charge voltage to keep the battery topped up. Expose the trickle-voltage-millivolt DT property so the driver can program the correct charge voltage for board specific configurations with the attached battery. Signed-off-by: Sander Speetjens --- V4 -> V5: As discussed with Conor Dooley, the reff to uint32 is removed and a PR is made on dt-schema adding millivolt to property-units.yaml V3 -> V4: Add a reff to uint32 V2 -> V3: Fixed the firmware property naming V1 -> V2: As discussed with Krzysztof Kozlowski, this property is folded into the existing raspberrypi,bcm2835-firmware properties. .../bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml index 983ea80eaec9..dc71fd57834e 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -133,6 +133,11 @@ properties: required: - compatible + trickle-voltage-millivolt: + $ref: /schemas/rtc/rtc.yaml#/properties/trickle-voltage-millivolt + minimum: 1300 + maximum: 5000 + required: - compatible - mboxes @@ -144,6 +149,7 @@ examples: firmware { compatible = "raspberrypi,bcm2835-firmware", "simple-mfd"; mboxes = <&mailbox>; + trickle-voltage-millivolt = <3300>; firmware_clocks: clocks { compatible = "raspberrypi,firmware-clocks"; -- 2.55.0