From patchwork Thu Feb 25 21:36:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 387280 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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 E800FC433E0 for ; Thu, 25 Feb 2021 21:37:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A4DE264F29 for ; Thu, 25 Feb 2021 21:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbhBYVhA (ORCPT ); Thu, 25 Feb 2021 16:37:00 -0500 Received: from relay02.th.seeweb.it ([5.144.164.163]:49677 "EHLO relay02.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233974AbhBYVgx (ORCPT ); Thu, 25 Feb 2021 16:36:53 -0500 Received: from localhost.localdomain (abab236.neoplus.adsl.tpnet.pl [83.6.165.236]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 69C381F630; Thu, 25 Feb 2021 22:36:10 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] pinctrl: pmic-mpp: Add missing dt-bindings mpp function defs Date: Thu, 25 Feb 2021 22:36:04 +0100 Message-Id: <20210225213605.117201-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: AngeloGioacchino Del Regno The pinctrl-spmi-mpp driver supports setting more mpp functions than the ones defined in the dt-bindings header, specifically, digital, analog and sink. To follow the current way of specifying the function config in Device-Tree, add the missing three definitions in the appropriate dt-bindings header as: GPIO_MPP_FUNC_{DIGITAL,ANALOG,SINK}. Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Konrad Dybcio Acked-by: Rob Herring Acked-by: Rob Herring Reviewed-by: Bjorn Andersson --- include/dt-bindings/pinctrl/qcom,pmic-mpp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h index 32e66ee7e830..3cdca7ee1b3f 100644 --- a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h +++ b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h @@ -98,6 +98,9 @@ /* To be used with "function" */ #define PMIC_MPP_FUNC_NORMAL "normal" #define PMIC_MPP_FUNC_PAIRED "paired" +#define PMIC_MPP_FUNC_DIGITAL "digital" +#define PMIC_MPP_FUNC_ANALOG "analog" +#define PMIC_MPP_FUNC_SINK "sink" #define PMIC_MPP_FUNC_DTEST1 "dtest1" #define PMIC_MPP_FUNC_DTEST2 "dtest2" #define PMIC_MPP_FUNC_DTEST3 "dtest3"