From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 7AEAE476CC1 for ; Tue, 11 Aug 2026 19:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786477340; cv=none; b=IFfHiLPwQhQrKJVIXIZIJ5iQnOBCV06CwjTVuwtfhwljq2XGJfjSmAPbUcCeY9ArSyiveT3dj9d78uVS5qbIek1+Fx5YL6ovtw2wY6M9JBqv58j/RprkSmHVtWhbLWkmRao5BT+rK7Z2k5oqMiK5y9l53mvetTf+DXhsFNfc8ak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786477340; c=relaxed/simple; bh=9jLxGPmQdjY7gophUedDuJ2AuFWVcIwvtw1u92qrHVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oMsehrVPj28SsA1RLekrdvm2rskK29ritHIqlIC8Fv2k07jU0TlJybHHPznhI5QKYois1m2r4L96zgSfZWHV073qWMOZdP8nrgZj8aH9HtH6xpK2M07jZEdYC5Z9/J/Ci/P5v2vlJ88Sr1orvIq7BvRayexJj7oGC+Vp/JMZaQA= 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=dPdzFfGd; arc=none smtp.client-ip=209.85.128.50 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="dPdzFfGd" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-496bb7cdf51so979935e9.2 for ; Tue, 11 Aug 2026 12:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786477336; x=1787082136; 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=QD+8mdn/ihWEyfoj8EZu5dauxKHrsP3QtiGEL9IzKhM=; b=dPdzFfGdprY3Wp1x6P/E7SU5UPRnWIvagalniuNyq2IWoRYtQSKekajzB0oT1OcGwl 2YAP3cXFbe1LMOBYpRqN1pVvR4T3nktX3f1OTVkLVMV4TiqmyDcnd14XuXJQvIkxxRuf vPoC/kizprfyCxQnHbrOpHr+0RYeTBCb6DtGWruCCAz67YTjbqH7lWYOMr+E5p4bf7Tb MhLg1MsLGXZOOvWzRHNCTxmiNI4cNo/mnAi730gOoAqrFEZTF6LE5GkTDTKb0uN+N26z 2xVWTsl19gwdzaRV403SP4nyS0D/6ey3IeggIib96ycRi5LiI5QJo2LByM1Yx/jVXuq5 phIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786477336; x=1787082136; 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=QD+8mdn/ihWEyfoj8EZu5dauxKHrsP3QtiGEL9IzKhM=; b=Zw1YbxRqSQxRmJOCgfoyMy2lUjEKw5lRkvaFhay9GrBPxrCnEpwSuHp3TA4P8jjnaS 2VLNn+R/3OfI1YFweKnhV44P8xHMT//IqJ4rsNtl91JcI5BU8dxvv6lsH4WmELc8wfoh qOnyo4MVtw7TVlWVm/+zuzLgRfr8cBwm6+mBSdg1tx+xrnwOGcDjkUS62IjDAgGC5CS7 FFL2vVtDh3HNZbyYZnFVSzr7VDcGqp6QlgOOqttKCvxaCImlWyCEYOJq+zK/cf3dNfWV VoCi9Ii/BBcI9DUfcWHQOkCj7sJjyu3U8B4r9k8FAXPKgQCU0mVX5oDuGdnB7lTSNXEt ekpg== X-Forwarded-Encrypted: i=1; AHgh+Ro1tTATCnTWWPLsNcz3xc8rxN0/XbIYoG0UzRD72fWCjuZy7bx+stuARva1JaiX7TFeqsaqrXhWPsgFjx4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzc0gxy3vlssBnrXNvRZ36xqmhjD8oFehTxQu7wEi7H9dAeUZ6x EqEiH0QWBrleXgjIOhAS/kdVScD8nyOuGgBNzYwK3ZTjZGqOcuI5qSuw X-Gm-Gg: AR+sD123pbxtLpbS7Vgp4F1T0wbUYd1V5ou+sPtC2QV7q5a2TtCiNOgmoMFuxGI9UQG ACrV1gfrlKCdOwdskTmo7crwXrbs1twLaiAuXK//j1T861vlNb+AXIKQpxutmQg0L6N48HIjFt3 rfdmp+KtqnueUJZ8cZK4/0NYyjZlqhVXvDSBPexKkvV+QPnLCBlffKhrubmB6CMHTl7mTCw/UWb Et5Lu1cV0IPG4fI/Qoqpi0GPhnFM1zTu1XI1omIAy3P7fjd42ZxTjBDVgnQ3/XHpibIwaziSRz3 UYN4lOcxgmESIcnd9RGfTp9k/ohUPRGTixKdJ7adUVnaICi9WZlg4NoBdpA43odU+7xl3QuFPOz uZzAe7fHiXLM0h5NmOnbsNGB1W29xMVSdmM0lG/5JIWFW0zvyFQcGH0yX3fLEImtyztCKpmoBaP a7gAPcSK7uh6+DrTAb1BM6hIQZ9MN8xcy7Kan0NRu6EZbbrvv9aQ7AUjotG5gOrvE8 X-Received: by 2002:a05:600c:46ca:b0:495:52a5:8829 with SMTP id 5b1f17b1804b1-4997a65397amr28604315e9.11.1786477336477; Tue, 11 Aug 2026 12:42:16 -0700 (PDT) Received: from antoniarch ([78.213.143.159]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4997b22784fsm2606535e9.2.2026.08.11.12.42.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2026 12:42:16 -0700 (PDT) From: Antoni Pokusinski To: alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Antoni Pokusinski Subject: [PATCH v5 0/9] rtc: abx80x: add support for abx81x Date: Tue, 11 Aug 2026 21:40:25 +0200 Message-ID: <20260811194034.28937-1-apokusinski01@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, This patch series adds support for the ABX81X RTCs, which are essentially SPI versions of the ABX80X RTCs. The first patches (P2-P4) contain bug fixes (added after sashiko's review in v1-v3), then (P5-P8) we have some cleanup and reorganization changes (converting the driver to use the regmap API was needed for this), followed by the actual ABX81X support. The v5 is identical as v4, I send it like this because sashiko failed to apply the patch series for some reason: https://sashiko.dev/#/patchset/20260810193826.210683-1-apokusinski01%40gmail.com I have no idea why it happened, the patches apply cleanly on v7.2-rc1, sashiko's report is not helpful unfortunately. Kind regards, Antoni Pokusinski --- Changes since v4: None Changes since v3: * PATCH 2 ("rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()") New patch * PATCH 3 ("rtc: abx80x: add mutex protection for register writes") Replaced "guard()" with "scoped_guard()" in "abx80x_ioctl()" * PATCH 4 ("rtc: abx80x: properly handle shared IRQs") Disable all the unused interrupts in "probe()" * PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API") Changed the type of "flag" arguments in "regmap_read()" from "int" to "unsigned int" --- Changes since v2: * dropped patch "rtc: abx80x: move part autodetection before RV1805 configuration" * PATCH 2 ("rtc: abx80x: add mutex protection for register writes") New patch * PATCH 5 ("rtc: abx80x: use regmap instead of I2C specific API") - return PTR_ERR(regmap) on I2C regmap init error * PATCH 8 ("rtc: abx80x: add support for ABX81X") - return PTR_ERR(regmap) on SPI regmap init error --- Changes since v1: * PATCH 1 ("dt-bindings: rtc: abx80x: document ABX81X RTCs") - added missing "spi-peripherals-props" reference - added abx815 compatible strings to the trickle charger enum list * PATCH 2 ("rtc: abx80x: move part autodetection before RV1805 configuration") New patch * PATCH 3 ("rtc: abx80x: properly handle shared IRQs") New patch * PATCH 5 ("rtc: abx80x: use regmap instead of I2C specific API") - changed regmap_read() argument types from `int` to `unsigned int` --- Antoni Pokusinski (9): dt-bindings: rtc: abx80x: document ABX81X RTCs rtc: abx80x: fix error check after i2c_smbus_read in read_alarm() rtc: abx80x: add mutex protection for register writes rtc: abx80x: properly handle shared IRQs rtc: abx80x: add irq to struct abx80x_priv rtc: abx80x: use regmap instead of I2C specific API rtc: abx80x: replace read-modify-write pattern with regmap helpers rtc: abx80x: create abx80x_i2c_probe() rtc: abx80x: add support for ABX81X .../bindings/rtc/abracon,abx80x.yaml | 18 +- drivers/rtc/Kconfig | 25 +- drivers/rtc/rtc-abx80x.c | 663 +++++++++++------- 3 files changed, 451 insertions(+), 255 deletions(-) -- 2.55.0