From patchwork Fri Nov 18 08:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 22177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp63258wrr; Fri, 18 Nov 2022 00:27:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4olDLMgFvsJY30WCAGOgQUj279+i02/H2bu7Cc+4ufcJxSMmuvaW4RV8rFNoFO4vGAFTb5 X-Received: by 2002:a17:906:c24d:b0:7ac:2e16:a8d2 with SMTP id bl13-20020a170906c24d00b007ac2e16a8d2mr4987258ejb.584.1668760060803; Fri, 18 Nov 2022 00:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668760060; cv=none; d=google.com; s=arc-20160816; b=Zzei0+Vmd7TrEIo6QUL5gI0YXtpe2HNx7QWPG9gmSB1xdmr5rf5odEbQ10pxhAzlkv ER0YKO1/tLEVmQ3DkxlH7xiM374Vwu6YgcMKaMm9aadQzNQ7tDwkgA9MqBzBZwDEFcaU LdQdnVLPxALCJqlTjpoMWbknyk0ljvzSRw4/6JzyFNW5tjGImbIE+Lkkc3MB58hapOM5 sEPm358KHX/6rKIQUPTGSs6D2MOwVjviExad8hIN0XpzK7nN2HrGJrmfwkZyFzIA2Ao0 qvDBJReAcXkxs0SLnCMHGGEwrJbG1cSoGzGBu3qsJs2ffo4Lcbc95Opr//QUWuvC7UHM DHQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=GiBxSrL28JGP0DNg6s8GgXKGYTQyCsmgm2nfUqqKcn0=; b=EzofsV8gQe6oXSua+O7tfropoxoshSUGKXoZfK7S74Sg7fJfVRQEcdJIPOeSfGylOb 4O9XvEDJXgqsQfh/6BsWdvIKokI19ZZ5Wo2zOKDZa72+JhNCHOSUpkbsX6NHT8+fDrfJ rT8ss90/8/a6B0h2fz43MWyT03Olhu0n3rwS/TUaUNHjD1UDqAhQQmk8sgGW7RcCB7Gf xyDvG370c4cSVytthKOEqtUZsg3FYFu4Lrkw95Tr+SYxm02HQskjbkend3fd6Eb7EHIf SXerGtru/U4L9XLKKhwf1SE/hPsZX61eHSVTXBRcj1pAvktShPUuO80opNEh4VnoAxBY QywQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r9D596iI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170906794d00b007adb80fc5d0si2738895ejo.461.2022.11.18.00.27.16; Fri, 18 Nov 2022 00:27:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r9D596iI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241425AbiKRIZA (ORCPT + 99 others); Fri, 18 Nov 2022 03:25:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241391AbiKRIYu (ORCPT ); Fri, 18 Nov 2022 03:24:50 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8097268C55 for ; Fri, 18 Nov 2022 00:24:45 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id k8so8173658wrh.1 for ; Fri, 18 Nov 2022 00:24:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=GiBxSrL28JGP0DNg6s8GgXKGYTQyCsmgm2nfUqqKcn0=; b=r9D596iI5oH2Q20YxqLfmXNZWeSrDF+EeAgL8EC45v2B0xm5tb1c2LpX8OKlnVp7aE ULNvkfHu5Ocbi5YL4H/Mln5dGws81C/eAckKlZ25Ss6IVeyxE+RRkeOnwVc0avbpJCGv Dw7JyLiM6LIuSXOZ/ujnutUiBm7WauQxeYNdHxhR5+vK+sdAkhdwV+BKs6G4ZeigTZ3A 6sXxKgbzsA67/5GpBsKNv+Y7VemYH2/fWz4Ewlb6NbPsxfw9plx6xK2HNGNKvbb2+RMg 8pSGY+ko2IPUeBN3pyXYFXjnkU5Xl0j79pOg1S9fxeS5AZFCeSypmbbhZJLdhRgOFyYv 1dyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=GiBxSrL28JGP0DNg6s8GgXKGYTQyCsmgm2nfUqqKcn0=; b=Kvbxc8VcEpmZlwdQtC4YcVs3/36C811jz+E7SGx+o3bG3cgVsNP0bIhwv3jEBM81mR +e1GKD1s+QhXJPMAOh7Tfd1fIg4C5FMR3qN4kpEowcl44XzDtaqLLgN3VmoedmGSv0/y uGpvBa0UE84ParOH+iDqkth0OVW+W0LnyhIunzWc6CyZHdHvn+zg10mwCCAnwgpnNb64 dAbFaPQqnLW2q22NBhgRumVR9lho2EE/4v8ngn8KrgOl62gKNH9sAuAcUEf/P9we7y12 /fvcFJ72vEcWUgKykZMqtrHszjQlAxICKQ9fT+XyC+sgmn+vfrp6uzEMn/QGxjQBk9Ma QcSA== X-Gm-Message-State: ANoB5plVA5V66yqxyyvbTp+AIouRnL9tr3HOJISI7IaCZdDnC7ODW9NH 2hFD/aCh7f9Q6IOKrrjH7V8iPA== X-Received: by 2002:a5d:5960:0:b0:241:bd31:fecc with SMTP id e32-20020a5d5960000000b00241bd31feccmr2088932wri.635.1668759884009; Fri, 18 Nov 2022 00:24:44 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id m4-20020a05600c4f4400b003cffd3c3d6csm4070084wmq.12.2022.11.18.00.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 00:24:43 -0800 (PST) From: Neil Armstrong Date: Fri, 18 Nov 2022 09:24:40 +0100 Subject: [PATCH v2 3/3] pinctrl: qcom: spmi-gpio: add support for pm8550 & pmr735d gpio control MIME-Version: 1.0 Message-Id: <20221114-narmstrong-sm8550-upstream-spmi-v2-3-b839bf2d558a@linaro.org> References: <20221114-narmstrong-sm8550-upstream-spmi-v2-0-b839bf2d558a@linaro.org> In-Reply-To: <20221114-narmstrong-sm8550-upstream-spmi-v2-0-b839bf2d558a@linaro.org> To: Bjorn Andersson , Krzysztof Kozlowski , Andy Gross , Linus Walleij , Konrad Dybcio , Rob Herring , Lee Jones , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski , Neil Armstrong , Konrad Dybcio , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749821749471620780?= X-GMAIL-MSGID: =?utf-8?q?1749821749471620780?= Add support for the pm8550, pm8550b, pm8550ve, pm8550vs, pmk8550 & pmr735d gpio controllers providing GPIO control over SPMI. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 8c31a8f6b7e4..d65c9f2ece73 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1219,6 +1219,10 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8350b-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 }, { .compatible = "qcom,pm8450-gpio", .data = (void *) 4 }, + { .compatible = "qcom,pm8550-gpio", .data = (void *) 12 }, + { .compatible = "qcom,pm8550b-gpio", .data = (void *) 12 }, + { .compatible = "qcom,pm8550ve-gpio", .data = (void *) 8 }, + { .compatible = "qcom,pm8550vs-gpio", .data = (void *) 6 }, { .compatible = "qcom,pm8916-gpio", .data = (void *) 4 }, { .compatible = "qcom,pm8941-gpio", .data = (void *) 36 }, /* pm8950 has 8 GPIOs with holes on 3 */ @@ -1230,11 +1234,13 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pmi8994-gpio", .data = (void *) 10 }, { .compatible = "qcom,pmi8998-gpio", .data = (void *) 14 }, { .compatible = "qcom,pmk8350-gpio", .data = (void *) 4 }, + { .compatible = "qcom,pmk8550-gpio", .data = (void *) 6 }, { .compatible = "qcom,pmm8155au-gpio", .data = (void *) 10 }, /* pmp8074 has 12 GPIOs with holes on 1 and 12 */ { .compatible = "qcom,pmp8074-gpio", .data = (void *) 12 }, { .compatible = "qcom,pmr735a-gpio", .data = (void *) 4 }, { .compatible = "qcom,pmr735b-gpio", .data = (void *) 4 }, + { .compatible = "qcom,pmr735d-gpio", .data = (void *) 2 }, /* pms405 has 12 GPIOs with holes on 1, 9, and 10 */ { .compatible = "qcom,pms405-gpio", .data = (void *) 12 }, /* pmx55 has 11 GPIOs with holes on 3, 7, 10, 11 */