From nobody Thu Oct 2 02:15:09 2025 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 D7656314A95 for ; Wed, 24 Sep 2025 16:58:06 +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=1758733088; cv=none; b=NHhJca+RdWjGfCBqSdL7sXDZYduzV1sd2ZToVGRstEf9xGYaovYb2Py9G/xuRGZLZG3HEx7EQWgazB5jNFx+u88nHqc9DecnE85dE1VWBkU3vtaUwADx7uJYZ5wX6nN256t9UFRodFlov0cYIBEK9gwBIZNLyYDjI9J65Jrgfs8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758733088; c=relaxed/simple; bh=IGN5U7nLchdIJ9+t4kEUHTtURx48mGfXTiNwIvV2Y5Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=unP8KQ1rMkJvfVjrj1e0DioZ/es/csqunzXH9B9wj+pBw7z4S696BQHl+6iDyCxXLByriGyK9gdLNvdcDZixmLnkN5h6JdlPQxYOtz5OVj0/NqOYHF+WWRx+E/d4cLgsvcUBnr3aUnZZceiXbkjcUFF3hguaL4DgqMzsO6g8qqw= 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=ktWUXseM; 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="ktWUXseM" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 58ODQ8EP001992 for ; Wed, 24 Sep 2025 16:58:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= e/BkY1LLI9ozyqQ6eUzCMLS/ra6VSlcuobkeZlX9n1Q=; b=ktWUXseMQyWJDsKA C/fsG6tBFa1RLK5wwNfo+p7uNbGhcTx1IcOBRe9hWYOJx4o03YqITOQMFia8SNdc LDN1ucMuPMM7gxJU1cXn5zIDmKeBkgKN9E0Bq9VYyQePhl8YoMf425fpxPGkM6QG 3F32HzkYVsRWyGE3fxcsfnPmyrmp9Mg4QYslNgJcTo1a6tRp/JW+gLIVYqs4gpXW DfD6mMFVkKygGNWoTraoYSkTEBHefzNHIw1z/smD7GG+qPrs/oXvNElcDoH57wlQ Yq6MU6Xf/o42H7NcjP2OFZMRMgGZcjp+ieSrb9dx0CFZkxLgEjh8ypaLCjH8pDWU st0W3w== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 499k98n44m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 24 Sep 2025 16:58:05 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-277f0ea6fc6so192545ad.2 for ; Wed, 24 Sep 2025 09:58:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758733084; x=1759337884; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e/BkY1LLI9ozyqQ6eUzCMLS/ra6VSlcuobkeZlX9n1Q=; b=gDZDRVSmsRFLGhKIofC+QBzQk3+C28MAvjkP+4neg0suu4lEYwPZCerzWd8AQ1DXLe ZFh073H2ir9EN7r8CeyIjCz4ke2krxD2vS2zkBsuY2WHREXBRpirwitz9hcfTOEGbzfX hwt27qVQqHWOrZoqdQaZRbPRHKl7HltiZw6LOvdDOum2+qCUe28MS8APYQN3THnpvZIw 39cc4Bp7qyIrDKoy/UeQrY1qRj5j0Cd9GzTz6kqhAQR1ETicwNNCjn3XqbaXl+ZGpRyR PbRDbaqC5nRCPcal+IUyVAo7LpTKHu2iwHjyxlEern5abKujqFc+m4jX8xOu+NcuV+6c R85g== X-Forwarded-Encrypted: i=1; AJvYcCW+I908uCQzJXGzUBkOTqoDSYx5WKFCx1sEHuGZlzZOy9ufTgs0u7uO+kkopFFRkTKVvIPD/Qj/e03IxIo=@vger.kernel.org X-Gm-Message-State: AOJu0Yz4EV+ieSrNXj3DRlr1z9517lbRrEj8XfXJGg6ezIB1C1wFb4GS olBH9zM1KWZDrzoCdASE9it7d5ilNCLV2CY+CzBe7RkjXfHwBnIqRPnv0SWncPj/MarLbabxr3B FfiXRKPWpnDDjxTPaTpS/1U7FQGixSlNuUdA+2FYvxwrSMBG85NQY433e0XikpzLaBk4= X-Gm-Gg: ASbGncveX1/IdIp6Q1QS17AJD8bivW7bTWjSqbQ1tWZs45CmjezfisrYe/N8sF2QGzx AlcoRxe0kusnaJnNYMBOpPzpw94As7qeQAWN8ixdmwsygTWR6IgJ/TSk28C2FnUInoilVz0etQU kA5DYzibxI7Mmtv/bwh17l47SBvm8UnojiXNbZxj3Zm0cgb4jzsrCY6svDqBj/VtrNcFqtR68XF bFnv0yRY7GrUNOCZPqRT6RvsK0/+HCCkAsOOM5RAJEgXhEgMxtL8Ded6w5vUryt5A5TUiV77ny8 1r4e1BvduBcMPydXhGtj6HF1J26L8GrOE01wJIZJ/B2pKfwdubxyVVbW3Xa4P7yC33NA0VgJfri KNRwrdOnowWmnBr9fB5IsVcZI5A== X-Received: by 2002:a17:903:2446:b0:272:a900:c42b with SMTP id d9443c01a7336-27ed4a5a862mr4251755ad.31.1758733084212; Wed, 24 Sep 2025 09:58:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELB6uENUsQUxLp0glYE/434Zg0JWgqKtx8Rxei2PPhvfpXf+pb4eQQCxhGPcpV674wIaiJZw== X-Received: by 2002:a17:903:2446:b0:272:a900:c42b with SMTP id d9443c01a7336-27ed4a5a862mr4251455ad.31.1758733083514; Wed, 24 Sep 2025 09:58:03 -0700 (PDT) Received: from hu-kamalw-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-26980053078sm197415895ad.10.2025.09.24.09.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Sep 2025 09:58:03 -0700 (PDT) From: Kamal Wadhwa Date: Wed, 24 Sep 2025 22:27:33 +0530 Subject: [PATCH v2 1/2] dt-bindings: spmi: add bindings for glymur-spmi-pmic-arb (arbiter v8) 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: quoted-printable Message-Id: <20250924-glymur-spmi-v8-v2-1-202fc7a66a97@oss.qualcomm.com> References: <20250924-glymur-spmi-v8-v2-0-202fc7a66a97@oss.qualcomm.com> In-Reply-To: <20250924-glymur-spmi-v8-v2-0-202fc7a66a97@oss.qualcomm.com> To: Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kamal Wadhwa , Jishnu Prakash , David Collins , Pankaj Patil X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1758733076; l=5744; i=kamal.wadhwa@oss.qualcomm.com; s=20241018; h=from:subject:message-id; bh=QseB4mSAc/+LmgNpuRoU87i6+aLt9O4zwSfWCRie4MA=; b=mzOhlYvbIvccUK6x+yxcRpMAVEJ6GltSwQfOgskJZVtSNsYe3MdcD3v9gED1GZ2L2fWamso/x +TEtZBhu7I3DRKqL0bIiglc3RQ0O7tF2r64UGvo36ypgzXdeUvV/6Qh X-Developer-Key: i=kamal.wadhwa@oss.qualcomm.com; a=ed25519; pk=XbPE6DM5/mJi2tsiYwMCJCZ4O5XPMqColJRlGVcM7Hs= X-Proofpoint-GUID: OBBm24uaglrPTHRFtPTERurMoVsbmNX9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTIwMDAxOCBTYWx0ZWRfX1ooc/vcJ6veu f4wRXMqnJyIb3vYuqJdvqIRd9CPv21Ro6Z9weIgFL8nemr2ckf7SiT7XErXcGvmJ8eRpK7RZs5S le+DTwTdQQxR9VzlWW21NRzGlpnN/zTvf+PNxXij/OscSdJO8vISf9tDRQgsQ+wMl8dBO6AFw+s 6StECsJw/JxTZqben7Pd+YUSdtF4FQ/xj1Oj1soko4VUnb35HGt6vyYVgY3wxmSgKnSv9EqyGgp WTkBF4VGn3bMK29gUieEMKZ2KPQx7IEWaokUjfH6VQXYkZn1ZG99mbQsrpjF4//iOUMbD9BTnit wwcR1CfmIRR9Agde6SCAbj/EhPUUOnQ7tQQT0X1yUW6SKAZNqF0p38VINpVSW9CjPhS/7C6O2zJ IxqqhjNM X-Proofpoint-ORIG-GUID: OBBm24uaglrPTHRFtPTERurMoVsbmNX9 X-Authority-Analysis: v=2.4 cv=Dp1W+H/+ c=1 sm=1 tr=0 ts=68d4231d cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=yJojWOMRYYMA:10 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=t41Tp4pyULMMg2XcS3IA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-24_04,2025-09-24_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 adultscore=0 bulkscore=0 impostorscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2509200018 From: Jishnu Prakash 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. Add a new binding file and compatible string for version 8 using the name 'glymur' as the Qualcomm Technologies, Inc. Glymur SoC is the first one to use PMIC arbiter version 8. This specifies the new register ranges needed only for version 8. Signed-off-by: David Collins Signed-off-by: Jishnu Prakash Signed-off-by: Pankaj Patil Signed-off-by: Kamal Wadhwa --- .../bindings/spmi/qcom,glymur-spmi-pmic-arb.yaml | 158 +++++++++++++++++= ++++ 1 file changed, 158 insertions(+) diff --git a/Documentation/devicetree/bindings/spmi/qcom,glymur-spmi-pmic-a= rb.yaml b/Documentation/devicetree/bindings/spmi/qcom,glymur-spmi-pmic-arb.= yaml new file mode 100644 index 0000000000000000000000000000000000000000..e80997a5fb4bcf59328e49c8b3e= 68c9511176a8c --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/qcom,glymur-spmi-pmic-arb.yaml @@ -0,0 +1,158 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/qcom,glymur-spmi-pmic-arb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. Glymur SPMI Controller (PMIC Arbiter v8) + +maintainers: + - Stephen Boyd + +description: | + The Glymur SPMI PMIC Arbiter implements HW version 8 and it's an SPMI + controller with wrapping arbitration logic to allow for multiple on-chip + devices to control up to 4 SPMI separate buses. + + The PMIC Arbiter can also act as an interrupt controller, providing inte= rrupts + to slave devices. + +properties: + compatible: + enum: + - qcom,glymur-spmi-pmic-arb + + reg: + items: + - description: core registers + - description: tx-channel per virtual slave registers + - description: rx-channel (called observer) per virtual slave regist= ers + - description: channel to PMIC peripheral mapping registers + + reg-names: + items: + - const: core + - const: chnls + - const: obsrvr + - const: chnl_map + + ranges: true + + '#address-cells': + const: 2 + + '#size-cells': + const: 2 + + qcom,ee: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + indicates the active Execution Environment identifier + + qcom,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + description: > + which of the PMIC Arb provided channels to use for accesses + +patternProperties: + "^spmi@[a-f0-9]+$": + type: object + $ref: /schemas/spmi/spmi.yaml + unevaluatedProperties: false + + properties: + reg: + items: + - description: configuration registers + - description: interrupt controller registers + - description: channel owner EE mapping registers + + reg-names: + items: + - const: cnfg + - const: intr + - const: chnl_owner + + interrupts: + maxItems: 1 + + interrupt-names: + const: periph_irq + + interrupt-controller: true + + '#interrupt-cells': + const: 4 + description: | + cell 1: slave ID for the requested interrupt (0-15) + cell 2: peripheral ID for requested interrupt (0-255) + cell 3: the requested peripheral interrupt (0-7) + cell 4: interrupt flags indicating level-sense information, + as defined in dt-bindings/interrupt-controller/irq.h + +required: + - compatible + - reg-names + - qcom,ee + - qcom,channel + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + arbiter@c400000 { + compatible =3D "qcom,glymur-spmi-pmic-arb"; + reg =3D <0x0 0xc400000 0x0 0x3000>, + <0x0 0xc900000 0x0 0x400000>, + <0x0 0xc4c0000 0x0 0x400000>, + <0x0 0xc403000 0x0 0x8000>; + reg-names =3D "core", "chnls", "obsrvr", "chnl_map"; + + qcom,ee =3D <0>; + qcom,channel =3D <0>; + + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + spmi@c426000 { + reg =3D <0x0 0xc426000 0x0 0x4000>, + <0x0 0xc8c0000 0x0 0x10000>, + <0x0 0xc42a000 0x0 0x8000>; + reg-names =3D "cnfg", "intr", "chnl_owner"; + + interrupts-extended =3D <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "periph_irq"; + interrupt-controller; + #interrupt-cells =3D <4>; + + #address-cells =3D <2>; + #size-cells =3D <0>; + }; + + spmi@c437000 { + reg =3D <0x0 0xc437000 0x0 0x4000>, + <0x0 0xc8d0000 0x0 0x10000>, + <0x0 0xc43b000 0x0 0x8000>; + reg-names =3D "cnfg", "intr", "chnl_owner"; + + interrupts-extended =3D <&pdc 3 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "periph_irq"; + interrupt-controller; + #interrupt-cells =3D <4>; + + #address-cells =3D <2>; + #size-cells =3D <0>; + }; + }; + }; --=20 2.25.1