From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.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 CD8DD441600 for ; Mon, 10 Aug 2026 19:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786390808; cv=none; b=tXxD4nZ9IlIqQb9CrQBPec0XuiVtQhy/MdCKAZUbYVrl3Tgfhz47R+U5IVLxB2IldxRLlZSN9DrldCNP9RBMdEBVS9c3O+Wlne2fA9kwYUlkmJ1lHCWEIh4Q0NFJ7TyQj/zEiAsCKkTH4VjFKe0Esw+OrQHgaMc42+8PnHaCxEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786390808; c=relaxed/simple; bh=TaWewZmZdiyyYEvO4QXn387rDKrFrS1EPnJDYMrcQhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IsrEmnq7Zpk1ST3kimBGMT3borl7dDemTWlDvvqfco//jYXaQL6b+gy9YAjtPEL2iYYCVGf9KhjB/YcacCjHs4eMVORvuBIQHdGtkwAsWK4w1TA3hrSNI+KGb3qINJyv+q5keIajI8pHp9m3ONIJnLyynQ4ndi484db0nbPyOHI= 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=BKlg5tMj; arc=none smtp.client-ip=209.85.221.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="BKlg5tMj" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-47f7027ca11so1450189f8f.3 for ; Mon, 10 Aug 2026 12:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786390802; x=1786995602; 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=Sg0u8jIY3RdcCncNxYq4+4NKxyzf6tm+h7D9IVK82fo=; b=BKlg5tMjWLiVi9FOvm3y97U8uzf0AWuwDQE6pshs9iyngJp305+damhIhBUM41cBgJ 4TLc7dVgv1LgHGUAEjx8nq6JT1HiYhiyS22eLF4GDWPA6KZRcqQmxHodYLL7s1EVzmVT VnUONPmJglLQM5BQZk5di0tU4JMWgbQfVw+Vk9jqNYpHbaO+TAiJUWsp+BdYaC7hBLXT qoXwmsbIGtmuVh86RfBlv9YfUfayzubC/Ckau2JLc0KgtJ1RCYnoeWIHyf4VswzKozzX v48AQE1L30lr7tTVEpLcbXrOc1N+kmcMdNSMEIhLKwu+XuJV6af1eIYXNBNgeSx+VsGh tb6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786390802; x=1786995602; 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=Sg0u8jIY3RdcCncNxYq4+4NKxyzf6tm+h7D9IVK82fo=; b=oVqV0RHFQvevURMRBpDhsOrPsIqU5rmSOGHr/fH5Bb9hr5LImS5ipSJp5zefu4H5XY rHHBN8Bv1Ln8CAQ1A9oRX3P5LttPv9l05nLNXl8EuAz0T+3WQg+OlRG5Wqw2VboEDp4g RYpKPefq2p1mBF+6cKveivnq60c23I0pf6EJosB7lR2WFFwcvIcebPg+IzsOPWGzpNRW WuGGg9NJxhuV6tvE1h5B6mcIfdzHotDwmXzajNSj3P3IwluofL11tRdGUSgKibjufC4b 7ZX79Hzmo5Pe+eqzFCP/M6auqNT2ub5Cj+XP28tVfd4nISpwAg5jfZ+Pojakw8ZYDzvN 4Cyg== X-Forwarded-Encrypted: i=1; AHgh+RrtZzCZ+wL3x1/rt9nRVg0AGVxvbSpboySGLhoEWNOFh/7pfmtF7jvmcu/3dN7CsbBidu+jDp+Uw8aMQso=@vger.kernel.org X-Gm-Message-State: AOJu0Yzqhi3fHJ2VRsTfcYXnxZ36mFRGPlCoe5OAbser9sawu0C902Dy pqlEgFBmQqZPDRXYNbNt3gxgRSXp/ldTPcDwHCRvHsMNr2pn/As9MYLY X-Gm-Gg: AR+sD11hOqZBf7tMzAQLGVMQMhC6z73ohqlU7rq8LPDsRmROzMMC6HhWVktjzok9mtH +KKC8cQTgoQv6+77y0QLNujb91rl7+/cxBUWwp13pOwnAjVFPsDQulsC1rUypwhsfk0s5BdoyLG Mk7Ue1qoOXzDl9Ayx1CVJKcHP6Oi6+qTTxBx79cWWhO4GS5Am+jcAg+INMEPaEAN37PoX3DeU47 s1N49OJ3sQVbEPT1sufBl2XRMdZVeNwgxX/Ch6ViamqTeeNMMMnwDN3KgjahsciIOn1laGylUMM M47lODtcvbsurLza1Bl9JrkwyiUua06tlJkb1vt0AySfGoZx500h3s7P9yyp9FeEZVramDuZc5c bvvY4R09BC8yIs2fVaT6YbRKu6LmXqK0L9ctjfPs9/ClyR2LpS2czJGbs8nj8m6XXEeXJ2KUm6d 1dAvfI4RUAkloZRYK6gAq+6vU1yJxV/sav6ZIU24LbtPWOKehzFIjSd1FqF7UIi5g= X-Received: by 2002:a05:6000:2588:b0:47f:91f0:9a8 with SMTP id ffacd0b85a97d-480026d7a50mr37788215f8f.23.1786390801677; Mon, 10 Aug 2026 12:40:01 -0700 (PDT) Received: from antoniarch ([78.213.94.207]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-480021506cbsm39291689f8f.14.2026.08.10.12.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 12:40:01 -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 v4 0/9] rtc: abx80x: add support for abx81x Date: Mon, 10 Aug 2026 21:38:17 +0200 Message-ID: <20260810193826.210683-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. Kind regards, Antoni Pokusinski --- 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