From patchwork Sat Oct 19 11:50:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= X-Patchwork-Id: 13842709 Received: from mail.mainlining.org (mail.mainlining.org [5.75.144.95]) (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 D28F31E049C; Sat, 19 Oct 2024 11:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.75.144.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729338652; cv=none; b=SmBTcHskgRNBS0801Qr+j/9BRc8FRzDKx9+GeNYvjd1LMF2p0R16OrqLx8q2+NRyDeRYw+KefxleMEbKLnUqx2PxOccNiTezuawwyUxX9plgNXVR2CHfFJ0GK2TRlpUSV8PfCgEJwpUTOvMvj/2r/vSOygCdETfBYqHQx1IBMRw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729338652; c=relaxed/simple; bh=lD7Z5J16+ZW7jj0xA29KakGtzo/Qo18WuBFRIMXCgUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z/pZmztlzi0NCifDIApTcOjjJ2HvhUezDQ3HhpC+P6Kd7tehSHuDD6k7jw5L5KZ0IiFkTRZ2wTiDM+psMnJWdBWypf8L/h/M0m0XhlOnUFHIGLvURFkHaItL6DMPkWbWJNRj8PubQwJwQz94ia/hfaUvzWACYkobvUhfGDAaKRI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=cRL2yetM; arc=none smtp.client-ip=5.75.144.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="cRL2yetM" Received: from [192.168.1.130] (51B6DD9D.dsl.pool.telekom.hu [81.182.221.157]) by mail.mainlining.org (Postfix) with ESMTPSA id 45402E459E; Sat, 19 Oct 2024 11:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1729338642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=84UkJxh0Dni49KkElyBD9QL3bGo5S0yZi1HX4sLA6Es=; b=cRL2yetMc8SmhpXr6wkmi1x/wALsWy4EFMSKbcqdUVinhaEmgMw0L/MKp3gYVQdm1UQUCK clotp6hq/OV+AYAg1fzkGRskDc+sQGq04vOZ4hbUn7IhCz+Xd74UA0bagjxzG/IZ5UBLoN 9IPa5UXef+lTepe3yagdqKpu7dLL5/SnhwqyuRyF6S1vqExiL4+LFdTW/cSMASKpzCJPTC R+sTHYLpjq0VoWP3au4bM1OPwHf+fgc7ZKIuH5QZikAjbaicNz/SDhTy8UiCcInqK7FNal JZZtPVDzjDS8UPQiWV3Yute8PD8ntGYSFTmuki+3XzYkYZd+N3fq04UEsLKJlg== From: =?utf-8?b?QmFybmFiw6FzIEN6w6ltw6Fu?= Date: Sat, 19 Oct 2024 13:50:39 +0200 Subject: [PATCH RFC 02/14] pinctrl: qcom-pmic-gpio: add support for PM8937 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241019-msm8917-v1-2-f1f3ca1d88e5@mainlining.org> References: <20241019-msm8917-v1-0-f1f3ca1d88e5@mainlining.org> In-Reply-To: <20241019-msm8917-v1-0-f1f3ca1d88e5@mainlining.org> To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Lee Jones , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Joerg Roedel , Will Deacon , Robin Murphy , Srinivas Kandagatla Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux.dev, =?utf-8?b?QmFybmFiw6Fz?= =?utf-8?b?IEN6w6ltw6Fu?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1729338640; l=1075; i=barnabas.czeman@mainlining.org; s=20240730; h=from:subject:message-id; bh=lD7Z5J16+ZW7jj0xA29KakGtzo/Qo18WuBFRIMXCgUw=; b=wBsmI82ji2gGlqWChhszxmibZWvyY8BDUS5pQRj8cEcI7aZBalWK2NDTRmGpqdbQfO40cowY+ 0t4yDlP/1CMApp/tmqx3Erk67q1yS8cXrOEiPdWceCOFKRqz8RObwSL X-Developer-Key: i=barnabas.czeman@mainlining.org; a=ed25519; pk=TWUSIGgwW/Sn4xnX25nw+lszj1AT/A3bzkahn7EhOFc= PM8937 has 8 GPIO-s with holes on GPIO3, GPIO4 and GPIO6. Signed-off-by: Barnabás Czémán --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index c33af2d6677846a4c43fc817e7b01621ab220890..b1140eaecd32de90e4ae2eafb1d0e0ec939e24bf 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1226,6 +1226,8 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8550ve-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8550vs-gpio", .data = (void *) 6 }, { .compatible = "qcom,pm8916-gpio", .data = (void *) 4 }, + /* pm8937 has 8 GPIOs with holes on 3, 4 and 6 */ + { .compatible = "qcom,pm8937-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8941-gpio", .data = (void *) 36 }, /* pm8950 has 8 GPIOs with holes on 3 */ { .compatible = "qcom,pm8950-gpio", .data = (void *) 8 },