From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 D2CA952B1CC for ; Mon, 7 Sep 2026 20:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788813245; cv=none; b=d0H5RMDNgP8IbsZiW9KKf8+XOtpx9J2/x9YrdnK20htvgUUh9Ylc6k7WEGiCMUTixKXiV6fAqMObCcM8ujt0oohcfC50A9FC2R8I3shNOTLBWQ+66zWMQTMld8I12RU5P2zh0LC8L6kUDyB8P77FDzkBsbxFiTnRvWpuS0V8IEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788813245; c=relaxed/simple; bh=XRcgBCue2KrXsEL9OA0CrR0BS9mMuluh/tBBStri+Jg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rfOT7rqF9fL4mRiRg0reDH4DeF0x+mW5iBMo51O3n4VryuIjUGsmB10nAwtUuPj5+3sjO/WQlCnduXpH3KvPyCXEHItExz5dnHx8AqDUUWUUxGUbQzF16wTmUKYqcLEcb4kcMHfLurc8gl+GtJMtRqx9G/h+bNrG7fr/ZkUDu4c= 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=Lj4koppJ; arc=none smtp.client-ip=209.85.221.42 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="Lj4koppJ" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-47ddf7b09e5so4447224f8f.1 for ; Mon, 07 Sep 2026 13:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788813242; x=1789418042; 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=H10CDyHf2HwaIdp1u9Z8DODXZa7pKYcGD6eHakxo4CA=; b=Lj4koppJxmL4lIgZOsv0/jFIW7DlHTxvL0rgyE4zh+sc6eNgegCpaKslepsXsNoLwv aSl4I2i7aUoG8GOXIXhdposqWXnAgKwI1aTDkk1WWzdbj/3JkzPCvN5rQDoasmQto8z9 GKDb1P1BljmrSIWrzvOlF2sVKd1sDz2CUID0urrvpS8PWNbGjN0ksAfNwuEGNLad1aNO UBkMvteQizs4+OW3uM9r1eQJFaa8Z4cqlhuXbrafsrYSPE2/lKpyTetmfD961zPWgcOa 29tAbJrATwWrOaPxFs+Ybt//GL0o38WG8gvdv6qKqCftVQDkc0UyJIeUeMPFV0CH1ldT LS2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788813242; x=1789418042; 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=H10CDyHf2HwaIdp1u9Z8DODXZa7pKYcGD6eHakxo4CA=; b=kGq6R6DhM0g+eX3zfrX6pVuhpHWVFdTWTjgo2NH+ePxGUpttZyYXi5yWGdA2Pw5V+d I/9YH/d16Cac+rCUgltUiwyU5DP4cIJcjAen3XNzLQuOODkurtwIt4ibbyYKtRzsEsQG HMR3kxW8xemhVx+q/7VXa5KeDaqLIDjC2P5NM5ofJvL/CUJ1hTQnRID4DKw+ccXopwrR D3xK5eaiJJCGvN6jXU96xOY+ZQR75SbsEnxWJeAmFlnthSULFQ5T1BCZwdDljPVMHUlX aUOlcXoh81pZpzgWQE/0GvXQmc8FBemyq3fXf72/7tJ+kI1TAcfAI8yLThyKS9LSOG4j lVhQ== X-Forwarded-Encrypted: i=1; AKwUvBxT1YnGlU0vr+Zk09qzk7So9xZHBiWeM5T8k8hvFmiEuuv1z0ZOCILfsjU0x9GfvqemgkCUIaHFyJJGM40=@vger.kernel.org X-Gm-Message-State: AFuF++kPbyyLfWjzKTMyTKKNP8dlR4l//i9NINOEaqDHAjidLJLEjdLT vy//UoEH7JefnlL7vA5s45ZGyQO/fF5yYY1X2d1nFdOb62VRRDtUJU/u X-Gm-Gg: AYBFou0BgeROxq/GsfeTpVSArqIk3tNFXcxggiQA4nMPkeVjMH0eilT58FZ4xGCfcP1 bZmXJPrkxjSdWu0yjMIMkkKv6Frx+thuvXUcjRymXohWCKUVUBhCjq8wzwVNVbdFB8YI3LSADYH OKTZZrBzUf/KMKjflh/0GC++KEJUnQ3B+WsCrYkDQFiKtUB31SU9WSu8gviARb5c3sQDv+tImsj Gz9czJsXnls1ncM1nXBI7QIu4MnLKiIW1IgwheF6N1fLTMYm4ZBynCFYfH2O0b2Pf4Afku+cfEk 9knTQYcnHR+DZ+01zBparAPTye1tSCXsYSbzaIwBosHWIsMGDVvdEH81sgjv1x2c/2F6sEwrir/ AMo0mXNEqLuBNCr/7oXJqc2fApWvM1/7AT5X2Q+UOVoq2zZJodjrRzBhSbaiDkIt87R5rHNBn7y sKN+MDMk4sQK6QNrCtGO5OYq9Hx4ydmsBq0f1zyBm2iERYn994E22oUBXOoB4lpfbO3eVXOByO X-Received: by 2002:a05:6000:4694:b0:47f:9266:9bde with SMTP id ffacd0b85a97d-4858703f92dmr21415814f8f.4.1788813241837; Mon, 07 Sep 2026 13:34:01 -0700 (PDT) Received: from antoniarch ([78.212.37.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4858e239862sm25959116f8f.9.2026.09.07.13.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 13:34: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 v6 0/9] rtc: abx80x: add support for abx81x Date: Mon, 7 Sep 2026 22:32:07 +0200 Message-ID: <20260907203216.53192-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-v5), 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 v5: * PATCH 2 ("rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()") Handle the case of 0<=err<7 * PATCH 4 ("rtc: abx80x: properly handle shared IRQs") - probe: added missing configuration key unlock before writing REG_OSC - handle_irq: fixed the value being written to REG_STATUS * PATCH 6 ("rtc: abx80x: use regmap instead of I2C specific API") Changed the type of "flag" argument of "regmap_read()" from "int" to "unsigned int" in "set_time()" 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 | 664 +++++++++++------- 3 files changed, 454 insertions(+), 253 deletions(-) -- 2.55.0