From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 55632529402 for ; Wed, 23 Sep 2026 13:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790169227; cv=none; b=uTN5dgG33IHvjWCf9Xd95TpAqD0scGJvymbqv/SeTfgEiJCDB1179f6xfOudOIyGLlbnexIqu99cIrWtBf3W5GP+nZf53UbthnQZVMk6JS00FlcJmuKKa59jwDFdS/9XoeL6JU3ayUhqTYB0lwArqloIU4F8yPT2IqzAk5+HbVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790169227; c=relaxed/simple; bh=L34DCDqVU6im5dk6QZdCIsE4IVJoNt//rkoRdSOwL0Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u+guuxczvpRYQfDujZk0+Wh09DF+rnRwR7i+pTP9hgMSFEi5UVfXz8Es+yTLYpOGQSpO9RgboXCjPGVCWuMLd15vP144SXo6rdi8k88lGxlTDDwnsAWn2mMV9M5i90qXDXZoiJmwwYsJMwLhvUSoNcS0ZxnqS2jLz+8sHQhBNAE= 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=bEbE/Qsr; arc=none smtp.client-ip=74.125.225.141 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="bEbE/Qsr" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e7bcb94d3so6105315e9.2 for ; Wed, 23 Sep 2026 06:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790169225; x=1790774025; 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=nqyjdRqZi/cfpQBeYXttKHb7UezS5hjnOE+1CwQMvwA=; b=bEbE/QsrmAyNGz5eiLLkzHS5I0QvHztBTneoGPpc/VjMHrgu1bqs3rL4hs8jmZ8YHb 95UfBJ15N+ayI+modcnTAsw1DDDtPK5QcPMy9j9OuCb8cWio2p5qIHv6aSQe3SVb7KA+ VeMYB6kLCdi9jXddcePnFo9v4SVM71cNz5FsDz0JjzLqNEMqVll6JLauiuxAL4K6lX4y oeDrND3B6ljCGCY9RJ/6WiMZr/spDstyjMEqCnfNFvGsYZdPsTpgy9djMSxLUZFHuW+/ 2/+tFGuYdW86YZS1FjQCvRuOB6FBitfhzwpysvmKRiHhoRrcatVbl9k9B6RVBMX4EvEd bIrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790169225; x=1790774025; 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=nqyjdRqZi/cfpQBeYXttKHb7UezS5hjnOE+1CwQMvwA=; b=ZDuNcboTmGm/2GZnf5QkYXOqHsEMMJLo2lWP/AAcqajy7q2iBFGOVIBDFBbrduiVmI ovGBz3gUUpcmTHjAdfAsDFPqkf04HOcBk/z8eiAiaf5dBUypoaYejJMCJcQugPqPqY0l ReTJSeI7ZG3Il/Jq8ZtmZ453sJWmzoXywJ1mYpHX/BhEitiAmJbtV5ALNVd6GaMIekQV Ozmu64cL4HbW3BXI+POIFrWA3HaLCpOTyQNUkFWDnElsvDdpoZG6dYC5fCA548onPVYv 4XhCDnW9WjtsAKfDWXQP46RQJbPAWNnUx8u6cm1xfWor6QGS3qBFkHWxkPmVH625l+bJ XDnA== X-Forwarded-Encrypted: i=1; AKwUvByRIEESv3aFJyJ+rrk8lOxbzvfteXZuAXTkuafStheDB/51eJx90txLGDndULzTo1zVj6OgkIUywuU=@vger.kernel.org X-Gm-Message-State: AFuF++k4NJ7mnvg+LZ7xTA6UoOV7hudtXTjGQT4d/E5eiv50F42x4Wbv WwAN8qBEW5eLkU1ObNaxarTOUMoVEhjGNwzE5G0jE6aQUyrvRb+0Zkcc X-Gm-Gg: AYBFou0bEL/Tj6UIHk2AfVrl3SKr+8ArtjuiNtEdMA0XsV4eY4c4bBWpeYWwnkkCiX9 R+RftESGI9DJMJaZ9BnY1nAbPn5ROgeBCTEmK9CTISdDA/9ZARLnuv20R+BM8idq/7ge2i6qrMb 5inQqMn6HL401Mh6kkmUfZuc4zVLmRfCsjSoKE/VLSL3s/Bi0lKRyKsKpul6FveYLmnbkF2LyAo ehGI00JzUoI/v6qhDm/UZR2Cp6OY9NB6lJWCYT0LGTSyFYZTYIJtyncaOE+oMTY0jk80qI8hmvk 94s57AJ0IekjxO6oZWEK46M6g6+TA3QYt68NBFPvPxgU0IijE6vrxOk5xS0OLmktCUJ1pm3eH65 yeqDh6gNpyOxwtLFJPgsI9xOb6/Q6bbodckaQ21NiU32Qa/3nRNfggGxyAypckg1luUrJoPFzBz 7IE8A3rJa64SCcdk8Pi2lrd7xolgXVybDaICnoEJ3f+LL9OuxbBhyvf5R9Hhxhv6boJ+mzOTaBm DJDmg2KsRiwwdy8HUzliWqdh3vjFy5VlCeCoECkZEhSSV+B5S07Et8A X-Received: by 2002:a05:600c:8b88:b0:49c:fc6e:8cbd with SMTP id 5b1f17b1804b1-49fdf152e3fmr33200245e9.33.1790169224607; Wed, 23 Sep 2026 06:13:44 -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 5b1f17b1804b1-49fe0c3731fsm57230235e9.2.2026.09.23.06.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 06:13:43 -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 v4 1/2] dt-bindings: rtc: Add property for Raspberry Pi 5 RTC Date: Wed, 23 Sep 2026 15:13:22 +0200 Message-ID: <20260923131323.1099979-2-sander.speetjens@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923131323.1099979-1-sander.speetjens@gmail.com> References: <20260923131323.1099979-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 --- 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 | 8 ++++++++ 1 file changed, 8 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..9349fc8908a5 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -133,6 +133,13 @@ properties: required: - compatible + trickle-voltage-millivolt: + allOf: + - $ref: /schemas/rtc/rtc.yaml#/properties/trickle-voltage-millivolt + - $ref: /schemas/types.yaml#/definitions/uint32 + - minimum: 1300 + maximum: 5000 + required: - compatible - mboxes @@ -144,6 +151,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