From patchwork Wed Aug 14 12:35:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171275 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp775394ily; Wed, 14 Aug 2019 05:36:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqylOCB5YzNVOmOXU9FE627l2XkUXC6rmIsfHaZcUTHMQx5Bz4mvnp0HvkRtmJOEjyeCfI7+ X-Received: by 2002:a17:902:740a:: with SMTP id g10mr43114501pll.82.1565786210331; Wed, 14 Aug 2019 05:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565786210; cv=none; d=google.com; s=arc-20160816; b=CU/aMayszfN/sAGBK+ZbEpgBajpU6cOTrPccVwmu1ab56xrO2h7tM+edTNAm0b8vmr J54p6MP7OwJKZiYpMjtrCWZyo27ahCAlNJjjnSvFqsEXkO8IOk+bjmfemOf1vtU1l3+G AGOtlLbnfyG6Lz56Ukur22Yf1xrrFFNeGKAtI3/WVyLoraipg3wU93uom71ywX/FGi0x GjnH/6V2QsrHZtNSt9n6lRMt/GejN+7my0ZD0zHu9+3c4AYXPGvotKibUXdDmLVs50ra /aq+hU0pnWL6JbXCYru+ok3EH85RPkY0nDD22/D5X70o+n1bpAkfg5q3KSEXUcwSYwUN 17qA== 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=U2fIF/b7uMqKw0fFCguOSkYY1SO94BpkP7lwQu4zqG8=; b=aU33zuTNyGfTxsHvFBfqKIS/PrvqORkwPb7heXa+3hzcqlVpWx0e4VY13kPDC5FAE+ 7sHkDJLb+qDG4+6SaBRuZec6v+sNqdlC0tyi7k3ZIsfYDDPFzfFlRNiRFCeCtaHx/I3l MsI8dC3FzCEfd0KAnJ1Octz7oIxnSHHvmvY0DD69FZElF5EM0cd8w8vLfXVX6xZKOyd0 BEvTq75G1RVnFziOsKx5eLuxJUYAguiidO9fYBnyb/JvYuK+3oh9iq+6+JjopL5gxeKk 7+DNu1xEdngqtHkKGe4NKKYaZwwO3QSAcotjoppS3ouQdpLrrhvAKA0F8qLsRMdNS5cT 0/8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f7n7REfu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 r190si66405775pfr.102.2019.08.14.05.36.50; Wed, 14 Aug 2019 05:36:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=f7n7REfu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727304AbfHNMgt (ORCPT + 8 others); Wed, 14 Aug 2019 08:36:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:56998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbfHNMgs (ORCPT ); Wed, 14 Aug 2019 08:36:48 -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 C468D21721; Wed, 14 Aug 2019 12:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565786208; bh=N+bESiPHdBuUSXfODkzFtGLhH2/mdS9C7M3DN19vQC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f7n7REfud2nmzAOkRdjU/gg2LpxyolmZMimtTo3WA8mySoaEcpNCCkolx+HxsrAG6 LUKiILBoBW12upKDPCBDR1G194XDriSGTmvFtO2Fdm23vjiF494Ac93/59lpbgoWlL boFd+xKWtkTwL0SfXX9daNFWdGccriG5Qkkr20iE= 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 2/3] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8150b support Date: Wed, 14 Aug 2019 18:05:11 +0530 Message-Id: <20190814123512.6017-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814123512.6017-1-vkoul@kernel.org> References: <20190814123512.6017-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the PM8150b GPIO support to the Qualcomm PMIC GPIO binding. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 2 files changed, 4 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 56553c06f129..457459d17e79 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt @@ -22,6 +22,7 @@ PMIC's from Qualcomm. "qcom,pmi8998-gpio" "qcom,pms405-gpio" "qcom,pm8150-gpio" + "qcom,pm8150b-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 @@ -97,6 +98,7 @@ to specify in a pin configuration subnode: gpio1-gpio12 for pms405 (holes on gpio1, gpio9 and gpio10) gpio1-gpio10 for pm8150 (holes on gpio2, gpio5, gpio7 and gpio8) + gpio1-gpio12 for pm8150b (holes on gpio3, gpio4, gpio7) - function: Usage: required diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 5286ec060894..931c9349f145 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1157,6 +1157,8 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .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 }, + /* pm8150b has 12 GPIOs with holes on 3, r and 7 */ + { .compatible = "qcom,pm8150b-gpio", .data = (void *) 12 }, { }, };