Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2553211ybt; Mon, 22 Jun 2020 01:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyu8+soy5ydB2exrK0zHqus/O7eVEu+ArpmawsWB6dlN/6O1XFm7PrlH77MZ5New5lsH56 X-Received: by 2002:a17:906:480f:: with SMTP id w15mr14693356ejq.430.1592812818896; Mon, 22 Jun 2020 01:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592812818; cv=none; d=google.com; s=arc-20160816; b=1LhPQO3lww8ph2RY8WzUYQ/x4eC3l5ZfvE7JnGWUFSf99wKBZLjz2FboUoWkrrWbJh XL1PagKji347bQ+qYw/DBwWxXyUYqGCjsySsLCFlPSIemZhau3oa4nXgK3HtW/C5s328 aoONU870HdQvMM0BCtjaN7RN4EYq5VPOOIzTD5mwePFnRhNtuSbDTv+4HV+MpM6H/ytd 9VMLOSIkwRg/p5HSDNrmq25Rw/e8YLTVTUARYuUopD2yJMOsiB9VNdPW/9N8wg58gzwg Rer5UZuKyW5pTjeXR3Dpy00b6E80apt6VR4G7p5RybG91zU0vK6mkIgn6rk/ndEp4N7F jXdg== 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=bwpX9YYSHfU7Wig7s9hAqMWgx20vVw9/toQvabZ3bSYcNI1Dw803QUdjeGjmU8Le/p SHJY9Ppbm+8ao3y53Fwgd5ZKIcineaVTUUoCy/Q0TnDTpeLcmovV6p8PIfMkqCac5z1P HmEOTxr0YAHQ0PkXhJ1vMnM0DTastpPHlupcAB/+m9mHGSFepec0cg759oL8qI7zeNIS mqbTcQSSLQwQmh3YhMtaDQZQATjbq/oFArS0KEsRa8ffoepWzNzA910HH2vOQaB8vuDF ky7NztRHvEzgjwrGGM2PhrxmrCBIc7CdKrBoqqjkrwXlRw/x78juxMUDiTksk6NYNdsI SU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eOwq3qHL; 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 o13si9405978edv.186.2020.06.22.00.59.55; Mon, 22 Jun 2020 01:00:18 -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=eOwq3qHL; 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 S1726871AbgFVH6A (ORCPT + 99 others); Mon, 22 Jun 2020 03:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbgFVH56 (ORCPT ); Mon, 22 Jun 2020 03:57:58 -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 F06FFC061794; Mon, 22 Jun 2020 00:57:57 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id mb16so17046085ejb.4; Mon, 22 Jun 2020 00:57:57 -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=eOwq3qHLmGL+p2E8c8xuZ669C5ZqpUlnUYF/k0oaDale13WusfNZrJIBH+YKhJqPm+ /fcWnyHgDW4T6doT2YK55zbdaURSM80sjMoFS1p4vWgGU8pFbUs2opwKz8j93B3TtPsW SGr0eZirk42PfyPkEJtSP1oS1znPu6mzEDFeEww4/dK2oLunAw0L2Kd/A/uBKcAWoobi 9nDlZEs+rAfnpBxIf7ng9Blg+4rNKnLlYDQhyEYa18u1IPMI7QMAe56gpL/MKf+fhB2p 8SwOdaRkWdiQnp2XWqkltjlruUFeazqyRLcQtTppWSqX8JgoSdAkSjY4ifDRDEMhErKF zSQQ== 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=teYghI4fM+Jat0U83qqRXLcE/ZEZGcYoVP9vupLsQImmKDiEjVzXGQPfeB8ltuZe01 5ISOP/YPfwT6i+KXF1Nqen/GpbjkMilH/4qYFG3w4uZ4kQOlKF919NZo23P1BX3sMpHa ITxpL/+5Dx247gJp2VULJyMrR0z1MySpMarGWshBRxZ5krehFIc/NjRvsILMsC55KPUW gDq9vOlZPrAdVMS7/gfB9zdQFBB03N2yCOkhPTpI79fqKH0dfhloJGAYS5HNaqQy2v0M L56L4XeJq7rn6znNzJaaoh99ymM+wo3QYA+VZYoNfK431s4lGow+EinsJ5RzQXRuD6AO ahCw== X-Gm-Message-State: AOAM531XMgBoxqD8s/IV+BWma8Nd57FIpDVeoZxJCg0EX0CPcJQaPXcm Q4Igr/7SKHIO8HN9yCjVqUjzZQ3H7Jo= X-Received: by 2002:a17:906:90cd:: with SMTP id v13mr2829181ejw.247.1592812676754; Mon, 22 Jun 2020 00:57:56 -0700 (PDT) Received: from localhost.localdomain (abag196.neoplus.adsl.tpnet.pl. [83.6.170.196]) by smtp.googlemail.com with ESMTPSA id b4sm10511606ejp.40.2020.06.22.00.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 00:57:56 -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 v2 1/8] pinctrl: qcom: spmi-gpio: Add pm660(l) compatibility Date: Mon, 22 Jun 2020 09:57:39 +0200 Message-Id: <20200622075749.21925-2-konradybcio@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200622075749.21925-1-konradybcio@gmail.com> References: <20200622075749.21925-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