From patchwork Wed Nov 16 11:17:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 625592 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00D4DC4332F for ; Wed, 16 Nov 2022 11:27:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239010AbiKPL1m (ORCPT ); Wed, 16 Nov 2022 06:27:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239343AbiKPL1J (ORCPT ); Wed, 16 Nov 2022 06:27:09 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95D612A970 for ; Wed, 16 Nov 2022 03:17:51 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id bs21so29373632wrb.4 for ; Wed, 16 Nov 2022 03:17:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dbsa3bLA/wMv2MLSQ7jZxuU99/pQBAA0OD4jsFAi8M8=; b=B3yyoXk2amBl2yptwzLGqoZvVLEMAM1K+RJm2NBjR+3aZP7yRKg8o3x6y1YyiBVGsy /rjxtkdtKn6zN3BdZqTr/QmNf4J+6kVy5AyoECUoF7q6u5ZXz6zX6QGg6tMnk8sGC93f 4UqFJRrLArzynh17AR+elKcLe4vTbHSBf3bEPNFPrrWn5pcIUND2f2dGPMNSqjsNMjSD 71IZVpADXUB4jlECIK0/vTLz8LcYznP85Yu8PdouzurQaIu5I7cnnwVw7CALKijg2jj1 gFLlRjhhcGT9IVDVb/Ag7vyLqbLrjOw57qkQPbdp28ANOQblGBrGqb0hnch2Kz4+MZ3a lMyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dbsa3bLA/wMv2MLSQ7jZxuU99/pQBAA0OD4jsFAi8M8=; b=yeBaIZRTmcymzbOzTRAtl4qt/4ea1uCEC0HA+oSE3ClFEIqDzCJN7P7Ii9mtyU4gtt OJO97oMKP9ZGBV9/fbmkbfT1ZVPShAPbpkCLF6sISMGMJlZis2Cdh9TXPpfqkyUH7D29 hvZy8g9UIfXig/PYuufmnP0Gsc8GZZCbQ8gR6A3vgrTWxyrMjNajTuWPe18HKMctR9S7 wEZzCvCDOOE390L9yJ23WL9EyNoJ8iYtkGyBjzmV7RN70UyvNJdpYeym/xkHcr7hDoRF rqGTYsTIOYJBJMR4KSMCNkP1m2PSbepJBluAQahCKvVnTpPin5cHX2YCY2XppjMujGHX R69Q== X-Gm-Message-State: ANoB5pmvrrDUnMWQA86IAhC+Nb0/Lq/J1OTqgW0D8LK/4vUAkt1m1Os3 ypPPzEk9T51D7kO6OFvTPA+MxA== X-Google-Smtp-Source: AA0mqf42LggVGFR/E7ZboJ6Yqyw6rWVGHc5A+19uvWJuQaVWk/qNAD4w23/GsV/1Sr3peL6qRGOs3w== X-Received: by 2002:a5d:670e:0:b0:236:e5a2:4f66 with SMTP id o14-20020a5d670e000000b00236e5a24f66mr14344024wru.357.1668597470096; Wed, 16 Nov 2022 03:17:50 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b003c6f8d30e40sm1875870wmq.31.2022.11.16.03.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 03:17:49 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: power: rpmpd: Add SM8550 to rpmpd binding Date: Wed, 16 Nov 2022 13:17:44 +0200 Message-Id: <20221116111745.2633074-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116111745.2633074-1-abel.vesa@linaro.org> References: <20221116111745.2633074-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm SM8550 platform. Signed-off-by: Abel Vesa --- .../devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index c0bee4e8a9db..5bb9f59d196f 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -47,6 +47,7 @@ properties: - qcom,sm8250-rpmhpd - qcom,sm8350-rpmhpd - qcom,sm8450-rpmhpd + - qcom,sm8550-rpmhpd '#power-domain-cells': const: 1 diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 7b2e4b66419a..7a31620ede7f 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -113,6 +113,22 @@ #define SM8450_MXC_AO 11 #define SM8450_MSS 12 +/* SM8550 Power Domain Indexes */ +#define SM8550_CX 0 +#define SM8550_CX_AO 1 +#define SM8550_EBI 2 +#define SM8550_GFX 3 +#define SM8550_LCX 4 +#define SM8550_LMX 5 +#define SM8550_MMCX 6 +#define SM8550_MMCX_AO 7 +#define SM8550_MX 8 +#define SM8550_MX_AO 9 +#define SM8550_MXC 10 +#define SM8550_MXC_AO 11 +#define SM8550_MSS 12 +#define SM8550_NSP 13 + /* QDU1000/QRU1000 Power Domain Indexes */ #define QDU1000_EBI 0 #define QDU1000_MSS 1 From patchwork Wed Nov 16 11:17:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 625189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F247C43219 for ; Wed, 16 Nov 2022 11:27:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239021AbiKPL1n (ORCPT ); Wed, 16 Nov 2022 06:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239342AbiKPL1J (ORCPT ); Wed, 16 Nov 2022 06:27:09 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C43A32D1CF for ; Wed, 16 Nov 2022 03:17:52 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id a14so29386052wru.5 for ; Wed, 16 Nov 2022 03:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=dC8T0lJ8VNoqDp/KEM31NZucVyyaplfQBRTiy2+x1bxi2bSQak4K/bh1RZ2H3MAy/i sox0U5wyiwIVfBI/nfXe03k10vwb+UKs/2L0CPzmZ2cQSPLWENHKxntGWgZ4qd5Udrdx tzvbbd3Q09qlvLup+uikNp1oK1NR1/J4EgTSmsBSsLSfNZOewYuMhPAj2MRc1fnnJGJ5 5XY1DQ+CM40+mldq+RR1DyyNH1ZS16kl+BaOZA9UXBuiHYh9IJTVOF7A/zf03l9tvCjX ANY9Gbz3vibVWoV6tS1V453ibdiCaZizsK6GBCPxk6+n8yEByrUO54v4wzNHoqV8fEp1 ADbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=bi+Mj/Z0ejsd+UpD+LvYHgdGpwa5GDma1i19YhzeW+iD4zAcciwm+1tEiLIn5eubyt E/GLDhKViqOLr4bvwdMcoeOnJmbJ2+TcdQ20ZNH3p9RAqQYCNOCerqx2L1ElUEr1uipm kENGFXIri3V887k5BeUSs+HILct0Lvy3TvsGsYwni+ShStlnl4iDEqQpdkm6bQoaD0/1 h2FNIXVyBbJygfeJcjr7tyl3Ctzt1baJZqBv6MKuZdw/Q2K2xJZ5dKOIdgUhsQJmTKHE BWFD2LI5vRfqRbYnBMuQkyhG1dpGthCJCuEpySuRYiET6l1H+tqGmlpmpJE+3WX92yCU U/fQ== X-Gm-Message-State: ANoB5pmwRCUZ3Z5mTcFGVGSsD9BUey0DBGGa6LXEwRXg+VS9lOk/R529 rIX4C5/9pJyfqyoAk2gZV+xgOw== X-Google-Smtp-Source: AA0mqf4LgI5U0WpW7diSpCRvNaeoXqO1OTmQkqBgDOFAvexpGou/te6aXT2KUA8xGTq6CCmCfCp+5w== X-Received: by 2002:adf:a51d:0:b0:236:6302:2237 with SMTP id i29-20020adfa51d000000b0023663022237mr13831237wrb.519.1668597471298; Wed, 16 Nov 2022 03:17:51 -0800 (PST) Received: from localhost.localdomain ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b003c6f8d30e40sm1875870wmq.31.2022.11.16.03.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 03:17:50 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/2] soc: qcom: rpmhpd: Add SM8550 power domains Date: Wed, 16 Nov 2022 13:17:45 +0200 Message-Id: <20221116111745.2633074-3-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116111745.2633074-1-abel.vesa@linaro.org> References: <20221116111745.2633074-1-abel.vesa@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the power domains exposed by RPMH in the Qualcomm SM8550 platform. Signed-off-by: Abel Vesa --- drivers/soc/qcom/rpmhpd.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 7af68cd720f5..4c2d2c296790 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -372,6 +372,29 @@ static const struct rpmhpd_desc sm8450_desc = { .num_pds = ARRAY_SIZE(sm8450_rpmhpds), }; +/* SM8550 RPMH powerdomains */ +static struct rpmhpd *sm8550_rpmhpds[] = { + [SM8550_CX] = &cx, + [SM8550_CX_AO] = &cx_ao, + [SM8550_EBI] = &ebi, + [SM8550_GFX] = &gfx, + [SM8550_LCX] = &lcx, + [SM8550_LMX] = &lmx, + [SM8550_MMCX] = &mmcx_w_cx_parent, + [SM8550_MMCX_AO] = &mmcx_ao_w_cx_parent, + [SM8550_MSS] = &mss, + [SM8550_MX] = &mx, + [SM8550_MX_AO] = &mx_ao, + [SM8550_MXC] = &mxc, + [SM8550_MXC_AO] = &mxc_ao, + [SM8550_NSP] = &nsp, +}; + +static const struct rpmhpd_desc sm8550_desc = { + .rpmhpds = sm8550_rpmhpds, + .num_pds = ARRAY_SIZE(sm8550_rpmhpds), +}; + /* QDU1000/QRU1000 RPMH powerdomains */ static struct rpmhpd *qdu1000_rpmhpds[] = { [QDU1000_CX] = &cx, @@ -477,6 +500,7 @@ static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc }, { .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc }, { .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc }, + { .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc }, { } }; MODULE_DEVICE_TABLE(of, rpmhpd_match_table);