From patchwork Tue Nov 16 15:35:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 12622693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04749C433F5 for ; Tue, 16 Nov 2021 15:24:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE28961BF9 for ; Tue, 16 Nov 2021 15:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238157AbhKPP1I (ORCPT ); Tue, 16 Nov 2021 10:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238104AbhKPP1H (ORCPT ); Tue, 16 Nov 2021 10:27:07 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AECC6C061746 for ; Tue, 16 Nov 2021 07:24:09 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id d27so38374131wrb.6 for ; Tue, 16 Nov 2021 07:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Hb8StdvkhuwqjYrqbshLfc0V2nPtAGB1TlClikG+/W4=; b=kpgkmj9vddqDwV3u7YsBA/AtAr3+HZscJ0U59XnhXILqqXkV64ZffvqX45ZJM2lnO8 qtI9eArOnpdLw6XqRwz/P0mRsg5xp1a77F3i2Hd79L4kkpcIog4OTcxX1/X/0EYSgGDG 4EeixZwH5SoQbaEcFQkYB4rJXtBHfgjLwLAVDENd2BJggEyOziuhDqdthgybHXWMvhUO Nbfpojd2GbCqySHHbBzOE9++E3uAWfg696bahtCUuXhO+oMqYBpwGLFV7rMpyPOzUWQx o7KqNUpP+Zr5luZK9wPx1uXxsrMIB9JFWh4dMoufywtAGW37+DQCFo5LUoH8Aixc5Vjl UeFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Hb8StdvkhuwqjYrqbshLfc0V2nPtAGB1TlClikG+/W4=; b=w5lxcMiv6cAW5S/+w8l11bYlKJ7Miac7L7GnKXYXsVLAikZ2GfRhx5v89yzmilVs5u N3QCMOc3hg/zoag7RtzJNB8IZA958zyjw+ObBeKWYHzbcRKJQ6MYBOkTKmy7CmeRjzHp Jvk/oXqOBwiGN6w5H4eqUPHRTT88kOU2g3RI9pfUmOa+tXJekEk2isKeO9vrBeFhkqtY ZYIBgWf5dQyOadfZ73az8kFYZ9aVPLUkjEk5J9psZwIXEj693qq2bi8Xi5h5eJMz7cOa VG10a3IsfhabRDRyNkY9PnaWMa6vDeE8CPtAqk3+v/rlk4HvON3oRPQVHUD33yddbzFO Wp3A== X-Gm-Message-State: AOAM531tFHnGLO/r9Fsx28Cf0V3f4vfo+E3HrQRMY9qIpmsZ6r+6RsPZ 7HX+29txI628y+gdU8SOq+kX2w== X-Google-Smtp-Source: ABdhPJyx9E3jDaIaXCPSmT4h//ywS47dRwiYotz2zbdJMKuGHIZfXaLDRQeruZg/yFH8qRjzzTaEJg== X-Received: by 2002:a05:6000:252:: with SMTP id m18mr10258797wrz.117.1637076248101; Tue, 16 Nov 2021 07:24:08 -0800 (PST) Received: from localhost.localdomain ([88.160.176.23]) by smtp.gmail.com with ESMTPSA id u23sm18847352wru.21.2021.11.16.07.24.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 07:24:07 -0800 (PST) From: Loic Poulain To: agross@kernel.org, linus.walleij@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, shawn.guo@linaro.org, bjorn.andersson@linaro.org, Loic Poulain Subject: [PATCH 1/2] pinctrl: spmi-gpio: Add support for PM2250 Date: Tue, 16 Nov 2021 16:35:14 +0100 Message-Id: <1637076915-3280-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PM2250, commonly combined with QCM2290, provides ten SPMI GPIOs. Signed-off-by: Loic Poulain --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 5283d5e..a1a8a48 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1141,6 +1141,7 @@ static int pmic_gpio_remove(struct platform_device *pdev) } static const struct of_device_id pmic_gpio_of_match[] = { + { .compatible = "qcom,pm2250-gpio", .data = (void *) 10 }, /* pm660 has 13 GPIOs with holes on 1, 5, 6, 7, 8 and 10 */ { .compatible = "qcom,pm660-gpio", .data = (void *) 13 }, /* pm660l has 12 GPIOs with holes on 1, 2, 10, 11 and 12 */