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 4B17C448B83 for ; Thu, 17 Sep 2026 13:58:48 +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=1789653530; cv=none; b=Nohf2ItYYGWp1gTiXhbYt8q5rJ186Pz67cjEqQ6k65ozgnvYYjI9NK5TEnsvdk0SoQdMnBeJEF4smMcLIKsXysHT9UKJwnK1y9BMvnlTl3Jzm6kgjkxU59f/77hHy16nR+WDxIPOv6lVIxTZsNMFqGGisyYh2bjwIMZmD9+Gkt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789653530; c=relaxed/simple; bh=ZqiXbA8s5RbN6r1kc2favZDBkjio0ckGcJPsbMrAk4U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eM+a67BMfhftELNMVtonqcO6B1sCgeTgjaeFWd4fAK8+YKL7daKPlmDFiK9d2QEn039w1wzzix3i9ImGvbEvmubbHYIdbx2eZ2XVzoGTb6dJ3Hjo9aguhywX9I7B7tbPTZV+lOHn7DlehqV8vzMV54UxU1Vq9Xgj+B5bT+UWFCU= 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=X7AA/0+K; 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="X7AA/0+K" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-482f6351832so502098f8f.3 for ; Thu, 17 Sep 2026 06:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789653526; x=1790258326; 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=O5IhnPgW4pLNq49awgTAAmlkGTKl3vSsqH3Qb0oXmSU=; b=X7AA/0+KRBWI2+7IW80qq0e/uJPsnUQRavQTFRdvVqYQTQHuxLjwebcyv0EJ4ruQIC JYBYejAxHAMx0QB3ohpCl7p6vav2CDBuHhZ8n6mOpcyOrNt5YSzBnYV7oJpGsoddTREg ecvLykpidPGwj8/b0BBmTTh8gO1rQ9O5nwC8rAAOmBAu30VZ+3ouhRIoGU9YsAyY0xN+ MVdtQxKtwcmrs35CqGPb0xJ0Z28u/q+psk9nhHYUPU614hhczQEpJ35L8dyEAtg2vqeG OYdrvLaZtc5qTuAyifgelNkBgsnRPKYl9AcjOtwfjQuXMu2o3/5RvpGvwEonQpW/Ouzc hGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789653526; x=1790258326; 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=O5IhnPgW4pLNq49awgTAAmlkGTKl3vSsqH3Qb0oXmSU=; b=sPesRznMCf8S/m5ngcUQrWJVx2WRT297BxFCuulRhBqUFs1xE8ahGOkpW6VD+xKJ+C Cc9djsb/gNy1/+ui8phY4PBOK7lL5UMTJDTZfaykx3+upq3rvYT5xnHc4BVEXmC4hHzR WlgC4lTjmrsmJ5kU0xiM7dVP57zoOJWukDsNIxpdgTC0dbBiUdL1Y9ZJJgviTmHO19qu MsHwQrSNrxI6t7znvvN+0NpN6L4xFO//d2sn5gtEeY5Rk7zD6LCBPOAfzAQcSw/UBHaU 73bNlnrQLz4dnq6tqDfP7YAoL8y0iYvo+Nl8nRasTyJf8rvEjKfzfNpUm1qzDleet2WE A/RA== X-Forwarded-Encrypted: i=1; AKwUvBxUNCxDL5rHho7R0k+SrEPxUsz5nePPyytntYYIEYHdoS34k2ziXw0RxPrA8cqPoVdF0YatdxK+qrA=@vger.kernel.org X-Gm-Message-State: AFuF++kxvtQDP4/VBNoBZkiGl5QBmmjbKdbvR0a+LH+T1xCPntNgypbL KWhUKZlu/LELapaTTT0X2ItXA680Hy8jzD5SnrAOnT6Uxr92dXJ/98s1sgfiEhQw X-Gm-Gg: AYBFou3Uws2BKW+Kpi6RLVt24wmOnRxB8dzYNLICCt5YqOXeWGLIC6GeUxhQVE/nYT+ /q6vsyk+Uj2zE8J150X2oLXjbXJG/pUj6DzJ0h+QJSYcvaZQjCJfKDsiMktHcUY8SK7NP5UFJ/F feSmCKffwM4TOKgrWXmSRjqOpr2xSQmjxo517OPn2tlHJEATaq0+vj8EkqpOSmF1iejCequQdTt xISVMxOv+dZbmGTyxdGDjSU1xKAHVuMCKt08H9hKB4ZWnrIHOl6AfikXsQSxoNlTCwoBVoLriG6 kzA3fa24RXKaGOi9iCG7LiCJ6xvGNVFeH/8cakfCZnbZ2d5AWSo4+LJuQxaHZneLZYMHkFbl6lT Cb7OiJTYRlsplFgXQH8hmgv9A6y0fR4AFp/Fv+1TzyY14+vNrI/nGxgzZxNlrCBcD+iNGMPYslz Rz0lJyP2pKcMiToC1yxgnzyhu1+e8QbBT/BrGJMG9YA1QzKNA4UNy8E0xwDp/hq2pPYvVPQpTQJ bBxNHlpkyfF8mH7PeLQLHn2rgymebbc7TIo+4UPiWWEuw== X-Received: by 2002:a05:6000:60e:b0:486:e901:e59 with SMTP id ffacd0b85a97d-4870d05a86emr9440738f8f.31.1789653526020; Thu, 17 Sep 2026 06:58:46 -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-4870bf414c3sm12851706f8f.30.2026.09.17.06.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 06:58:45 -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 v3 0/2] Raspberry Pi 5 RTC driver Date: Thu, 17 Sep 2026 15:58:39 +0200 Message-ID: <20260917135841.841680-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 | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-raspberrypi.c | 272 ++++++++++++++++++ 5 files changed, 315 insertions(+) create mode 100644 drivers/rtc/rtc-raspberrypi.c base-commit: fd73f4a6659897191fa0d40695fe370925dd3780 -- 2.55.0