From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4F022F28EF for ; Mon, 24 Nov 2025 09:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763977536; cv=none; b=VTsyRg6RmWvaBxtkagvR2/dIgwl6oNdi3zJWgj68lxeSsp1jAu1ZwLcRYAHuaYbgcQaXeTfXl8QRcWtiY+Vy9mKfXE5wz/7B0NhvtSwM7zG3cD4S3mSbSXgBZMAEBy4eXxb4o0SIQ+AySDuyvCTJwvs67bOhXYnLsNy0+uxn43w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763977536; c=relaxed/simple; bh=DBfqRAqXKMUSzdYStAkNam3VSfsHB3Mc9yXhM1SxT4s=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=upihxgjm7yKyrYwvoLPFYPoo81FxGz0UhRa3uBDxCETiFutHiwCq6oF5ZjSv4ielCjIA+jz9vjiPkOp7+2jgVyAR1fERDT64CgCCmgMwAhVl1N2Zv3TvxkgGKyL0YLwLo11bMr/UhO5eGMAza+U6d1S0WYiHXfcihlg5l5Sii0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=IRopIsat; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ETrAJ7U2; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="IRopIsat"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ETrAJ7U2" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AO8bcP82570986 for ; Mon, 24 Nov 2025 09:45:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=dw3k8txBXeUsj5vSE8wOlc Pq5C0txa9kd2GvuA+trbM=; b=IRopIsat3TKfQAfV0qA8SNRn/PKZhXJIyLG62C 0iAQzA2c+A/IK5ZJIPKFEhkDd3R9gbdjWz25FLAM9rCakBXmW6zMNa2IOzCKfubO JgV3Hy2EgzecFegIk1ibpjVNcw9LTcWpyV0XrnQy9M3ao1S/Jx0iR1WUSu1uH9Lx gj6fLschGdm3ilhNHvs9G6NsfvCzlHfK2KS4L7Kcw4/HGeoHSYxKWdpRU+oY9q16 GWgluY/dv0McQuQpJVFnOgu5sxWEk1VDtsv2gu0Cyj4EYV60zehCYWPyhFMRPllM u28SrIt3SD5/lDi17ozur3OAClsJgWAdx8drJ6mJp0m5rQ5A== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ak6ffcgw0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 24 Nov 2025 09:45:33 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-34566e62f16so4416429a91.1 for ; Mon, 24 Nov 2025 01:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763977532; x=1764582332; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=dw3k8txBXeUsj5vSE8wOlcPq5C0txa9kd2GvuA+trbM=; b=ETrAJ7U2+9m6iKCoPiTG1kC+oHJ2anHEvsrBFsDQ8g940yaK8uFfQwdls1hrPVUTcd /ADRz4fGaFhYPjg7ExOIEoNanFFvyszycm0oxV/0Ls88tG0JRtuwqDkFB5W+4LmJIb16 tiFx0BIJRKclzBgmXV2Irlxk+GriMvLDsfZWBH8Iwn3ZkjimMLwSZntfTUh+Yr7nLTSR HsOjVm3/DgipAojyStu5PVZclA5lOLQYSoswwR/fslczFzTNNNlgOQaIy0bX89bCciJI DnFjLIxkdtq+Rzc726VIO+rGNENZl1MRG5375Ua75u0lTZbqhlqut9B/oVqAdY/o7N4m paKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763977532; x=1764582332; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dw3k8txBXeUsj5vSE8wOlcPq5C0txa9kd2GvuA+trbM=; b=U33U5UD/tf5xr4JS+OM+Lym2AliC6OFZ/fqSCAZsHm3DFM7IMc4webNQA7m9dub4KA sFmG3CRk2NfS92ZLNaDq7qIAUr8rloXT8rick6HFh1X4XgryXJWQ5N7HN7A9j0GWSR8G hLjlOCpF3b45nCyGVaISampigGJElaXuYSVa4NOAfUIKCLFDkkmtcnhhEvfpn1pSjzUT hszkifl8oP3Cie8QSzmQpVcjCo2xc6uDn54gSJtzV0/guQeOFEeSKGGrPQf0BlynIEcC WkOg0uzW//s6vOcfHvknxhfp86hKOq9NUQSx1wjlXWa0KKqZsQjJcs/ZXmw0qzKVsQQh Biog== X-Forwarded-Encrypted: i=1; AJvYcCWddikmyQPzInzSN3NTjItY6s4bKz50KXeZCaXYzzo0Lb4QzIa6OTn61x/k9PiVtvQZDbTMoLTsUCdlRVo=@vger.kernel.org X-Gm-Message-State: AOJu0YyTJ88HZwxpTawFDIjpi7nJwH+mQJXfDuiDWOQRbTBIH078luKS jc2O4v6rSx6BtT9t9QOULTDrxnZDpw5xzNpiwK608U+CHsVgBF7FXj1JvLbiAJ8U5hTzIHTKoye 5KQalZcQ6983EJxTznuI84SLIwJgEdWh80DAf0Nk37u2LozR3Eg6hiAra22G1SOF9wzg= X-Gm-Gg: ASbGncv1wR5JKOTdZiSjczIu3dwUoZU18iT+u556uheDefbzLTnrjuf+bzovHzDC8Gr QOt6rZpsD2WRCwXyo15X/iCyEiptVEW9m+L3qZl13zZnGbObASlwmmiop2cOLrXZErDVgQAeuEQ SD9pcsioBxIUZzBPtk/N7+xJrgWhwh8CkD8jrxuTb07s8BZmMBVj0rowIetnd2uFZokm4R6SaTP ATG6uI95Fvw1PbLzNDHma4OlYbB0c3vJB8IKlIezcedvigpDy4u5uyvbB+AMCL1frVKkUwPBhEz n2Egw5s9ryp/GxvOkEVXMNY+rfVLGo1C1KeVczy4uiJ2O0etp4NCU6FGlUdZcOJx5o9cLDWwzp5 PmaHpcZxBPRW7a/BxtaRlmri7ojLiIZeyn0Blplv/4P5C X-Received: by 2002:a05:6a20:7d9d:b0:34e:4352:6c65 with SMTP id adf61e73a8af0-36150efa2f1mr11452441637.38.1763977532381; Mon, 24 Nov 2025 01:45:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHydF8yK65KpEqG74MQ8inowM3+9+4a9hPb2OgvyUdCJXxjZo+DVPelrOMPA5VAxjEAA8Vk9A== X-Received: by 2002:a05:6a20:7d9d:b0:34e:4352:6c65 with SMTP id adf61e73a8af0-36150efa2f1mr11452419637.38.1763977531855; Mon, 24 Nov 2025 01:45:31 -0800 (PST) Received: from hu-jprakash-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-bd75dfed99esm12668291a12.1.2025.11.24.01.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Nov 2025 01:45:31 -0800 (PST) From: Jishnu Prakash Subject: [PATCH v4 0/3] spmi-pmic-arb: Add support for PMIC arbiter v8 for Glymur and Kaanapali Date: Mon, 24 Nov 2025 15:15:09 +0530 Message-Id: <20251124-pmic_arb_v8-v4-0-d91dcbf097c7@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACUpJGkC/1XMTQ6CMBCG4auQWVvSHwrIynsYQkpbZRKh2GqjI b27FVduJnkn+Z4NgvVoA3TFBt5GDOiWHNWhAD2p5WoJmtzAKZeMcUHWGfWg/DjEltT10TQNk0Y oCXmxenvB166d+9wThofz7x2P7Pv9OZRXf04UhBKtTGtqxfWo6cmFUN6f6qbdPJf5QJ9S+gD6A rlZrQAAAA== X-Change-ID: 20251123-pmic_arb_v8-669d7715d3a5 To: Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , David Collins , konrad.dybcio@oss.qualcomm.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jishnu Prakash , kamal.wadhwa@oss.qualcomm.com, aiqun.yu@oss.qualcomm.com, Pankaj Patil , Jingyi Wang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763977527; l=3364; i=jishnu.prakash@oss.qualcomm.com; s=20251014; h=from:subject:message-id; bh=DBfqRAqXKMUSzdYStAkNam3VSfsHB3Mc9yXhM1SxT4s=; b=PaHhBt3CLZ2JN9xsC36QHFOkJgbyJoIfmn+N5JBIL3ih/3++OSlk0SWL7vH/3PPbrzYo5HHYy JNSNvcNIQA4CHDSbHB8EYRVVKhhUxIGMnaM2Ljq3o1kL6pFxgfhlwyO X-Developer-Key: i=jishnu.prakash@oss.qualcomm.com; a=ed25519; pk=g89pXdLVwRjdTeQ+uX1QzvBO346E3hQAc1N7fcTXgmk= X-Proofpoint-GUID: N5sa-nXLOJg03nPzRzHPizV3L467TIz0 X-Proofpoint-ORIG-GUID: N5sa-nXLOJg03nPzRzHPizV3L467TIz0 X-Authority-Analysis: v=2.4 cv=OsxCCi/t c=1 sm=1 tr=0 ts=6924293d cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=OUK7M_EUaPGKAuIlalkA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTI0MDA4NiBTYWx0ZWRfX3LMHK8D3C1PG wffHprkJACR7TdkkLzGR2uMRkZwnrHdnkl+qboRZmnWNRnesatBtz7VQYvwGjIesODM2at7tIGD FLDyDAl9uVhx12OpDfkWoFQoaTrU0+dVpVje81cyRXie0lJ3hZvP21qbkMBNa7x8ovTGjZGb7Av ywAw67rTDSKRFTDTRuMOqbo7ufeEQ63QM9e6gGW78KbNiQLx1U2AtjsP/AqB2SgxNPz3FPq3guY DETwx6COanZphbS9jE+FraDLNU7FmmXhioFyKM9ECtALmnkpwwVCWi1nw5SdAChU4nww4M8YWqv dtL7IqS+Syx1BDhFhEw9alz1C4Y5zeIiqq/IBUpdy9U+ksDdPzam6uKslHjGn//saFHq6PTyXjA aWjmDngs7+utD68De+F4C/TjKCWOEQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-24_04,2025-11-21_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 suspectscore=0 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511240086 This patch series updates the SPMI dt-bindings and driver to add support for PMIC arbiter v8, targeting Qualcomm SoCs Glymur and Kaanapali. SPMI PMIC Arbiter version 8 builds upon version 7 with support for up to four SPMI buses. To achieve this, the register map was slightly rearranged. Device tree changes are not included in this series and will be posted separately. Signed-off-by: Jishnu Prakash --- Changes in v4: - Collected Reviewed-by tags from Rob Herring on patches 1 and 2. - Made following changes to address Konrad's comments on patch 3: - Moved bitfield.h inclusion for alphabetical order. - Added mask macros for use in spec_to_hwirq and hwirq_to_* macro definitions and updated their definitions. - Updated if() check in qpnpint_irq_domain_translate() to use FIELD_MAX(). - Added helper functions _pmic_arb_read_apid_map() and _pmic_arb_init_apid_v7() for common use between versions 7 and 8 in .init_apid callbacks, to reduce code duplication. - Removed pmic_arb_dump_apid_map() as logic for dumping mapping table is now kept in a single place, in helper function _pmic_arb_read_apid_map(). - Link to v3: https://lore.kernel.org/all/20251024-pmic_arb_v8-v3-0-cad8d6a2cbc0@oss.qualcomm.com/ Changes in v3: - Split out some common DT properties into separate binding file and updated existing files to reference the common file for properties moved out. - Also updated Glymur binding file to reference above common properties. - Kept David Collins alone as maintainer for new binding files added. - Squashed kaanapali compatible change shared as separate patch earlier: (https://lore.kernel.org/all/20250924-knp-spmi-binding-v1-1-b4ace3f7a838@oss.qualcomm.com/) into Glymur binding patch. - Corrected comment formatting in drivers/spmi/spmi-pmic-arb.c to fix a kernel bot warning. - Updated definitions of spec_to_hwirq() and hwirq_to_*() macros in same file to fix other build errors reported by kernel test bot and removed a comment made irrelevant by this change. - Link to v2: https://lore.kernel.org/all/20250924-glymur-spmi-v8-v2-0-202fc7a66a97@oss.qualcomm.com/ Changes in v2: - Split into two series: SPMI (this series) and PINCTRL. - Included the DT bindings in this series, previously posted separately. - Fixed kernel robot reported issue by including bitfields.h. - Link to v1: https://lore.kernel.org/all/20250920-glymur-spmi-v8-gpio-driver-v1-0-23df93b7818a@oss.qualcomm.com/ --- David Collins (1): spmi: spmi-pmic-arb: add support for PMIC arbiter v8 Jishnu Prakash (2): dt-bindings: spmi: split out common QCOM SPMI PMIC arbiter properties dt-bindings: spmi: add support for glymur-spmi-pmic-arb (arbiter v8) .../bindings/spmi/qcom,glymur-spmi-pmic-arb.yaml | 150 ++++++++++ .../bindings/spmi/qcom,spmi-pmic-arb-common.yaml | 35 +++ .../bindings/spmi/qcom,spmi-pmic-arb.yaml | 17 +- .../bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml | 21 +- drivers/spmi/spmi-pmic-arb.c | 304 +++++++++++++++++---- 5 files changed, 445 insertions(+), 82 deletions(-) --- base-commit: 6a23ae0a96a600d1d12557add110e0bb6e32730c change-id: 20251123-pmic_arb_v8-669d7715d3a5 Best regards, -- Jishnu Prakash