From patchwork Wed Sep 30 10:01:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 313875 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:1081:0:0:0:0 with SMTP id r1csp47646ilj; Wed, 30 Sep 2020 03:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvTz0BzojXQndGWeeLvWKJjHnsipKk8XG1jGSTDp04Dr6zRX9jL7letWFOLIzjfxeAQkLq X-Received: by 2002:a05:6402:8:: with SMTP id d8mr1722033edu.15.1601460137658; Wed, 30 Sep 2020 03:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601460137; cv=none; d=google.com; s=arc-20160816; b=Y44tADy4qvXR627ho0+XaB/yX4a4fV1ZfsWkK7zbvxHiGzhT+BM3GNZY254/t9FvSd aq0Y3Z4Y2kf5829GLbEOYshRoIHY/G6FXKHKG3yu4UH74wxBBhAIEoDVgnJ3WHioocGD 5S9N91Zl3Zssa3SBwDPBq/STdnmhYL7QS9zcfgHqgTWAvMA4FM4vTPSginO8D+GYydNr 16aSY/k9944utdnLwiIsaA/hj3YHft9tMMXlnxuDGmDw5XnYAT5mnqHBUqnkaei3l11T ComanLeJC9bz1E+sIvt0We8zSf7PRCdZ2V8vkgxLrBrTvJKJuTew8BOL2F5/GkE0TuE8 8lGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=UdW3gm1ADn0oDR7L02Rl9d5NYeVsj7eSjgALVvfgZ3I=; b=mF2ETmyp1bhyRXZB0cfUMELL6lcc5RNWME9TJsKJWmypMZmy5yaegn62UDpGNEjOO5 IVj+oThccDD8M33b3tLEEy76xymXmCZy7Cfa/GJpFdpdblps3cBK4FJA5YmnjokjDGTy rpuGTxXqCHDzgFr/zwQGbIjnt6nwZTRw0/POx4SGZF/UH50uozHsuiqXs7ng43few7bS 42BpUso8qrrJO62NTqXoRZd9/gS6F/txlp0zQojWfNzjgsDyaVSBuyqUhtsuS7uuM9sx 7YSGjQv7zoHe3wGt1cXqk41Ya3frF3GiA7QBnS1jMLMFAlXuZFLVtt7USErAiNUNkDIx X2BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZuOjMUlc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si691626ede.468.2020.09.30.03.02.17; Wed, 30 Sep 2020 03:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=ZuOjMUlc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729127AbgI3KCQ (ORCPT + 6 others); Wed, 30 Sep 2020 06:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729004AbgI3KCQ (ORCPT ); Wed, 30 Sep 2020 06:02:16 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5301C0613D4 for ; Wed, 30 Sep 2020 03:02:15 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id l18so653381pjz.1 for ; Wed, 30 Sep 2020 03:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UdW3gm1ADn0oDR7L02Rl9d5NYeVsj7eSjgALVvfgZ3I=; b=ZuOjMUlcU/0BCxzdaBgZD+D8ctKAKNUF0ZAcRr4h5GfKC2nPOIbfW6Bgw8Hr4Cy+rW XlIgzggikKCuB3GU/3iN6Mj1GhLPDKkZVrIav/DKT7xr4TEvgNbTablPR/TYdIzYOKfA xjZxu45JsYpLtRh3gm+I2Z1anDBkqhXklYsyXJ01x89fuQil0MaQ0ih+Uh9cyBwZOqdE JF5oRRuhoMR3KAtBh3ChKulEkIDbbyfTB/4Pu7LBb8Q00Gcvx+zJlZrtA2B29rmahVxJ cg7IgVRi+vU5DGdXWEgDS0cYJS+SizIpL2vbSuQ4iffFdmQsq5z/BCDbxQYVV5xXNaDT wofw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UdW3gm1ADn0oDR7L02Rl9d5NYeVsj7eSjgALVvfgZ3I=; b=B7QnKezUCrby2ZaJADhTEa6Bk/Dd8LBEZ5DjRn68nF1AblRurs3NouxY0jCcuFbADR +nx0ow5oROlKpLlfmr3YG/ZS9Uj7MFNj44OTrDZjhLEJEHqDr5yJzqAEgfTO1i/8bklr JPLO1bjjck+tKNSgHgd6evMA6UVYSwjnIoWYToTFEy3H9CwnOv/dP5WvOroj6W25oC2n 79+dzBZGU0GMAQmKSVdWjOop0IDJNxcWPpnwu+PnjWJWl9ek+isNKCQhCjAxPduKYqDO a3e4+dz94VSBys7ClPE3f9VLNV9PXHsax3r5SMI1WhCusC9mecVGbb+Wv2ED3wxsR2dl kPrQ== X-Gm-Message-State: AOAM531pCvutsCGGyN6Ut75hkyDIRZ+93z1O/Nqfk613t/pdmGemJrii LsvpsGTJD8zj/YO85FlLWAoreczNU0gJWQH2 X-Received: by 2002:a17:90a:b944:: with SMTP id f4mr1873953pjw.127.1601460135158; Wed, 30 Sep 2020 03:02:15 -0700 (PDT) Received: from localhost.localdomain (li519-153.members.linode.com. [66.175.222.153]) by smtp.gmail.com with ESMTPSA id b2sm1890002pfp.3.2020.09.30.03.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 03:02:14 -0700 (PDT) From: Jun Nie To: stephan@gerhold.net, bjorn.andersson@linaro.org, agross@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org Cc: shawn.guo@linaro.org, Jun Nie Subject: [PATCH v3 1/2] dt-bindings: power: rpmpd: Add MSM8939 RPM power domains Date: Wed, 30 Sep 2020 18:01:44 +0800 Message-Id: <20200930100145.9457-2-jun.nie@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200930100145.9457-1-jun.nie@linaro.org> References: <20200930100145.9457-1-jun.nie@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org MSM8939 has three RPM power domains: VDDCX and VDDMX and VDDMDCX. Add the device tree bindings to manage them through rpmpd. Signed-off-by: Jun Nie --- .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 10 ++++++++++ 2 files changed, 11 insertions(+) -- 2.17.1 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index f136d06b7fc8..919150f426d4 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -17,6 +17,7 @@ properties: compatible: enum: - qcom,msm8916-rpmpd + - qcom,msm8939-rpmpd - qcom,msm8976-rpmpd - qcom,msm8996-rpmpd - qcom,msm8998-rpmpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 83dae2cabb60..4c07f2402b94 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -71,6 +71,16 @@ #define MSM8916_VDDMX 3 #define MSM8916_VDDMX_AO 4 +/* MSM8939 Power Domains */ +#define MSM8939_VDDMDCX 0 +#define MSM8939_VDDMDCX_AO 1 +#define MSM8939_VDDMDCX_VFC 2 +#define MSM8939_VDDCX 3 +#define MSM8939_VDDCX_AO 4 +#define MSM8939_VDDCX_VFC 5 +#define MSM8939_VDDMX 6 +#define MSM8939_VDDMX_AO 7 + /* MSM8976 Power Domain Indexes */ #define MSM8976_VDDCX 0 #define MSM8976_VDDCX_AO 1