From patchwork Wed Aug 14 12:35:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171274 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp775299ily; Wed, 14 Aug 2019 05:36:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUvJvQLo4rfdqx33QgUQUtTKw9uPNcyseMy3UGSb2d7ySidkbBEoL2GTRjFYVucAw35X1W X-Received: by 2002:aa7:9210:: with SMTP id 16mr47561775pfo.11.1565786206106; Wed, 14 Aug 2019 05:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565786206; cv=none; d=google.com; s=arc-20160816; b=Mu/DKunuRY6tznxvb5VA4+5i/aqF5cVEFyqHgln0m91t5epQCWor+tLgn2gT3n+Q9F KtBDRjPH4vk0si43fMqmgnRzEDB1+1qP4Tl91gYJw783UHIoCrbsAlI2ed8Y6L1dc2bX +8EniqjLmYbk8J8A1QpDCOTzRHxrtGYy5x+pibvQ4VvWYIT9KxRpEqJZ/gF8GtAVornj PbJefrI5369DR3yMgZnsAhG7+KGC6IWDe+f//GoVK6drdHH91Ak3U7bhV+mCSceYAlH8 keZBDm/DTTuHzbAkd9cK9iob0Z+TXOV9/t0yxTr8c0g71YbTLkCwOkruBTjXSXelAqvW luqQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=U0FX2AGIHpwju3+pvNowKPFsyU9zZWSX4LivF/cACkY=; b=0GJcMmKpHIBvDONchAq+zPyUlpJlR/XMO7nmtRzFn0zwtyDCbody5HJ5r65zkutJy8 qDrl05ZxLl3wmnVB9mNXCyifVuIkc/GwN6x27i1b2hBonS3Rtb5O3GMPukE+YG/fKgsA PMIXytGVdAX5HoKzCb7vbLn0jK0HONCV53LcXQFrj2cjsSRsLthH+0wFs08ohAHhr4yr QV2Y+2OQs12STUBWiZqSwrbC6NBWUiT3xPHqUtw2tLQsUqdP/1GTt8SfMmkmxbDEEojb ozLk2N3cYV2IAzSCkGjJktEpIArk+i//DFU363oXONWZ0ZPPUgBiN/tX8eWUjMGiHv7b rtEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bkhWJafs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si66690598pfr.11.2019.08.14.05.36.45; Wed, 14 Aug 2019 05:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bkhWJafs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727890AbfHNMgp (ORCPT + 16 others); Wed, 14 Aug 2019 08:36:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:56938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727304AbfHNMgp (ORCPT ); Wed, 14 Aug 2019 08:36:45 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C0E62214DA; Wed, 14 Aug 2019 12:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565786204; bh=wqo1QtxFMdDaXjf0zXYMAwyreNgWwXT2nHsHAmdfdl8=; h=From:To:Cc:Subject:Date:From; b=bkhWJafs6Zn9rGNJFbbm8hLHdnvq9+YJER6CCcdHZBjJ1Xfr/qoL2koTQivXjo/vG CAcYQzavFz/bnEmIm3Zd3SSJ8c+IhVxvxC+gy2f4hqHJyOsKtGDMx/BaEvq+RItXuG QwfHah1IhzHorpdFVeOQYMEAumNSQhslAqBlDdRU= From: Vinod Koul To: Linus Walleij Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Rob Herring , Mark Rutland , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150 support Date: Wed, 14 Aug 2019 18:05:10 +0530 Message-Id: <20190814123512.6017-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the PM8150 GPIO support to the Qualcomm PMIC GPIO binding. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 3 +++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 2 files changed, 5 insertions(+) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt index 7f64a7e92c28..56553c06f129 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt @@ -21,6 +21,7 @@ PMIC's from Qualcomm. "qcom,pmi8994-gpio" "qcom,pmi8998-gpio" "qcom,pms405-gpio" + "qcom,pm8150-gpio" And must contain either "qcom,spmi-gpio" or "qcom,ssbi-gpio" if the device is on an spmi bus or an ssbi bus respectively @@ -94,6 +95,8 @@ to specify in a pin configuration subnode: gpio1-gpio22 for pma8084 gpio1-gpio10 for pmi8994 gpio1-gpio12 for pms405 (holes on gpio1, gpio9 and gpio10) + gpio1-gpio10 for pm8150 (holes on gpio2, gpio5, gpio7 + and gpio8) - function: Usage: required diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index f39da87ea185..5286ec060894 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1155,6 +1155,8 @@ 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 }, + /* pm8150 has 10 GPIOs with holes on 2, 5, 7 and 8 */ + { .compatible = "qcom,pm8150-gpio", .data = (void *) 10 }, { }, };