From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f34.google.com (mail-wr2-f34.google.com [74.125.225.98]) (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 DD08F45563D for ; Wed, 30 Sep 2026 07:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790754375; cv=none; b=faH0Z4AZ1+QnUrK1TxhB2x68wJbKoZ/Q65FYbFeDa1wNNP3YnnrlEE4k1IZzn9Nn3g9ZmMVhjlSc2e+DCPIy1L4OWvdYEkW7WeDDVH0oViVi7/4VY4J3/Ubqvm7OL6Tb53Xl3RIeI9ugueC2clGPrxDI2MOnIzHkD3ZVG6jvDCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790754375; c=relaxed/simple; bh=XTNinBk7hZTvbTte1FT4wZGpG+OlZDOhdwHWpbQga80=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=djNWu9Vo7fznCUw/Z8sh8EFat5j3g2/N4fn6Zou9hSyE/HljRiMc0hAPP+HJkBj3W6wJqQeCYRMQSmm7uOTSG+Wp1BfC3PuUAcwJcESuaxyoYkjsg2DGjH1DViC8Fqz4aCM26qYfPVOzYsgoRYyjWw/FxczBr86P1aXbZ+vxfmA= 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=Dci1kWfQ; arc=none smtp.client-ip=74.125.225.98 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="Dci1kWfQ" Received: by mail-wr2-f34.google.com with SMTP id ffacd0b85a97d-48b01c4f4daso181726f8f.1 for ; Wed, 30 Sep 2026 00:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790754371; x=1791359171; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=nV+g1hQFsSgbglJkQaFO0JiMO0Uva3k8KCHEJ6l5/OM=; b=Dci1kWfQOKZDaLCd4iWULibwvL8NVEFPlLqeF30MQryE4Kz4gtpR9dX/7qLbAv/5YW tqflPjPvFLe+8wKk5+lnuJ1t840el5ohEQtnDmTaLCDfJRhriwQrBidORLwBGy+6NJP9 SOP/P7FW0SupXhXXJDJQ8Z6RK/LeD77eaJBwluHpQSm/tIA6hdlXgamVF2Fpcz0Yn/d0 SNMFeClCjxN5n1JQgLaP7zmBFmqLQva6+D9eGETF77doyrODCQaV+/bglE2e1t52Wb2x yzr92NaW+s5qR43cJUyhTAs1GYW+K2Ha0PRjryxUwPs0tOFEO+tfCsF0ckxhFx3tvgjC kRZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790754371; x=1791359171; h=content-transfer-encoding:mime-version: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=nV+g1hQFsSgbglJkQaFO0JiMO0Uva3k8KCHEJ6l5/OM=; b=h893W7FBlO9xiG4pE9q/+zmVakkiQxarlTNvT2m0hRnyMUL0FavfUP4J8laf99CInO dJfKqLYA2ZqcEbFI7PoSVnPDHRosO+4+dA7kMb07mikhHt2t0rZEYKt7ARd3HQWqakNH z6FayROsYRFw51GYDqeZhzplqBnv/1dJoi0AhEKE6+3uRWirl9cSWQbXyG6+kAJ1X28T 02EEtQuZdEoWPFRG7LsE25ESWbZfFCCBVFiWXgsQPXv40MNRmAMFL1FNtVZAtcjR5dd8 QDrud6s6aCqskwNJiQkkVV676V390w4pA0JVXgM7adsENSgd0TBifQyg+c3WA6GSLPgz 8zTw== X-Forwarded-Encrypted: i=1; AKwUvBxzqY/D5BavHLoa1C/8pjMmQCVIRhqDnUhUsMshcolO8adi21Ez8i+0xckzJc3UWGzLGhdbGsd/9G8=@vger.kernel.org X-Gm-Message-State: AFq9FYIvfqI7cAgerEBHqQbkefqIqRfbvh+Iho/bZbc/n/VnKpalp0O7 C5LCj79+kkVMhCNAJOmivElFTqTV7q9SdW4fOWUhqhjk4UPae5evZH8y X-Gm-Gg: AYBFou19ZwofLN+UK8zFs4t/aBARGT7gu777CboC86oW4Iq8fge9HppbrCQps/LHfYd D3KGo41cHoYeLvC59MJFCv31yPAL5mNRwpWisUYw92kMSzXXa2I0n7ycNYLqMABmwtOBSJX5/bj Rxcx1dCXvnAOOd9aERkncokCiED0Hhh+vrQwP7rvbq2gY8CRvv2Pyea1oMIECKIPU75O0owgrle 32rBCc/5Ozt3mtng5r2GqPxrwC5Sc1lrZ4xtJPdpPbgBZs551fZA07VP//gK2B+r2SmGS7R0FSN Fziv9NIXBhPyZvv3ABl8Yv0XVpy7B9mHr4CqJisWDszLVTB+oA/bF11bTs/SnCLTW4W98yRyWra cWKbU6ezR6gP75fI2QSJISVQulciVm4FRqqTVUroWVqKb7twNBPsddF+x2BXtEDQrPHAMr3nFrb QOUDOShwJ3K2g+EPx4vaLvIsJZTIH0lDRcTIahp+sJ8BHQ8hv6gL3HgH2N+MkNU3DHY4eeIXw9K NVGJtKltGVG3paZI7Fe6lWy+1ni34Sqvc9WQoUfo84w3A== X-Received: by 2002:a05:6000:186a:b0:48a:fbf7:15b3 with SMTP id ffacd0b85a97d-48b02557516mr955736f8f.54.1790754370568; Wed, 30 Sep 2026 00:46:10 -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-48b02a0185asm1487480f8f.32.2026.09.30.00.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 00:46:10 -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 v6 0/2] Raspberry Pi 5 RTC driver Date: Wed, 30 Sep 2026 09:46:06 +0200 Message-ID: <20260930074608.479089-1-sander.speetjens@gmail.com> X-Mailer: git-send-email 2.55.0 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 battery-backed RTC located on the DA9091 PMIC accessed via the I2C bus[1]. Access to the RTC is provided exclusively through the VideoCore firmware mailbox interface (not via a direct I2C register interface). As stated by jamesh on the Rasperry Pi forum [2], "There are no plans to release a public datasheet for the DA9091." So we are stuck with the firmware interface for now. PhilE also states that "The firmware needs full control of the DA9091, sometimes with extremely low latency, otherwise there's a risk the supply could just cut the power." This series adds: - a DT property for the charging voltage of the RTC battery - the RTC driver that talks to the firmware The driver and binding are based on (and largely taken from) the downstream Raspberry Pi kernel. The main changes for upstream are the addition of a dt binding property for setting the charging voltage and binding the driver from the raspberrypi-firmware driver instead of from the DT. The driver supports time read/write, alarm, and optional trickle charging voltage configuration via the device-tree. Testing - Hardware: Raspberry Pi 5 Model B revC - Kernel: v7.2 - dt_binding_check: passed - Basic RTC operations (read/write time, alarm) verified [1] https://www.raspberrypi.com/news/introducing-raspberry-pi-5/ [2] https://forums.raspberrypi.com/viewtopic.php?t=359073 Sander Speetjens (2): dt-bindings: rtc: Add property for Raspberry Pi 5 RTC rtc: Add Raspberry Pi 5 RTC driver .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 6 + drivers/firmware/raspberrypi.c | 25 ++ drivers/rtc/Kconfig | 12 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-raspberrypi.c | 251 ++++++++++++++++++ 5 files changed, 295 insertions(+) create mode 100644 drivers/rtc/rtc-raspberrypi.c base-commit: 93f51579e7df248780214094418f205253383cc5 -- 2.55.0