Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3007231ybt; Mon, 22 Jun 2020 12:28:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQN7kXJ2QuEyebeg+FBE9vkD+XZKGLcu0mG/5fvuxDZtXz7kID2VgJ5ItJ0Mgwj2ynXbIe X-Received: by 2002:a50:fe07:: with SMTP id f7mr18767790edt.315.1592854100994; Mon, 22 Jun 2020 12:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592854100; cv=none; d=google.com; s=arc-20160816; b=mlV3CkgYEGshRSsxVuHiJmoTyf5FrhgWOpPEt4oqfL8o6PTYnHzagb1ez5LiqmpylX G662yXDMTGNYR1nNYaxrxIbp8ewKlaMCp8La8lvDes08kOxSQAqT226shNGvebDcqMFr 1GK04un9YzE3W9z+Frry+WoSpOHlMLcp9FaB9wccSEv5jmXOp7a1yZdoc03kN46C/aYb ZGY+SKG7KGWdlLzAfJM74XRQ5m2FSBekgDLbHNDl7A+963MnDQ/q2ixFNBQNquGvb2da rRSDHxVJcLbRSk7t9NAi/78jS3wbhOBXjQOkMVGTOfWs+eeBOBpWmFj+2KVsrfChut5u giUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vOaD65bKJPMimt94w6Iz9NW+9a5Iv3mlmDas8EqB+QU=; b=JVTbjo3tzqTAz1ywHrCjbeoq7PeBRj33YDliItfeRyhz2GMhlFwZ1ZOApAsJ0dXImR DToRotj/PAOLkSiLukfO5PfMPuQ0L7tKQJ7Yn934gkFHh08uq1SPIEMYS783o1MkzR3w 0IbHyza3reey4ZWXXnxZKxT+lugD5UxkLjgrlkHc55+Aqjf1FSZ8iGkdVnhE2e1ir7cq bvltKS2BEpaKbDQQ64kYJDTXubiPDdK/zMwHPVciEIRLqMyyxRNkvN91yvAew9HfVMtR abbpr2VGPd12eHH17nk18551AlQIPVKzXomGCnMn+azEkwUEtdBm+HQRSWbDVn3+JV4V aizQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MRugXwQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a41si1372152edf.30.2020.06.22.12.27.58; Mon, 22 Jun 2020 12:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=MRugXwQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbgFVT0O (ORCPT + 99 others); Mon, 22 Jun 2020 15:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbgFVT0M (ORCPT ); Mon, 22 Jun 2020 15:26:12 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBD5C061573; Mon, 22 Jun 2020 12:26:12 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id dr13so19166971ejc.3; Mon, 22 Jun 2020 12:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vOaD65bKJPMimt94w6Iz9NW+9a5Iv3mlmDas8EqB+QU=; b=MRugXwQO3Oyjdah+oDvGpsOeVIq44jEDMkQhxKQQDLVf6nbdcT6FtkLRGDyCwh5/KO oPU8iqWdzy55TDiPY0N9t+w+M5hswnCaoAoKHKBHDQ9NtLSpIQO8q1jQF2RMhIOXMV3O kZSIaHzHv4PzZ6kvA4t86pZmzuu41yNpMDYqXWs9IFdL+718J7v5ueoKbpd3ryZKG4ES GEMhRRH8FTP17ckp8I3q8BrjoPrBxpbhLER4yetAYtDM47DVGb1pZZ+/LT06+KX/KJE1 w2BEx7fdbWaQyKcWwfY4niMqtgxRNXzCuocP6EwaPgMjgbgc0SmC1/727i7v6BcuyfTM XIRg== 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=vOaD65bKJPMimt94w6Iz9NW+9a5Iv3mlmDas8EqB+QU=; b=NtshfQSQkqJ+hPVt4LRMfre3x3lT6nmb4Eh9P4T0lUdtf2PvtmT3z1zo3bhXa5IRHp khzEBxBEF2VfhMuS8HFlNYgaH7viersiBkDx46fPtGh4sTRVQR8GsB8vBNx4eV5/V3No BjA4uk1jaGonbgYIqM0KdfM6v8h5r4jaBBfNnPBuPpuhBLm9a8zGRRyQ9OLguOdKTjhf 7/T4+QOyEpHEW1W7os6db4+086DuH0RZRjwCy16B/c8anopcusnBsYex/9SV/cG6a5PU K+M/CztzF95N+cvOBafvM6LQ5hbHfKURqAE085ve0RD6am8FcCV4wLwXEWqF6Bm3pBi0 Gzag== X-Gm-Message-State: AOAM533zIRgxmApPbV7EeO/Jjg45251lhQdNSQExc63lPGxhzMpMoVyQ MYab2htSlcoqv141zhP7dAE= X-Received: by 2002:a17:906:e2ca:: with SMTP id gr10mr7130578ejb.81.1592853971053; Mon, 22 Jun 2020 12:26:11 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id d16sm4043336ejo.31.2020.06.22.12.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 12:26:10 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Linus Walleij , Jassi Brar , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Sivaprakash Murugesan , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v3 1/7] pinctrl: qcom: spmi-gpio: Add pm660(l) compatibility Date: Mon, 22 Jun 2020 21:25:51 +0200 Message-Id: <20200622192558.152828-2-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200622192558.152828-1-konradybcio@gmail.com> References: <20200622192558.152828-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for pm660(l) SPMI GPIOs. The PMICs feature 13 and 12 GPIOs respectively, though with a lot of holes inbetween. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index fe0be8a6ebb7..95ca66e24e7c 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1118,6 +1118,10 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pma8084-gpio", .data = (void *) 22 }, /* pms405 has 12 GPIOs with holes on 1, 9, and 10 */ { .compatible = "qcom,pms405-gpio", .data = (void *) 12 }, + /* 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 */ + { .compatible = "qcom,pm660l-gpio", .data = (void *) 12 }, /* pm8150 has 10 GPIOs with holes on 2, 5, 7 and 8 */ { .compatible = "qcom,pm8150-gpio", .data = (void *) 10 }, /* pm8150b has 12 GPIOs with holes on 3, r and 7 */ -- 2.27.0