From patchwork Mon Jun 7 11:38:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 455283 Delivered-To: patch@linaro.org Received: by 2002:a17:906:72d5:0:0:0:0 with SMTP id m21csp3224029ejl; Mon, 7 Jun 2021 04:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyPpF5I4vm3l21TaWpVMnJPaGUk6ZCQJ0mlURuQTLg0W4kOiJJPwsTp+PDoKNAoi5oK4p7 X-Received: by 2002:a05:6402:177a:: with SMTP id da26mr19677727edb.40.1623065996639; Mon, 07 Jun 2021 04:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623065996; cv=none; d=google.com; s=arc-20160816; b=EVwXYVzCqvYUSsrOcIKeZvsEBWF2Mh434ucGtkKr/38hpHR0b48esAvTU9X3ZQaSuP XENEVrYMLMz4SB2061bfXbh60iL21gEnpYq2SnylJutSNHwf1HKvgc5j330MeuL0h8gQ vtphsNX+S07Nf8Kip3aWIECZ86G3lx5Ur8Q99/J6kY9K6DhC60lYwr0ZC3HUGM7W/GB6 Fc5QDFxWVc6oz+nidrJOd2oDpt3Ai1zXeczmpyuYEqtIiN2z+EcJrpoXJRPDVvXlSJ9O R66UecPE7dbYaFdNuNaKbeqqecPzgg7Fm5/oblq3s6iNv/rBGoLYkCvORNRX3NFKc1To HTew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vZIfMhSvtEJ6asHNrQjDt1xp+fgKwv6Gaq0cGOsZKuw=; b=sNrVKIxiNL7kkP9WqIRJ2KiBxSUhi7kr/6/tPS5XxnUvnikF4mxTkwZyPlkf8FnGEw vSvvUiBGXEFSN764UJM4vnsUyHrRjdcSzwzX/pPBtV3R94cvzEXDE0CUt6lT9ofyi57n 02sn3SZqbPncaOVgRwzAOXSkxeR5HWr67grwVG5ziO/ySkE2aDrAu8nMG5Wy1SOKalwl SP4JLB59tvxYDdW3M4xx0528v5jok/wgA8hg33e3Enj2rXsY9R3H/eTUmfaH45M+2o81 KFDDd0WZDm+2P4nMfGmnKYq+YWcucSFw3oKNxfA2g0VQ8xJ/hnEEncojeXmaIJSt1jV+ UkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NuayGiOU; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si8407501edq.419.2021.06.07.04.39.56; Mon, 07 Jun 2021 04:39:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NuayGiOU; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S231286AbhFGLlm (ORCPT + 17 others); Mon, 7 Jun 2021 07:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbhFGLll (ORCPT ); Mon, 7 Jun 2021 07:41:41 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC933C061766 for ; Mon, 7 Jun 2021 04:39:34 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id m13-20020a17090b068db02901656cc93a75so11732059pjz.3 for ; Mon, 07 Jun 2021 04:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vZIfMhSvtEJ6asHNrQjDt1xp+fgKwv6Gaq0cGOsZKuw=; b=NuayGiOUMZyjjdhrOKE7sUlwR0V9thZBnTval9GvHCTHEP7OO18MEaRWPAXJIVfGCu WfuS4RtawKhx/JcU3+Hayu5dX/GSzszzc6HJfpl7Oo2SK/PWa5MqMYLIMFHMuCRk1A2G JJ3rtfQSpNol2B3xmU8SslV9RESBnapMDJZl3DgqmGhnjSCt1GnJuOjNscAZyeiqTWtw p+GJE8g5jBtf2PKl3vWZQnfZXCXiPXzuCfY155jrxle+HIqmOsYsagGp/nD8ACTSpWGk 4eBu0DiHE3tkAPljOo2SqtB7dxeR9Cd3JM0Nk5EbgAVLXufG682Zu40sxzepQsbxDK+z mqiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vZIfMhSvtEJ6asHNrQjDt1xp+fgKwv6Gaq0cGOsZKuw=; b=nIQC1PRJZWQbIJgBar+dwtfZ6i8quQnNd/YG7DQncc45jRa7VtCQJVcCA+8cNnO0mV AYdOLbtsl18nzrJyPJsjxN2JLXjqPQwXS9LyaIC53HcTSdq+mCjkXI1rxUzbzM/Ym0PE R0+P289oDzjCtrPokHzJKNdxJ0OFbSrCWyLKKfVhGVVFGw3iS0JW4N5SWtGSSfMKlV+Y 67nyjurP4tUToupzylFD+VXGnJCYTbp9712lw1zh/Bh/ks5kb2F+lHel1m6ZXbyFuX9T FRKW+X9h80GCIxsIffX4McKcHu2bzR0sNSPxi6gmvdLdscsdtqRmDVK6ITbk7a9U8vBV iV7Q== X-Gm-Message-State: AOAM533avl9E6IEePysQfgCRMjqTe/rh9sRqxzAFWVoEiXoffUgRhDc6 ZTjULoiNC5+3Ji8Cla2TgSR1tbxXQCidVw== X-Received: by 2002:a17:902:b48d:b029:fd:e7d2:4e98 with SMTP id y13-20020a170902b48db02900fde7d24e98mr17246691plr.55.1623065973947; Mon, 07 Jun 2021 04:39:33 -0700 (PDT) Received: from localhost.localdomain.name ([122.177.177.211]) by smtp.gmail.com with ESMTPSA id j7sm7223939pjf.0.2021.06.07.04.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 04:39:33 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Linus Walleij , Liam Girdwood , Mark Brown , Bjorn Andersson , Vinod Koul , Rob Herring , Andy Gross , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 5/8] pinctrl: qcom/pinctrl-spmi-gpio: Add compatibles for pmic-gpios on SA8155p-adp Date: Mon, 7 Jun 2021 17:08:37 +0530 Message-Id: <20210607113840.15435-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210607113840.15435-1-bhupesh.sharma@linaro.org> References: <20210607113840.15435-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SA8155p-adp PMICs (PMM8155AU_1 and PMM8155AU_2) expose the following PMIC GPIO blocks: - PMM8155AU_1: gpio1-gpio10 (with holes on gpio2, gpio5, gpio7 and gpio8) - PMM8155AU_2: gpio1-gpio10 (with holes on gpio2, gpio5, gpio7) Add support for the same in the pinctrl driver. Cc: Linus Walleij Cc: Liam Girdwood Cc: Mark Brown Cc: Bjorn Andersson Cc: Vinod Koul Cc: Rob Herring Cc: Andy Gross Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-gpio@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.31.1 diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 00870da0c94e..890c44b6e198 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1127,6 +1127,10 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8150b-gpio", .data = (void *) 12 }, /* pm8150l has 12 GPIOs with holes on 7 */ { .compatible = "qcom,pm8150l-gpio", .data = (void *) 12 }, + /* pmm8155au-1 has 10 GPIOs with holes on 2, 5, 7 and 8 */ + { .compatible = "qcom,pmm8155au-1-gpio", .data = (void *) 10 }, + /* pmm8155au-2 has 10 GPIOs with holes on 2, 5 and 7 */ + { .compatible = "qcom,pmm8155au-2-gpio", .data = (void *) 10 }, { .compatible = "qcom,pm8350-gpio", .data = (void *) 10 }, { .compatible = "qcom,pm8350b-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 },