From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796363457; b=5nvrvdRl2LWfA/PiWctiGW6W+4XYTh8SLgXGjy+sKZJAvdm82abMWYx/vEZRu51qgYlm L1DXgQDjOQcNy7NN3fFPwkP86rig+4EF7cj0WI6fP7IHAuv14P/BTXyTze+iG1Tu7cTNk Q4L6w+Ppg/a9Qmg+1sV4Zm0amFhkiGZ5xiQjz7R5D0mkVX9GdlgkTIj+GT3AJHekkwBHu VqeHqHPR4fdhU7+zFOhOV37g2gqMBpMfsFGvBflHBtPOzYtuofNQ5ZuyIxIe8tiISk1Qe yUAElxWLF5e6UVkCHg/SfU6M+vO7o66MUffodt865wyxO6yUKUSQt8lcMwOPW4FHxiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796363457; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-ORIG-GUID: X-Authority-Analysis:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-Spam-Info:X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=TNVldNvcK86rS+lcFjGZ1W5fkUahHqfSsBHFqoiI+wk=; b=V23iXMxB/+WBKNd9mMTWEXXb7Tqt9I643O8T62HU2S/Opybtju8iHOyekzKq1WGW0RVG icZFYYa0nceUrlQnNPXakftogWDXYZREJZYJpqhA1qXA7E9eb5heZTD/1GAGx5CXfQ3Qh GpBbGYKYJnw27+/tcpHf+HbYZLCInKxlPSBlEJMX7/Q4/52Zi8WJrEKpY9q4yw0bMClNG ZpjZpkeU3FAN6j2gAvHjRqx+M5q6A3CIFTb5tGe+7r1MAvxKi7vwB6KqKUs4qD6WWrAse w0tCz9am3coytHRyY0YIjZqX3xHahiJ80Y03WdnDrPGyXfNkYwAZChA7pYe0kjvoD4w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=pvyU4o1r; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=BF+7kWC0; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 764D9606A322 for ; Fri, 4 Dec 2026 05:50:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 764D9606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=pvyU4o1r; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=BF+7kWC0 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B45GscS2348618 for ; Fri, 4 Dec 2026 05:50:55 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= TNVldNvcK86rS+lcFjGZ1W5fkUahHqfSsBHFqoiI+wk=; b=pvyU4o1rRHzW+S+7 ANAqHH+YSbkl70Er1bNQv449GV98shfCFVzTchG4dRS3O25DxyJFDmiI6ZG3n1Hi TFqksmbStffjKOvxscDNqM17FHWVJZrfk/yQG4aR4lhixX/fmvHvWQY9dK4yxv3x NKD7GJQOuI8VjV1wukgALA7aoJj6KLiQ02gYoHHpGhz6mzOdxa1s6HVQS46MizvS REuaxKTfSDGRZYB4ROAOfU4E90HICTSAc8RR4hOdDhPIRXQ7DRw9SZzcqCvA8pZE E/YZs5h0cMU4hhnCbzms4BU3P/8Nwyomiw/If1yUmlBwSnGZw8d/DgNlB6f4Ju6r GRvZzQ== 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 4jbq7ug3a7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 04 Dec 2026 05:50:55 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b5361fb600so542944a91.1 for ; Thu, 03 Dec 2026 21:50:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796363455; x=1796968255; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=TNVldNvcK86rS+lcFjGZ1W5fkUahHqfSsBHFqoiI+wk=; b=BF+7kWC0eeEAb9pKGMIlydbWm8JLRymL4X6ggTpmyeAPMhvNSUsLefLB8mlQ3ejUSA NV1NAHbmhEQN5B69X7tP63jXQUQjQCw+yRgLzNtdSSlAsb/hYbWVA8pIDPJYv2i5aZbC p9sJZYE1NfaWh0XasxTxZSkXQjTgn7hvf0SmCW4zreN71C6hxsETnXNonDuSm6hyHH7I vBg3cqgzs+FWjuKQxIw8kt1uhZ1JA7uPdsmUJ/mucqXFH13o9Brn6ollPk6sFei2fMfi ifdMD3SyXoex8gStizRFZmlxlMs5eMPZACYoKHhktBCcUzyXHmKyOBkhnsXCkCFDRnoo qMRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796363455; x=1796968255; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TNVldNvcK86rS+lcFjGZ1W5fkUahHqfSsBHFqoiI+wk=; b=w5beo/21uSdqVESJMcN39iR8WVvzwChdeVhBZ9n/xRLErjUkIYNsWWIXn56wNpQ+gq JjoioVvYq4VCGpmNZEOMqLzCSfSubrP+3U1uWQV7/+vxwIX/IvTrRZntTyT1g/e4Qf1t OAu77AiMtQgoeMHo/QxIlMzp+zW5WhFwPgqZbL2fIAOwQfzW92cWo1tT0zV/ywPpBkfP 4L7pXIhGZZKhfuN48s0ahpHnDJSOVq3bMKf+jYUE3BMYd4OqUAXXk8m5VH0cgHpAaBu6 0zHQ9gXFvUPxSWs2yxOlYqxYFsaQL8zNxccCdLd0ShOpv677o3ch+m1IUZ8NsPx6WAHV RxnA== X-Forwarded-Encrypted: i=1; AL+hErH3IK0Vc5htqnwgKkbCCvlvvIh5HXjBb3J6jj/dKObGVZz+Fdd5BpndHYiL6M2P1yVQOWzX7MRyeIqr/CM=@vger.kernel.org X-Gm-Message-State: APuU4Z+hn5KR64TMwdnccEz7WNsY9DxFDTT/54fNTon5/8A8RSt3gM5Q ZyfB/1ztJUizKvN75P+pETPFFWZSbaLQwebwpFiMIp8/n4iYmZs4gGzFHGTXl1H7wJeCd7qAPFU iWJ8R6UGMcZa8G3nZsvV7G8wAK9fxFgoCy6XRi+CWB2S3BZ9DLI2fWPaemKufSLLrlT8= X-Gm-Gg: AZFdTZdi6rGFswwvp1QmJnBU7l8pAvKa4euL8FNA7QX3gTFCJDHl8ac0cDfTU7a+UBb qACdktRg0YdDq3/Q5gEjD5eHgq1HdTWNk1zYadFMiaKONawONq/3E/eo45phBf4BKiZrx4q82Ni evAfPC3wa0TrkaDfXNnTxtehrgRqzb3V7FPIbDbHUePXQu+pkemaZiNn1mgKDmfImk91w5leKzW VFM3LzfYm5pyQsCqKIJLxlEN0pQoCwzNdJqovgoPSoyLIGWdj4qDL6UkmWzzwTFeuJAhzpB2kOg cgcPq9/RfKqJUogDpYeG7l8h1CStC0H6yf6ijCyUwylsrUfSmyyjV8VcEXVihPzm2tmPGSYZKjs YsbG1B4WKsx8ytA3L7Zqe/O5JjF/zswDcL8h4Ywl6JM4eM6u+oul0HPAdZDievnjzCmC9 X-Received: by 2002:a17:90b:5688:b0:3b5:b5f3:52fa with SMTP id 98e67ed59e1d1-3b5e061c059mr842344a91.10.1796363454964; Thu, 03 Dec 2026 21:50:54 -0800 (PST) X-Received: by 2002:a17:90b:5688:b0:3b5:b5f3:52fa with SMTP id 98e67ed59e1d1-3b5e061c059mr842305a91.10.1796363454325; Thu, 03 Dec 2026 21:50:54 -0800 (PST) Received: from [10.213.109.130] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7843c25sm7584988a91.1.2026.12.03.21.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 21:50:54 -0800 (PST) From: Jishnu Prakash Date: Fri, 04 Dec 2026 11:20:04 +0530 Subject: [PATCH v6 3/8] dt-bindings: mfd: pm8008: Add mode constants for PM8010 regulators X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261204-pm8010_i2c_support-v6-3-55c4146e1bd4@oss.qualcomm.com> References: <20261204-pm8010_i2c_support-v6-0-55c4146e1bd4@oss.qualcomm.com> In-Reply-To: <20261204-pm8010_i2c_support-v6-0-55c4146e1bd4@oss.qualcomm.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guru Das Srinagesh , Liam Girdwood , Mark Brown Cc: linux-arm-msm@vger.kernel.org, mfd@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Dhruvin Rajpura , Nihal Kumar Gupta , Kamal Wadhwa , Oleg Keri , Burke Cates , Christian Cortner , Jishnu Prakash X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796363431; l=2975; i=jishnu.prakash@oss.qualcomm.com; s=20251014; h=from:subject:message-id; bh=k0dAzlc1xO1DIvtQa9QwSP3IAqPb6/PUW7sWWTZ2C9g=; b=3qTCf4L2XHt1fy8T0NoqPqNzGNRDfHzstzMYQbCwukNihtSvuwnPYbYI9DXl//svxE09Lsurk mDloMa1cbRaAi02puO9teOhFEgXfnyQCtfIZ0h/CpWOGVoY9Ko61MUR X-Developer-Key: i=jishnu.prakash@oss.qualcomm.com; a=ed25519; pk=g89pXdLVwRjdTeQ+uX1QzvBO346E3hQAc1N7fcTXgmk= X-Proofpoint-ORIG-GUID: RoOFyOC_-3FLDbehtV2eC3-GEU3MB2QJ X-Authority-Analysis: v=2.4 cv=fo9J914f c=1 sm=1 tr=0 ts=6b1254bf cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=b4tvTeB4hZa7ZnYZCL8A:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA0MDAyMyBTYWx0ZWRfX2wmaqxoTC7PF o/+o8CREJT/A7Sdh/1FyBTEEjXW5m5pDk7UwhunzS8HzjiQG4G5hsGqJrVfGqFaHpj5K0Fk2mc1 /d1EmGslzRsb4rROzL/GVT5MbZH57IS2iduoRx0b+28d3eKRmRhpsBMGWQsxVkbPCAvOa9pJ5CN FEl8uWDmKUQORk3LRDz4p9KElA6VJA4BKLpAtSxI4OWWMPK+p6Pnt9WYIZf1FmYNxF9T2Zt3oUb 8edRJAg9ntO19rQghIil+gkXhNOW5mIv9HReKYkWuJTW8xo/vJinO7bU45/v4JHo2cHjJOV412w /MDXwDCwL84864QKqaSVZzXQmy9PmFK4WTgEYrXwlqixga2oZ7GC/y3dunv771ftJxAIYXnWQ+T qAHKr531VKO/huxblpYjxo2haG8F5atzSsVUo128uhF9XY9b92uu9LgrGLA1ovQiJn51YWP29zi i7+Tm4kSy2xibaOCydA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA0MDAyMyBTYWx0ZWRfXwUiRUeLzLKPh 77k5O4LEWYQePMBr+85mlBFukvY5jm+WykPNf+VVQsMI7j4IOpcAzeSrpsOeksXRhVAz6L/sNcJ GFdAL4xgcqGtwZoQ2yWW66x1LUkbWLk= X-Proofpoint-GUID: RoOFyOC_-3FLDbehtV2eC3-GEU3MB2QJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-04_01,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612040023 Add macros for the raw mode values to be used by the PM8010 regulator-allowed-modes and regulator-initial-mode device tree properties. Also constrain the regulator-allowed-modes and regulator-initial-mode properties in the qcom,pm8008 binding to the values of these new macros. Mode voting is supported in HW only for LDO1 and LDO2 of PM8010, so add constraints to reflect this too. Signed-off-by: Jishnu Prakash --- .../devicetree/bindings/mfd/qcom,pm8008.yaml | 33 +++++++++++++++++++++- .../dt-bindings/regulator/qcom,pm8008-regulator.h | 19 +++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml index 2701aa755f31..64d4e26d16fa 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -82,11 +82,42 @@ properties: type: object additionalProperties: false patternProperties: - "^ldo[1-7]$": + "^ldo[1-2]$": type: object $ref: /schemas/regulator/regulator.yaml# + + properties: + regulator-allowed-modes: + items: + enum: [ 0, 1 ] + regulator-initial-mode: + enum: [ 0, 1 ] + unevaluatedProperties: false + + "^ldo[3-7]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + + properties: + regulator-allowed-modes: false + regulator-initial-mode: false unevaluatedProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: qcom,pm8008 + then: + properties: + regulators: + patternProperties: + "^ldo[1-2]$": + properties: + regulator-allowed-modes: false + regulator-initial-mode: false + required: - compatible - reg diff --git a/include/dt-bindings/regulator/qcom,pm8008-regulator.h b/include/dt-bindings/regulator/qcom,pm8008-regulator.h new file mode 100644 index 000000000000..26d5d5c427c9 --- /dev/null +++ b/include/dt-bindings/regulator/qcom,pm8008-regulator.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ + +#ifndef __QCOM_PM8008_REGULATOR_H +#define __QCOM_PM8008_REGULATOR_H + +/* + * These constants may be used to specify modes for PM8010 regulator device + * tree properties. + * + * PM8010_REGULATOR_MODE_LPM: Low power mode in which a small load current + * is allowed. + * PM8010_REGULATOR_MODE_NPM: Normal power mode in which the full rated + * current of the LDO is allowed. + */ +#define PM8010_REGULATOR_MODE_LPM 0 +#define PM8010_REGULATOR_MODE_NPM 1 + +#endif -- 2.43.0