Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1226223ybt; Wed, 1 Jul 2020 23:27:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxazGYLdV/TmHsbKqbgo2Rl9j6QtbUR8/4zXSbkARH5KJ+HAfKjQxRB8qPkfb4bKpLKoOri X-Received: by 2002:a17:906:d9d9:: with SMTP id qk25mr27586795ejb.448.1593671255597; Wed, 01 Jul 2020 23:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593671255; cv=none; d=google.com; s=arc-20160816; b=JFNvel/2cYo2DDaMsFGN+BBDWx0za/etjYVw5QgtCaEPtc19Tk2RemhzkRZRWUYCP+ MpmsEHRIgqJa+sD3gTfzxef2Ihji/ouEEx++Q5Oo31fK7FKo5MmgME1JDIp0WQdTQ6nk mvGAwA5SgPOB+uxbfdlth9NSYw7FtRIEyuogDjWUABwDVJq8yw+A3gKlc68970tEqrCo Yiqzr55OszMVIOnS7gCiW7z0cqGt83O2ZM/gz3NcoF/MyQaUW6ILWIQ74f5rTt73ekjs 0APJ+ee4Lp637QavtSDQRTIZBT43/QSaQP7pJuphhRDgwDSAaln5z+f0kv1eDpO7O2uz MgOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=iAAvm140uabXTl+jHo1MA3XpYMJqItzUT/T49Tq/jsE=; b=H73qhHwKiZRM1xpZwnqKj6BNPMBVpRCWj/TiMK0/vh3gQo11jgTyelLpa4GGSIGtzt lheEAb97OwCp/JpbU/YlcKcGIcIAu1MG8sI0GXP9HC6vRw27L+nAUDHimjDfCiuQkwsF 41/HJ4Of7js0k7RTx4KJ4JJhrIBL8Yni160gubdC6TN5jrBnewiMKd9/onE+KGk0b7pt seRxfIqb6lcEGQanFKdI64mMmGUIL6PQg73u0rJzOhlIn5SuNa1JJsqiMGE0Jjf3FX5H ihJNgAoziCiBe0L8pkUHevLKzf4u0PEE8paWVONvyGP/t2QQYLe4+cQzlaAcy4RWATIX q0qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kHYTzLii; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j31si6089044edc.371.2020.07.01.23.27.12; Wed, 01 Jul 2020 23:27:35 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=kHYTzLii; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbgGBGYH (ORCPT + 99 others); Thu, 2 Jul 2020 02:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbgGBGYH (ORCPT ); Thu, 2 Jul 2020 02:24:07 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA8DC08C5DC for ; Wed, 1 Jul 2020 23:24:06 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id a205so18771258qkc.16 for ; Wed, 01 Jul 2020 23:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=iAAvm140uabXTl+jHo1MA3XpYMJqItzUT/T49Tq/jsE=; b=kHYTzLiiwAcymrEuy2t4xpNOUScn5Lchdcc0t1JjYbvXgAyblfAUldguvPrFi7PLsL OMO8k+MiyIOHXgBHn9cqSUo9/EL+vvY3zcwjjCrbIOXtzed3gWpla8EgWuFG7IaUyjUa KpievEzGpDkxAuuwmZ5LtpmfMjXczIXZcHrlEmBSgrei3aOLWhrE45hATpoT6SKkg91x hKlyrvyBHwteXHacR1PdKN+Hb+aLWoO1q0zUVJU35WVF50UbggaRcrDcPAfxl0RZtynv lSE9bipkznoS52wS+CJHh9YCG4FxQUBzvEPX7iLtHBZcNH3lLYrk4b5BptcgTQwH4y1B d3Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=iAAvm140uabXTl+jHo1MA3XpYMJqItzUT/T49Tq/jsE=; b=Tw1jr2vYUiwD0+s+0xUIgbEN0UAfhF0iG0fOsv2PNU0MrI6Jdciut96W44l6u9i1R/ eSd9o9q8BhxR/Oic8X8jW9ENMpIaT1Ap2MiCq968UycN83yAzCRjktqgad2Mx/PimgoY mbMlLX7j9xsTydCUM1L2rdM3qNQPlthYrYQabTAyXWqC/hBQLk4TmmLsrRL6O/iH1ptI YiEjowxYuje1xIUgjLye+3KsvzZwtuMQ4AImWyTCeJNNz/B6RPazlHU76rdSqkiCPUdp RLeJo5TpUOqPBKo9Xqr93AD9PRpBgRrhioZbAzjqN9cMJsW1T9UFBLQ1EVsdJXPtin4i GKOQ== X-Gm-Message-State: AOAM531WFZp5GLZcR+io64lhiH2x2TI1VcF+d3HXfWLPgtWHBpBlwuAw 1Ryx6wuPBtLAJ+jrCovzDvp8oMmQVMYE X-Received: by 2002:a0c:ab55:: with SMTP id i21mr29086666qvb.139.1593671046028; Wed, 01 Jul 2020 23:24:06 -0700 (PDT) Date: Thu, 2 Jul 2020 16:23:20 +1000 In-Reply-To: <20200702062320.2903147-1-amistry@google.com> Message-Id: <20200702162231.v2.4.Ia24db14ffcd7803db3a728e15fa9fb2e6ce83e0b@changeid> Mime-Version: 1.0 References: <20200702062320.2903147-1-amistry@google.com> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog Subject: [PATCH v2 4/4] arm64: dts: mediatek: Update allowed mt6397 regulator modes for elm boards From: Anand K Mistry To: linux-mediatek@lists.infradead.org Cc: hsin-hsiung.wang@mediatek.com, drinkcat@chromium.org, Anand K Mistry , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This updates the allowed mt6397 regulator modes for elm (and derivative) boards to use named constants. Signed-off-by: Anand K Mistry --- Changes in v2: - Introduce constants in dt-bindings - Improve conditional readability arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index a5a12b2599a4..e9cfded307b3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include "mt8173.dtsi" / { @@ -926,7 +927,8 @@ mt6397_vpca15_reg: buck_vpca15 { regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; - regulator-allowed-modes = <0 1>; + regulator-allowed-modes = ; }; mt6397_vpca7_reg: buck_vpca7 { -- 2.27.0.212.ge8ba1cc988-goog