From patchwork Mon Mar 8 16:48:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 395445 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1868803jai; Mon, 8 Mar 2021 08:49:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwNEVKXoLQKMqXQupUnQDooK1nRtDayhJm1vyaiSwoNst5POwb8vU7Nszjhl67Yf10qhFC X-Received: by 2002:a17:906:cb11:: with SMTP id lk17mr15330926ejb.405.1615222197383; Mon, 08 Mar 2021 08:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615222197; cv=none; d=google.com; s=arc-20160816; b=LSkJY30+AxGJenr5/tqA3Ly+tU6qzh4xS25r0fx+XXlEP2wFwXdAvG6AvckNsC56Hl Rai+eHBqWbLjNHIcIXzYCwka9sNHcC/04G80aKqliH/xkpQm9r0uYDTq1Y3G0o+yWdOc pOY77c2o92c0VwH0HtMF90vz4VvJzyCo6G+Vp30EI9lpS/1pfCcXhhn6sCr3Qd+sj1Mz v8Asry7GUBUV5PmAjujiy9JgVgKxG6XswWeVPlCZ3ioAifsVpsRMnXvkOZRrMIJlBtez e7L6Az3BGNFui/Xd1splSffzoDm/dd76/1I90aO6K3SZ5GsfYNe+iI/lvR8xzxVzdtLq nQ0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=O2GcWQqnM2Y5fgSqh+TwQDBum48h+obQRvYxHpx4GFM=; b=JeNsQoO8bgC9mz4l5jHILAkQSPH7c0dL/Nspxm8Y5N6vjV6UGv9c6eI2kqHQ2Oxe0b MVLCOb/NwIWkXaVnyXo7pVCC99fkeQM7d0M3rTtYGii2+lq/4OHxJLYh9orBC8PUSSas TfFSve62V7Vob7r0+ypj52/WzPwESN4Tneg2lCgC4FCsVg/GQ7dzSyeRXo0Ur9pEDT5E VuSwgzocyUcfoOI+4kD+aIP6aiODMC7H89pIoJikXaG01rpAB0j+ILql0SEqOdKg7J21 JcW1vQW559/YtPcG5twOGstEDk72o0k2IwmtAHBdiUfu7PMJQ8ToqCu2cGsEDshPzXbv M9SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j7VmwyqH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l14si7055653eji.711.2021.03.08.08.49.57; Mon, 08 Mar 2021 08:49:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j7VmwyqH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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 S230125AbhCHQtW (ORCPT + 16 others); Mon, 8 Mar 2021 11:49:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbhCHQs4 (ORCPT ); Mon, 8 Mar 2021 11:48:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B85C6518D; Mon, 8 Mar 2021 16:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615222136; bh=1sJP0A1ykSZC1GASB0lTJr+JzrmjpwHCZUx6r9lCowk=; h=From:To:Cc:Subject:Date:From; b=j7VmwyqH5W47cGgHc1JQN+T+OHW99tMpBLdgza6daA13dg9pfK7zJJU3De0FDyclS VD46v3CFl01yPtwvJQ4nM7nkgeA+cWj3Wnh6ApTmPtHmChijd3FP4GelGxr6KHvnj/ QuAMG/mAg1DDKvdIbBYW2304YuyTyrJQHPIH3wBF1KVzu/ZSp6TwxGAqYAQ6LK4j9N RMGkxjvcs7/woLxTNW+vs9sTqQndq6tk6+nNfXDMd7Iem7Q94mlnWWMnvXJClDDfWu 8MtzDboPQRcf7FS75e5bG0TYF2i31o9Qaftbc7uRGeZxbkHOyRofaWNBB4nrQgnIRD u4MIiTfn7os8Q== From: Vinod Koul To: Linus Walleij Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8350 and friends Date: Mon, 8 Mar 2021 22:18:44 +0530 Message-Id: <20210308164845.3210393-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the PM8350, PM8350B, PM8350C, PMK8350, PMR735A and PMR735B GPIO support to the Qualcomm PMIC GPIO binding. Signed-off-by: Vinod Koul --- .../devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.26.2 Acked-by: Bjorn Andersson Reviewed-by: Bjorn Andersson diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt index 7648ab00f4e2..70e119b39c48 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt @@ -27,6 +27,12 @@ PMIC's from Qualcomm. "qcom,pm660l-gpio" "qcom,pm8150-gpio" "qcom,pm8150b-gpio" + "qcom,pm8350-gpio" + "qcom,pm8350b-gpio" + "qcom,pm8350c-gpio" + "qcom,pmk8350-gpio" + "qcom,pmr735a-gpio" + "qcom,pmr735b-gpio" "qcom,pm6150-gpio" "qcom,pm6150l-gpio" "qcom,pmx55-gpio" @@ -109,6 +115,12 @@ to specify in a pin configuration subnode: and gpio8) gpio1-gpio12 for pm8150b (holes on gpio3, gpio4, gpio7) gpio1-gpio12 for pm8150l (hole on gpio7) + gpio1-gpio10 for pm8350 + gpio1-gpio8 for pm8350b + gpio1-gpio9 for pm8350c + gpio1-gpio4 for pmk8350 + gpio1-gpio4 for pmr735a + gpio1-gpio4 for pmr735b gpio1-gpio10 for pm6150 gpio1-gpio12 for pm6150l gpio1-gpio11 for pmx55 (holes on gpio3, gpio7, gpio10 From patchwork Mon Mar 8 16:48:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 395551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2016C433DB for ; Mon, 8 Mar 2021 16:49:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF8D86522C for ; Mon, 8 Mar 2021 16:49:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230200AbhCHQtW (ORCPT ); Mon, 8 Mar 2021 11:49:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhCHQtA (ORCPT ); Mon, 8 Mar 2021 11:49:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 194DD6518D; Mon, 8 Mar 2021 16:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615222140; bh=sZCMfZxoIn+wvZELS1q/HTcvsK5IrpgordzCJsx1YJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JPqx/IcbtMp3hvw/qzD2d+DBgFlTkTYz2gqiMYhyWyKq8KP9XcMEtIrnRr2PftCVc ZqviDuQJpGtn0zRrmB8JbvZq5sMGDD+g4HE6V2iIkyRNjRnm94jcMYWLbp6hqlD1UK vc2UZg7L45stLtGyEmNFPuqRDRSNMCq3haubtbFi/B365bvwEf/pNfxC2lJbp1KbEI h90VXOPhfOBkurcgT4ynz+bFadfgk3TxN4Y4ndMOm0Ju+tn3OBoGyDTNRVuLsTOFrB J3CPEkuHexK9yrxdbbLOzmJCkDzp1DnTEf3nSkSuY5xi0++fCTo9v90OdY6ItThZ/K 9d26Hfvyy/s8Q== From: Vinod Koul To: Linus Walleij Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] pinctrl: qcom: spmi-gpio: Add support for PM8350 and friends Date: Mon, 8 Mar 2021 22:18:45 +0530 Message-Id: <20210308164845.3210393-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210308164845.3210393-1-vkoul@kernel.org> References: <20210308164845.3210393-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the PM8350, PM8350B, PM8350C, PMK8350, PMR735A and PMR735B GPIO support to the Qualcomm PMIC GPIO driver. Signed-off-by: Vinod Koul Acked-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 9801c717e311..c2b9f2e152bb 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1127,6 +1127,12 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pm8150b-gpio", .data = (void *) 12 }, /* pm8150l has 12 GPIOs with holes on 7 */ { .compatible = "qcom,pm8150l-gpio", .data = (void *) 12 }, + { .compatible = "qcom,pm8350-gpio", .data = (void *) 10 }, + { .compatible = "qcom,pm8350b-gpio", .data = (void *) 8 }, + { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 }, + { .compatible = "qcom,pmk8350-gpio", .data = (void *) 4 }, + { .compatible = "qcom,pmr735a-gpio", .data = (void *) 4 }, + { .compatible = "qcom,pmr735b-gpio", .data = (void *) 4 }, { .compatible = "qcom,pm6150-gpio", .data = (void *) 10 }, { .compatible = "qcom,pm6150l-gpio", .data = (void *) 12 }, /* pmx55 has 11 GPIOs with holes on 3, 7, 10, 11 */