From patchwork Thu Sep 20 01:47:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 147077 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1381017ljw; Wed, 19 Sep 2018 18:44:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamEeWXMNfykdPT97S+rFSGxu07LIqEPhtQfJlDl5XR3r9P0Jwp0RKdrjWgwJyh7BM7wjZv X-Received: by 2002:a17:902:864b:: with SMTP id y11-v6mr37063676plt.335.1537407890401; Wed, 19 Sep 2018 18:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537407890; cv=none; d=google.com; s=arc-20160816; b=enSGj6QHqS8dNB2feH1HJCBJGohiooDe66GpbdRgkmzptHQr1PcolzEUKn2exoa3Qk +zuw8JqRY5wuR0yajsrPbPXzEG3Y7+9LMp6MiWfT/N3Zt0di2nNpOfsWlqpO8GTfCRPj HBTFmWoeYcX6HjgKfvHl0U/s3S4y62m+niQFq1xteX7AdaPbD3R7jv8Nj63Hb3SmWa1h tawyt1s/YxvR5bkKHpskOv9scgy6C8mGOensBob+NH+YyLXlvaJeDiyymiJaz4qSuntp AByV7knRN6OpH5AY/5jxQLr8+vvB+OK/oaibo8ufU+/thqe56nBnPXPRhb6khpscRi+e 1Qdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=G4bPyJhhSNlsKKV6SLTb+myeaA6Y62ufubLkyYNljbI=; b=Wi9C8luubkg1TlLbAllD7T6xydRskNV+OCmiPQmxr8tm3+cXL6ciJiOMEUvhHjdzmD U5FNqWSxObLK8lDE6mVqBtyK+aZLJ++ScKWrqGMycvUqA5jcRl+wA2bezZcZ4H4J9FLb uL0nzVSPmP/xpknfaOKqjrixvQZ5j/J5WAAA6d74sBNqLbjLj3qpIsy2FyIPXi5HzPvT ycquIyYy2g5DSTzNIvnZSiZQjw7U+rorkpNIyUCm0s2+Ucdrr4omF8rpsaB0XV7YmtEp 4j/vt46NqvQtN9wr2ffttkxfytlLVzuShRprnbGj1HS2Xiuoyq3877jLvUKqBfKFHLhC IexQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cbC2dmmr; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si25627446pfb.316.2018.09.19.18.44.50; Wed, 19 Sep 2018 18:44:50 -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=@linaro.org header.s=google header.b=cbC2dmmr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731534AbeITHZc (ORCPT + 13 others); Thu, 20 Sep 2018 03:25:32 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34686 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731397AbeITHZc (ORCPT ); Thu, 20 Sep 2018 03:25:32 -0400 Received: by mail-pg1-f195.google.com with SMTP id d19-v6so3615941pgv.1 for ; Wed, 19 Sep 2018 18:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=G4bPyJhhSNlsKKV6SLTb+myeaA6Y62ufubLkyYNljbI=; b=cbC2dmmrFsUPqWGbNM0kjKNTQZNFZ+vptLzC+MLtlrzeUf0b860uqbV2h7aCF81PW1 5rOEVgjcNfWX8SMg2kyctEYjPFNpzXjgauGpbp/V0+5zfERXNjW8okEwtz3JFCW6gRPh CJOwQNL6zul3aUmecQbyxYYy8gCTkZtpbLN0A= 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; bh=G4bPyJhhSNlsKKV6SLTb+myeaA6Y62ufubLkyYNljbI=; b=Hwp7vF28+M7VXVgzIPmph0YxKf0R7BRV/vsPc8dpzRMqqnjJ+7SaDKHIX2LpTX4pIg e+vL7fFFS5LL+ehA74HFoWckdMhU4vrM+aVd51RKIxq5/T9xqc1zF3/ThaupVutDsnOC QqjZzccNCHM0xEWie9Ow/ab1Ekoja7cRAFxNV2/AUB1VnCM1omyJaHntF29KnwsvTYZs X7UXnK+5xF6VOkuPXqx6mVZl7ZieU8rMUnTF3pzFgYtTNGyiI2dbzt/GzHOo0tpYQ9ZQ XHeh9GPdunuswoQnZcVf/qmvLlneE3Pr6f/TmrEtrMc6Yy8puL3orYdiFmkI1XSE4SIG 72SQ== X-Gm-Message-State: APzg51BvmjG4z7AZQB7Ibriw6+G+aQK7+m0ZFA2vaCzohKgqBzpzftJ0 0rFsqZWpoNIrQUV492D+lls2Fg== X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr33242278pgh.293.1537407888785; Wed, 19 Sep 2018 18:44:48 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id e202-v6sm38716634pfh.16.2018.09.19.18.44.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 18:44:48 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Linus Walleij , Rob Herring , Mark Rutland Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom: spmi-gpio: Add pms405 gpio support Date: Wed, 19 Sep 2018 18:47:05 -0700 Message-Id: <20180920014705.15144-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Vinod Koul Update the binding and driver for pms405-gpios Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 2 files changed, 3 insertions(+) -- 2.18.0 diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt index ffd4345415f3..ab4000eab07d 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt @@ -19,6 +19,7 @@ PMIC's from Qualcomm. "qcom,pm8998-gpio" "qcom,pma8084-gpio" "qcom,pmi8994-gpio" + "qcom,pms405-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 @@ -91,6 +92,7 @@ to specify in a pin configuration subnode: gpio1-gpio26 for pm8998 gpio1-gpio22 for pma8084 gpio1-gpio10 for pmi8994 + gpio1-gpio11 for pms405 - function: Usage: required diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index a29efbe08f48..b54891998caa 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1055,6 +1055,7 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8994-gpio" }, /* 22 GPIO's */ { .compatible = "qcom,pmi8994-gpio" }, /* 10 GPIO's */ { .compatible = "qcom,pma8084-gpio" }, /* 22 GPIO's */ + { .compatible = "qcom,pms405-gpio" }, /* 11 GPIO's */ { .compatible = "qcom,spmi-gpio" }, /* Generic */ { }, };