Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp730955pxb; Thu, 25 Feb 2021 13:40:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2cKhXv1V1zE7h5TAbgG8CdN2bGQ+hhOUx8Iu6GcOuspxo0/ZtLlH0KLD/jvrDR06/+SYK X-Received: by 2002:a17:906:2bd6:: with SMTP id n22mr4777895ejg.91.1614289231014; Thu, 25 Feb 2021 13:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614289231; cv=none; d=google.com; s=arc-20160816; b=kJDSdQuJwLOpOquxslq4jhroe1drBqZ+o74xvsf3nstS0SROONQZBio3HjBL/WfXTX H7eidOPyT/txjt7YtY5HaHEsMK282fC47F1GGSxR4gp2B6toAeMRxjO9gtgjZ/2d71Oc tkKtLiiABtzDarP8pIKIk2ii7nlX5EQmZEKuJtf3FBpVpNcdOKHrMOtn0Hg7MM2RDu9V I9JX6jGVZJ1ujOr9VIP705z1vIaWjYamDzAJlbV+tD1ZCPzUr3fS/M8mArw5+9n/K5No hOtfxsf77Nvwjk6mt8IMvWs3VRa7Nc9+Eh/lcXEvJwMFM7Ea8WZXTaOCdV2khaZC3IVB 0YCg== 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; bh=71WFR8n470cyKiKsYIZZLhJR59RRg9ArUbOR8t5Vv0Q=; b=e19DztkSZciLQgSBT4H2BueXkwY5LSlAmdqE61fp8FXBxTJOM0QFg18L5UIFOE7wLx ZGwZV25PKf+fqLqnakA50+OHp+qXP156MlTi9yqRkEslwRwVCcLcz8pRB4zSxZ+vWALF nZl0yF1u4c5KL78dLwObbvN1smo0nxnLEXPJYD1kjBezYZ3PCU9zRkxpNJq+0o8F/A6e g/F4XmGBvz1i/BWIK2YY40r01zpltcXyd2aUaRX3eNk/9dfUlnZ5UwA1CAoMh7feca3l nuVUPG0q5n5eGJwY2BxJ01pXwL2CFEfHTdlMuwFUJOc1HxfB9gSHoiSLGEKTIXsNeB74 9dEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si4033099ejw.219.2021.02.25.13.40.07; Thu, 25 Feb 2021 13:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234114AbhBYVhD (ORCPT + 99 others); Thu, 25 Feb 2021 16:37:03 -0500 Received: from relay01.th.seeweb.it ([5.144.164.162]:35681 "EHLO relay01.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234022AbhBYVgx (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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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" -- 2.30.1