Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2267697ybt; Sun, 21 Jun 2020 14:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEexh1LEFlBDAys58zmBIqwuYDm6f3MFOoiYvf5s7RyW+Q2jMVeAH1raZnxWHN3Pr3OBGg X-Received: by 2002:a05:6402:1fc:: with SMTP id i28mr14558977edy.63.1592775648424; Sun, 21 Jun 2020 14:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592775648; cv=none; d=google.com; s=arc-20160816; b=Y4FdGFSIfY3a55m5s7kcjPvpiDQTyn5Hy4+YR0oBtEDgXYHqvgM+2kas46JcsnY/gO Cjb4HXCK9n2Z6/82Cytk5k6P+XZNqtOFhnHuNP/5oPQmRQ5HkxXZ8etxbn6wkU+Dun1y lbKz+JEOM1F/3dBPyMXS74hiiEGSLoebvzrF3vWhZGUhFRZOnkR4LANR7hh9ULQ7357l zduZfXB7+1Od3+HxH/pRiYXCEB/f0fy/eMxACxc0+twR3nSrbhFI1kBIGsVFb/R2LUE1 JCbFAAELoCtVd11JDRSm9HxT5PRa6b1/xE4jlDQR5RMuQEMZ/FrmM7kiDKqsMbTzMk1G 2wwg== 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=zSeVYXCnlkRNrAhVDYlbfMaXEy0KgZfqCs2mikF1f8M9z86sA6WwA4cnhYyj6uqol9 ANuj1YKrLXQ4t93jcBUaSiXzMMFYyooZ1a2cvmCwXTYdA9Y5UMlcsGCQx+TFDdAbZ/W+ y21wZ+dehN55iccIt1FsYPJi3h5++MKs/O5K9glujnIa0YHQMC5bWTM3u26k9dJLNcej mU2KrlAQWJm9c5NvjgtRZdiRXOWFjqhReOK8el2PRBxzSRDOp2PdadkmnbgVaOOjAcYQ 3C+JlPbx79nOwi9AHipMYOls6aEv0gpSlIoL1x1FSp3IhKg51de6Td+qtUoLmwOW63wR xl4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZfRvOks8; 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 do10si11496705ejc.671.2020.06.21.14.40.26; Sun, 21 Jun 2020 14:40:48 -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=ZfRvOks8; 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 S1730795AbgFUVic (ORCPT + 99 others); Sun, 21 Jun 2020 17:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgFUVib (ORCPT ); Sun, 21 Jun 2020 17:38:31 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B89AC061794; Sun, 21 Jun 2020 14:38:30 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id dp18so15988291ejc.8; Sun, 21 Jun 2020 14:38:29 -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=ZfRvOks8x4eZKFmfE5Tv5fnxiJyIVChgDMdjNtBw12PjfWwrFldU8WqcrGpDwf+/WL hfKvZ7u9Xq8/pA5lCLtCqR6hXy9YlrBhOyDyOu3O5EIYJkjpGsdJT6o4r7Wo4tdb+uYZ Z3NgGjV7qrxHLoiaxg4rO7R0s4XPFr4mh5uztKCQiac2ngKnfVMkdDwMig8ROS9tU5mY Nm3kROG6j4afGYwIYjBmM8+b/RW7y2Vya1e7WtCpm7sNlpOwGhEdjW0urESHGmqJyTyt SropEABhi92hQescEeipy6QdeJ6n9qNViix04s0BNxsqcyi3g7THxe5OWaOZ9+Svp1lT Bviw== 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=LxK2pEOr44AzV1JEZIfCt8ArRpllgLxlW9HEWAibwcH8IgpVece0jJrSvBSg0BbGkF 3CP+Sj1JmfN+Bwsi2AzDk1HAyeySrnQW6Pinv/gM/dQ5X9awO915sQmOnjRCONMM/TNd ypbh0ea4uzU2xutSaFKbYLp89FTLclRkqXrAD3ODALs6HL0CbRB1x3rbo3BkQ929DZb+ SGvDtptSYcZV0MX+k9VxwT7sJ8VOOAgFBIUmaOti2PcojspEAi0QzV0lHTTDyDHOUYWk Qywvs6ZDd87kYX4lqdUr9My82Eusn627z2KEkhwLRAtoe4KQjMTxTEU0/klI9LiiRZ/L PcjA== X-Gm-Message-State: AOAM530dlkYtF2iq9NpO8J49g8e5LspGYDQvGZqHNZ9N8GIsjyLQ62hN TL9eTEjg2m/sbnvxu6ZOBew= X-Received: by 2002:a17:906:73db:: with SMTP id n27mr12915388ejl.16.1592775508804; Sun, 21 Jun 2020 14:38:28 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id w3sm10130012ejn.87.2020.06.21.14.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 14:38:28 -0700 (PDT) From: Konrad Dybcio To: skrzynka@konradybcio.pl Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Linus Walleij , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH 1/8] pinctrl: qcom: spmi-gpio: Add pm660(l) compatibility Date: Sun, 21 Jun 2020 23:37:57 +0200 Message-Id: <20200621213806.551879-2-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200621213806.551879-1-konradybcio@gmail.com> References: <20200621213806.551879-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