From patchwork Mon Jan 24 17:15:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayyan Ansari X-Patchwork-Id: 12722514 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D451C4321E for ; Mon, 24 Jan 2022 17:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244555AbiAXR0v (ORCPT ); Mon, 24 Jan 2022 12:26:51 -0500 Received: from fwd1.porkbun.com ([52.10.174.57]:36316 "EHLO fwd1.porkbun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244541AbiAXR0u (ORCPT ); Mon, 24 Jan 2022 12:26:50 -0500 Received: by fwd1.porkbun.com (Postfix, from userid 497) id 898CB41690; Mon, 24 Jan 2022 17:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044689; bh=gxvgpUI7CywQc3XL9HhVRlq8qejwxf/AG4pnQ/62QdA=; h=From:To:Cc:Subject:Date; b=Y0LKzux3Euveb6p+BeFD4kp4Qk/S09Le9YmB90sPioiIhTKx5cY0oUO3oTimdVuZd gXEK1M+wDXy7OVJMukDI4Selk0yF+YAT8mMagXxGYmT54TvD4U2HnN2GJaDXH3dzXC xUxfOhRCpcrYbcxqpk7nZ5M/LTEeVxvqJIjeVE/c= Received: from rayyan-pc.broadband (unknown [90.242.138.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rayyan@ansari.sh) by fwd1.porkbun.com (Postfix) with ESMTPSA id 90D0140A88; Mon, 24 Jan 2022 17:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044562; bh=gxvgpUI7CywQc3XL9HhVRlq8qejwxf/AG4pnQ/62QdA=; h=From:To:Cc:Subject:Date; b=BiSVUl/wwpkQgTnAVh4a0DMXUOb21tKHJOHXnL3S7PmogxWbXpP/3m3SpCajX2hnd oSfRFmzbHzn47yahXhSoWs9deqpYPjA4DpjcItvVTno/nEFG7U/EKlwCPmEbpCg/OD CLNoNMGKQC63WCgnaQG4tAc6QB+6waj5ligx0CPA= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: pinctrl: qcom,pmic-mpp: Document PM8226 compatible Date: Mon, 24 Jan 2022 17:15:36 +0000 Message-Id: <20220124171538.18088-1-rayyan@ansari.sh> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the Device Tree binding for PM8226 MPPs. Signed-off-by: Rayyan Ansari Reviewed-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml index 35c846f59979..df79274d0ec3 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml @@ -21,6 +21,7 @@ properties: - qcom,pm8019-mpp - qcom,pm8038-mpp - qcom,pm8058-mpp + - qcom,pm8226-mpp - qcom,pm8821-mpp - qcom,pm8841-mpp - qcom,pm8916-mpp From patchwork Mon Jan 24 17:15:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayyan Ansari X-Patchwork-Id: 12722513 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63947C4332F for ; Mon, 24 Jan 2022 17:26:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244546AbiAXR0v (ORCPT ); Mon, 24 Jan 2022 12:26:51 -0500 Received: from fwd1.porkbun.com ([52.10.174.57]:36320 "EHLO fwd1.porkbun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244540AbiAXR0u (ORCPT ); Mon, 24 Jan 2022 12:26:50 -0500 X-Greylist: delayed 519 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Jan 2022 12:26:49 EST Received: by fwd1.porkbun.com (Postfix, from userid 497) id 2A9FE40DD2; Mon, 24 Jan 2022 17:16:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044714; bh=7KAy/yzUxt6v9Wuvaa/H5Tq8t/cNtIks1cGsRx+fuuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fSviqsquNIVPf1SiK/i6JStBtTqinFlTZGRDqKXSaNuY4PumxK2TDKRhTH/7Rbfa5 Ljsh4znb9NyVE8IKoCL7oW5r6rFniM+tOInjvdqFEpS+TZaycCvKXe35M86U+QZmm1 VQhwHNcbyFxiuLtp254Pa4sQr020Zr7iJLqYiZ5M= Received: from rayyan-pc.broadband (unknown [90.242.138.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rayyan@ansari.sh) by fwd1.porkbun.com (Postfix) with ESMTPSA id 8D91741C16; Mon, 24 Jan 2022 17:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044567; bh=7KAy/yzUxt6v9Wuvaa/H5Tq8t/cNtIks1cGsRx+fuuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=b3rAaxKgfPjVVwWRVXefKeHfgBAdEDOFn0XIS7+YGTQ2UVjECT+wY3VypCUL7f5eM 4mm4Treu/Rbsyz7xjx95NTpS14pl/q+BBmIqZHwGkVCS+51KhugFvGKvOIHXnyMVvn pudzPN9Szqgd2WRKlRaOBme1zXUiYgJfdg7+0OZg= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , Andy Gross , Bjorn Andersson , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] pinctrl: qcom: spmi-mpp: Add PM8226 compatible Date: Mon, 24 Jan 2022 17:15:37 +0000 Message-Id: <20220124171538.18088-2-rayyan@ansari.sh> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124171538.18088-1-rayyan@ansari.sh> References: <20220124171538.18088-1-rayyan@ansari.sh> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8226 provides 8 MPPs. Add a compatible to support them. Signed-off-by: Rayyan Ansari Reviewed-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c index b80723928b7e..6937157f50b3 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c @@ -961,6 +961,7 @@ static int pmic_mpp_remove(struct platform_device *pdev) static const struct of_device_id pmic_mpp_of_match[] = { { .compatible = "qcom,pm8019-mpp", .data = (void *) 6 }, + { .compatible = "qcom,pm8226-mpp", .data = (void *) 8 }, { .compatible = "qcom,pm8841-mpp", .data = (void *) 4 }, { .compatible = "qcom,pm8916-mpp", .data = (void *) 4 }, { .compatible = "qcom,pm8941-mpp", .data = (void *) 8 }, From patchwork Mon Jan 24 17:15:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayyan Ansari X-Patchwork-Id: 12722515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA0F6C433F5 for ; Mon, 24 Jan 2022 17:28:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241641AbiAXR2C (ORCPT ); Mon, 24 Jan 2022 12:28:02 -0500 Received: from fwd1.porkbun.com ([52.10.174.57]:36506 "EHLO fwd1.porkbun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244304AbiAXR0v (ORCPT ); Mon, 24 Jan 2022 12:26:51 -0500 Received: by fwd1.porkbun.com (Postfix, from userid 497) id E8E3341B7F; Mon, 24 Jan 2022 17:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044732; bh=a9whC7JtDB4/7zPJIuUirqdml13MUQ9IgB9uwgfXCD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SyMBu2Xy7B6VPeLaeONMFPU5iX6G0WEDzhLMD/9qyZeHfew+TTHRp7+ZnbR/KmyB8 KqH713cA7/vyxWugR5YjZLi1/ynNFq+2SyaA3p3N45WYzp/cr2CknDWHiFg1gMdj2g YJ4YpX4tXdCynczsT9ZLy3602Yd9x0csdIajBXWk= Received: from rayyan-pc.broadband (unknown [90.242.138.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rayyan@ansari.sh) by fwd1.porkbun.com (Postfix) with ESMTPSA id C44A8409E8; Mon, 24 Jan 2022 17:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1643044572; bh=a9whC7JtDB4/7zPJIuUirqdml13MUQ9IgB9uwgfXCD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=amH6gn+4/lbzBWtmupToE1eeYfkq0ggTOzp8qGjaW1//5w/TslNH8dfXTH1diCkfH zfPONxD+KS0z6yyJG+J4YL108aw3la9lpfTHee3EeLCTmVZKM5aom1aVmPZnCAX72E YMwYIQX/MkqgTQSQZdjVWXRN9GNeUVKJsfjEclnY= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: qcom: pm8226: Add node for the MPP Date: Mon, 24 Jan 2022 17:15:38 +0000 Message-Id: <20220124171538.18088-3-rayyan@ansari.sh> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124171538.18088-1-rayyan@ansari.sh> References: <20220124171538.18088-1-rayyan@ansari.sh> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8226 provides 8 Multi-Purpose Pins (or MPPs for short). Add a node to support them. Signed-off-by: Rayyan Ansari --- arch/arm/boot/dts/qcom-pm8226.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi index dddb5150dfd7..9db3ea28b321 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -16,6 +16,16 @@ pwrkey@800 { debounce = <15625>; bias-pull-up; }; + + pm8226_mpps: mpps@a000 { + compatible = "qcom,pm8226-mpp", "qcom,spmi-mpp"; + reg = <0xa000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pm8226_mpps 0 0 8>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pm8226_1: pm8226@1 {