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: 20968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88679wru; Wed, 16 Nov 2022 03:34:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xlqUPwUqexsUI3k4I+nwFj0RJqQRhheRAFBn6500eYePZCglImd9DEPMktrHz5NCDs+Wd X-Received: by 2002:a17:90b:3b8b:b0:212:eb51:85eb with SMTP id pc11-20020a17090b3b8b00b00212eb5185ebmr3298302pjb.232.1668598459144; Wed, 16 Nov 2022 03:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668598459; cv=none; d=google.com; s=arc-20160816; b=Ka0Eap9sowZupHpzeIPAna1k5KiFJCsArTlsMBbYWxzamBBgosPVlkdiuLi+BcEUXH 4lJ0wzCAJC68A2e57z8khC+lkrpjDOH7EfbP/AF+Uykv/xXE1IxZccpiYOqx5p9uauMr jS2kasBA+TysicY4az8cYX/Wf8NJuEeCfXSnyx2V18O/ekMkIHDErtJLlRWMa14hBfTX DVW5Me+eFYDcjsgNLnp1OjJO6P+NE8deFsWguxiUfpouES7SpcTNCMpEClxnLZ7u6Jhy DmcR+n/1ItfMOAebKqsv0KLkPJvgkAwtRm2M83w5rpXuHnuVK1ycO/1T9Reih0Yn2ewt 3LCQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dbsa3bLA/wMv2MLSQ7jZxuU99/pQBAA0OD4jsFAi8M8=; b=t9aImRzRJhypwsQ9cfs/Vgj2fNmbAwkG+LPwJXxh9htPoguNLfPjiXhkAkr7+ViKXM LZkLj0aY/ndlF78UP3YvR5N6vXk0X0HrVmw4n0z7GsEDpTHN1i0ZVral0V11v75J5jnJ oq77dZJ9uStwgkbw0RZdAV7LLNBjZZ1cUzLwfqihz+vT0d3i5MbF2XFolmBXyuQr30T1 erqKcf/mK1VxHV+gU5yPyTVwz0T2ibP8nNiBuKZPNEUceWN4z4VyuAjNRsqv/yPv6us8 P6cGDww0fuX9+uEr++RWMiXbegb12LgcoA3D+rIYmkfdmVQtiGwVc2HR6wyYCaJeQ39k JKbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B3yyoXk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a631d09000000b0046edec119f6si15594032pgd.227.2022.11.16.03.34.06; Wed, 16 Nov 2022 03:34:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B3yyoXk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S233327AbiKPL2S (ORCPT + 99 others); Wed, 16 Nov 2022 06:28:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239338AbiKPL1I (ORCPT ); Wed, 16 Nov 2022 06:27:08 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 976542B257 for ; Wed, 16 Nov 2022 03:17:51 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id g12so29142546wrs.10 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=mTsIswRT6P1O4Ix6Gxmsvujvdma1VEsyIc1Zlhpp4t2gJ6hhkjmmzWA1u1tIDl02yg X7f10OcLsL9Fu5yeDH6hprQ1KAXWGSr3eKDkjwmJ6Nlra/O8NBWdVr0DuXfbb4kOzlnq AcjjCbYiy/ulXrX6p7kjPHzSzExjsanbfK6jQ4By4QCXS2rZ00/en8KhqSv7ya67dvaw emukuKV05EIkIQTv879aAdzgt6PPfqn5XfJO4o19RVA9KR+d4BHh5del37kk+p1Qpzbt qDG4/pP/yUjCT+gxgmQL4M5X4Hejp1vD8ynxr4T9GNKKGey8n7DLRlWeHYns0O2m6nXp RzUA== X-Gm-Message-State: ANoB5plV2ZNGKU5N04z1Hm0nLRQHa3V6Q1GjMf154AsXOZrx+4Q1WfoE E4TQ6do3z5QwOWMfkcwEXGBgvQ== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749652298131576837?= X-GMAIL-MSGID: =?utf-8?q?1749652298131576837?= Add compatible and constants for the power domains exposed by the RPMH in the Qualcomm SM8550 platform. Signed-off-by: Abel Vesa Reviewed-by: Krzysztof Kozlowski --- .../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: 20969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88693wru; Wed, 16 Nov 2022 03:34:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UJQHIkytbBxtiU2DKfZ/xNXHCrLWwNDGR9BWN/mEWGQGC43QSqNxeFP2D1h4ah+QfT+EQ X-Received: by 2002:a63:d547:0:b0:476:1e54:52ef with SMTP id v7-20020a63d547000000b004761e5452efmr16024353pgi.551.1668598461213; Wed, 16 Nov 2022 03:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668598461; cv=none; d=google.com; s=arc-20160816; b=a6lN5rg1aFVVbOgPmmvpINKwCK9GtSNG9sJq0zqxElYhg4AurvcWsVYKpiel7FygFC btOaiRwbol4P3vNYV9xe2LdnsaKdYZm77OVgGTp8cEs/OuzaoLNb0rPBnvCag9Y0ugeg mvowhg3UZL90US6bx+Lmc89KyAEJLpf5y69sOZyf4f8t9qIbV670e8GhsZqEltQuA1kz 7HGzGvKDdWBkzGX+erkQsIZPxt1Tp+y8zI3UhtyXcXbaJB6o+txR0FFfmXIxZkaLmVUQ U+j5O8SGBFQ1mIk6yz/+sJmpatVLEfVNZUOW56BC6mqhUYoJOSsi9aUn1cQX8T9v7t35 2mRw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xv65Uj0lvJ7ZIlYIMtfh5eKQNGbhyUH7PS0XoMqmdlg=; b=IgQnXCJs+Itgr7toNgRahgil2oMd6JP+uChhVJiMAGUtHbVK3c7ns+YBzKm3tiyJ2G Tlap8vEG68nhrGgV9xJ/pRDqq2cYlD9CVAYVQlpBmzkMJ8X96M2M1KS9PQ4B6/+ipeRg FPbt1m6rWh9u8zq0gYLWxf9R9WZ5Ea3UKWO3JGf5MBNi4uJzD12q22qesl3b3A9aDfuo g6gU3EykB55uLL4CMhIKyL5pUKXiPIAVpo7Abnk+akF1gZFetUNZatQFrgQRbxGPNHQE Msub4MsqZYk8LK0+YrAto7vppVqs+Tm+dFvR2x1W8kwsO36A/8kpeGY60pcmiJ57JDG4 LKnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dC8T0lJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d51000b001870c4d4378si18391499plg.498.2022.11.16.03.34.08; Wed, 16 Nov 2022 03:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dC8T0lJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232768AbiKPL2W (ORCPT + 99 others); Wed, 16 Nov 2022 06:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239344AbiKPL1J (ORCPT ); Wed, 16 Nov 2022 06:27:09 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C929F2D1EA for ; Wed, 16 Nov 2022 03:17:52 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id o4so29231204wrq.6 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=wW8eGV6mUfkfx5xEKkkIr+n2fLFRR2apgvVSjUTJUJ+AgZwp20kfJOf31YVP0h/b3b rNCU4391KJNP8tDIsfpi9sup0XBce2oyDdD6QNamBXQsh9eOT51++49FrG70lLvWoYx/ wTJowqJnefgBDyWsewtIXYUQPrzfz0HiY8IfKyCrzUlFnK5uMEdfcS/r8/7+SitXvLDw n7tfPXpUOxrQIPGA73V2HbKpzeVxeWIHU6FaS5qSg1AbUPJwGEUAWwvMgOoxeTgi+1R2 ftu+r8FvUHA7/mNHFv7ulE7l8bzcEE/nEkYICdUWY3jY2NAASAduLS9eVLMgDSWBpcII tgsQ== X-Gm-Message-State: ANoB5pkKlLCPAt2Fm3173EW50JkApmDS+uhh9pRwNpfHmPh5c7NNF7z4 JkhAd7DOYdofbDLtQRqNORxnlg== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749652299788244823?= X-GMAIL-MSGID: =?utf-8?q?1749652299788244823?= Add the power domains exposed by RPMH in the Qualcomm SM8550 platform. Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio --- 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);