From patchwork Thu Jul 27 06:30:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9866335 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 926E36038C for ; Thu, 27 Jul 2017 06:31:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A52287CF for ; Thu, 27 Jul 2017 06:31:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79413287D8; Thu, 27 Jul 2017 06:31:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 38A5D287CF for ; Thu, 27 Jul 2017 06:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=hUKZUe0QZcLktYPSe/4qcLe08VowY27bdA9/1qVFaQg=; b=b/4 6Cj2WvfFYJ4Zha+ULOi+osZMVV7G6rz46qxPLYsWYKMHJ4XdjN90+NPLiu/DwgjCTsbSkJXxSpnp5 In3GV43Mg8oyGtONgALFJLnyBYzPkLYtRp01ej0g6tyr1DBbCPZFcDF4p2GC9dC31WlY5VdrdAPnM C9rNFidDh+XL92cnDSqf+scI9U8ckuPoNIX4Xp8Ph0+wFAFuLmsQHD4YtS13IKtHCDSkukwlDEEVS KVQmcZCNtWZGuUdWHb3e/ihpkFn4lwhFTsbLplWhouG2Z1tVUtqTp9oQTv60x8oxu6IMyolB9AHX4 vjGdX4GjV29mCgjTeuAPiCYNFEFG/pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dacKY-0006dq-QA; Thu, 27 Jul 2017 06:31:30 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dacKF-0006PP-9h for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2017 06:31:13 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8EA3E60915; Thu, 27 Jul 2017 06:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1501137049; bh=Y+DBCv6cVJkCrDr2RbMz8rfAoMP0nRM3pHxjz4dZbW4=; h=From:To:Cc:Subject:Date:From; b=ViecQyyu49J9Og/IW7Skk9CNFbFVpbxyUfkO+367bBaxv05KaYmmeob7I9G4k+1Wq BZcY+oQtIcxqFDFly0ADbx6CNsc1Qh373fKoxiUttj/fB0bHMNcnImr97zIIJGSn/V 9b6OPu8QHFP61grQRbVVPm//JoKGvBaGywRZ5Puk= Received: from blr-ubuntu-41.ap.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E9027607E1; Thu, 27 Jul 2017 06:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1501137049; bh=Y+DBCv6cVJkCrDr2RbMz8rfAoMP0nRM3pHxjz4dZbW4=; h=From:To:Cc:Subject:Date:From; b=ViecQyyu49J9Og/IW7Skk9CNFbFVpbxyUfkO+367bBaxv05KaYmmeob7I9G4k+1Wq BZcY+oQtIcxqFDFly0ADbx6CNsc1Qh373fKoxiUttj/fB0bHMNcnImr97zIIJGSn/V 9b6OPu8QHFP61grQRbVVPm//JoKGvBaGywRZ5Puk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E9027607E1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org From: Vivek Gautam To: bjorn.andersson@linaro.org, linus.walleij@linaro.org, robh+dt@kernel.org, andy.gross@linaro.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/2] pinctrl: qcom: spmi-gpio: Add pmi8994 gpio support Date: Thu, 27 Jul 2017 12:00:35 +0530 Message-Id: <1501137036-20155-1-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170726_233111_438320_F3E3175A X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Vivek Gautam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update the bindings doc and driver for pmi8994-gpio devices. Signed-off-by: Vivek Gautam Acked-by: Rob Herring --- - Have been using this patch-set on db820c [1] for extcon with usb controller. The usb controller uses one of these gpios for usb-id/vbus detection. [1] https://github.com/boddob/linux/tree/for-qcomlt/4.13rc2-merged Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt index 8d893a874634..74932318d41d 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt @@ -15,6 +15,7 @@ PMIC's from Qualcomm. "qcom,pm8921-gpio" "qcom,pm8941-gpio" "qcom,pm8994-gpio" + "qcom,pmi8994-gpio" "qcom,pma8084-gpio" And must contain either "qcom,spmi-gpio" or "qcom,ssbi-gpio" @@ -84,6 +85,7 @@ to specify in a pin configuration subnode: gpio1-gpio44 for pm8921 gpio1-gpio36 for pm8941 gpio1-gpio22 for pm8994 + gpio1-gpio10 for pmi8994 gpio1-gpio22 for pma8084 - function: diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 664b641fd776..bf0a6438424b 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -799,6 +799,7 @@ static int pmic_gpio_remove(struct platform_device *pdev) { .compatible = "qcom,pm8916-gpio" }, /* 4 GPIO's */ { .compatible = "qcom,pm8941-gpio" }, /* 36 GPIO's */ { .compatible = "qcom,pm8994-gpio" }, /* 22 GPIO's */ + { .compatible = "qcom,pmi8994-gpio" }, /* 10 GPIO's */ { .compatible = "qcom,pma8084-gpio" }, /* 22 GPIO's */ { .compatible = "qcom,spmi-gpio" }, /* Generic */ { },