From patchwork Wed Jan 20 22:50:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367213 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp54587jam; Wed, 20 Jan 2021 15:58:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUhmnwu+Wk/F4wx6NjVZ6h8G0yX1jRk0fFruhEsQuW4T23pV4mD6JFceMiXKR+1y1VII5C X-Received: by 2002:a17:906:a2c5:: with SMTP id by5mr7723618ejb.356.1611187005782; Wed, 20 Jan 2021 15:56:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611187005; cv=none; d=google.com; s=arc-20160816; b=rPfe8m8kiAyhOR+GWLzeivqFH54HwCL1HtzfA5RnH1gkN6Hl6siaw+06QWneJ8STEx zFpnu1Amkw18cGaI+JE+um1gSncgElOQBrBEOjzIAHvQzGdLxb+TNZ4A3hLg8B5xduf7 fBf+FhIAnKBJCYHsHDTgM0BZRNhsl4DtLAhtMC0MH7uOjaJYMgf3cw49yzTGGRCjnqkb wkf/8mHH94AF6vrgSUiWJtoHNpVzzDlfypeTryAyEAW87lQbhSf1YdARzZuY2ctBeUZO mSsEOtSaTTuIGx4xQhYNHpT5f5rVBsJ35U56XRaUGHoc4viEvaSe9pgjsl0l1spnNZKu gAyg== 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=Vc7WFCAWQd7lGBvjvH/5e8iw6nJRl7Fhz61duy/6iFg=; b=lyvQGhEYXyaAG+Khru0LrYQE/pTc7jKPHobXYseXOasQFnQtribQx1xTWR3mf5coMq ylAmnQZPYIaNvP6I7FrPJHenKXqSxLRSzb1pB2bodTvE+ZQMhBJO5j86ODzgc0Rm0927 ZycrFHzkBiWqfkRUmTrOesR6VRuaG4/sFcjll5DYCwjyJp4HctusZQ+Gpse/LEAxLYVG KnKGuKQsujbxnUXeS1VvOGsUcVqgTevzpf+b5Flxu21waBjHegQg63VdXT7tJ2mKj6kR JwGBY9K+Z2qF637ruzG8C0zmGjR5HsMXxL/BvAqQTMnYBMNUXReDstbsIXKTEamF8pbp DhOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/1tJKMN"; 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 t14si1523962edd.161.2021.01.20.15.56.45; Wed, 20 Jan 2021 15:56:45 -0800 (PST) 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="u/1tJKMN"; 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 S1732288AbhATXog (ORCPT + 6 others); Wed, 20 Jan 2021 18:44:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404041AbhATXZ2 (ORCPT ); Wed, 20 Jan 2021 18:25:28 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A2DC061388 for ; Wed, 20 Jan 2021 14:50:29 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id i20so17210969otl.7 for ; Wed, 20 Jan 2021 14:50:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vc7WFCAWQd7lGBvjvH/5e8iw6nJRl7Fhz61duy/6iFg=; b=u/1tJKMNtHK98EFuEZpTHLK+W1csEfoTc92KipCGW7mazkJJQt3U61PItRCVAS8XKD G+BDGVE92bFOQO9fW+hCMxOU8zMB44QekYabBps0qLMDHDnI99Vl435M51AawtE4hhBo zNhOXEhEZic7qlS1o0X1ov20FhuCkwVvDq2kOJvUwPGEsMpLT0qXhbUBXfvxDWX8KARw DScCVyzoh2v8uimhXaqQPlatsu6i4aeXUzQdw+v6GIvbGlD22RrQYazyLtUrMFTVeRJw 7reRpOAN9YWq5Y8Sg9em4UBrvKlfgP8IDb7jXOVy77SLucv1/6QfH5uxfgYyKOb1XPl3 lpLQ== 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:mime-version :content-transfer-encoding; bh=Vc7WFCAWQd7lGBvjvH/5e8iw6nJRl7Fhz61duy/6iFg=; b=bXr7ku+IFU54LLixtDYJ/SMY07sr14RiDen5I95G4Cv1t/93TEJsmjzpQddwziTjUv 7HXJ5ozjSRHUDdgFwPIKAPfz+IkdIPjtwMfbovSKpBw+fkLZ4V6wUOVKcqnrqyoCAJiF RkbYAwjvwchtp0EF4XTMwsPmr04Y9qogVVR4hDgOuftWDxg+bXQ77m9sasDSlTPygLOZ lvNggJuAc0HWPLtonZVIxJ/n0cTMAAsvSvl20FKhAP0/wb0yuC8dbCr9b1eNEonF3sTZ 6OgZ09qj1DE3uyE/Wz13jnklM1qR5SbS+70qoF4cJFi4eyH3hXt3iAijuGQguiVym6o8 Jy0Q== X-Gm-Message-State: AOAM533+90e7t8fAI5Obuqe8kUZdM0c4USz7SZLfqQLCl4KhVeEbKJVR lG4sZH8sNkogKLGmGi6F2ydIyw== X-Received: by 2002:a9d:2046:: with SMTP id n64mr8646527ota.38.1611183029398; Wed, 20 Jan 2021 14:50:29 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r133sm677632oia.17.2021.01.20.14.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:50:28 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring , Rajendra Nayak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Date: Wed, 20 Jan 2021 14:50:36 -0800 Message-Id: <20210120225037.1611353-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm SC8180X platform. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) -- 2.29.2 Acked-by: Rob Herring Reviewed-by: Shawn Guo Reviewed-by: Vinod Koul diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index 64825128ee97..bdf454712b10 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -24,6 +24,7 @@ properties: - qcom,qcs404-rpmpd - qcom,sdm660-rpmpd - qcom,sc7180-rpmhpd + - qcom,sc8180x-rpmhpd - qcom,sdm845-rpmhpd - qcom,sdx55-rpmhpd - qcom,sm8150-rpmhpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 7714487ac76b..5f07dc16f863 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -55,6 +55,19 @@ #define SC7180_LCX 6 #define SC7180_MSS 7 +/* SC8180X Power Domain Indexes */ +#define SC8180X_CX 0 +#define SC8180X_CX_AO 1 +#define SC8180X_EBI 2 +#define SC8180X_GFX 3 +#define SC8180X_LCX 4 +#define SC8180X_LMX 5 +#define SC8180X_MMCX 6 +#define SC8180X_MMCX_AO 7 +#define SC8180X_MSS 8 +#define SC8180X_MX 9 +#define SC8180X_MX_AO 10 + /* SDM845 Power Domain performance levels */ #define RPMH_REGULATOR_LEVEL_RETENTION 16 #define RPMH_REGULATOR_LEVEL_MIN_SVS 48