From patchwork Wed Jan 20 22:50:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367199 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp53365jam; Wed, 20 Jan 2021 15:56:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzky5N5QZOqBiHbzU0xdzT3cCEbcZhnulfkN40b5gFOAdY5X1Q6mspwafX1YeEFPbAl2Eg6 X-Received: by 2002:a17:906:6887:: with SMTP id n7mr7287840ejr.362.1611187000497; Wed, 20 Jan 2021 15:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611187000; cv=none; d=google.com; s=arc-20160816; b=jj7l+uHvL/tPpzOjF9Nl1x/A9YZO7pikACjfgn1Z4bPjVeHjFTnoTe1JH8T3fhIp0S /UjoE+dZX8ILesM10IyHC0MgF2kDiVJLT45FM2+XEWQ5C/zj8wq1FBMUl+D+pB/3/sc+ tkjr0uDmgUWAIRgVhtj/Bu/yWVRre+JErZ7lK3AeV5KvUVobfwPqCbu1/xmF2Dvt0G9p WH+3FQy5zxtYMFHwp4MKy810Q9mviKMzdzOvOSMjm3RjQqUawTcgkxAr2jnKhBD9BYJb MSO3SD2I0cI63N4Xk+vkkz5IVBtnPfa8gHBPYZfigFh/B7SaHZp9z0mo7HwsJlaQVMph SerA== 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=4idyrgOjbPCo0xIvVDxnoQX1+7++2YYqASwzmUbTSIg=; b=hJnUZb0Iu7jfeVGzgoM0QAB1pwsr898FJNVmD0cITisNZ9Pu2evFcoeP8nH0yLcBKq BjwqZZY9u70tNbfttfbQZSKMc2QYpwHHy9KhuMAI9LuH3kDOG4IADwOR9sqkjFMK5i86 594cJ/jyJLwR8hRBoaGn/bl568M5m3/uzlAQsGOog/XdRuL1q5cThTfbY9+DppxI3q7r MdEn6lLL2GLLAFq4qMrEUCAL9Hs4rigSl3Jj79dsyWTg0vz9T0LX+ZENYkelaAfE4OS5 QNPARIffMB0j91A9Fk5rj4xMIVggN+J2rwNGiIfMUsvk00WA29CuZBy5VmmeogXlRyvE /7VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FwpFBEdg; 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.40; Wed, 20 Jan 2021 15:56:40 -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=FwpFBEdg; 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 S1732023AbhATXoP (ORCPT + 6 others); Wed, 20 Jan 2021 18:44:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403865AbhATXTn (ORCPT ); Wed, 20 Jan 2021 18:19:43 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5502C061389 for ; Wed, 20 Jan 2021 14:50:30 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id 63so2556578oty.0 for ; Wed, 20 Jan 2021 14:50:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=4idyrgOjbPCo0xIvVDxnoQX1+7++2YYqASwzmUbTSIg=; b=FwpFBEdguoiC+d4juDT3vyfKfWHn9cZAGK9cR+YsoPIdAANOkVKQvzUBgY460yF0YW Y1W7EeLTIwQWdYygIyO03+K/O3PKuFQTfhmBhhxhL2TPN9rltmJru4ry5loGDnXVO8+s ohSkXH6uOH/MLP/ksrmbF+ncN5DQM+fWvWEscvZ3efjMIIt9QhE3imCLLwtvsKL/w88Y vfegYkpMwCQ7mFNiKBAs6ME7NLKJ4hxJiFvcPtHYx++uQuODT6MEHD/fHvM7zeQqErkg ZKUS4iMInVT5/QgI+yogRUDCaSZk31f5VZY7KLJIBBnV2WhXqvnUWH6ZVJx9NniH7b88 ZVOA== 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:mime-version:content-transfer-encoding; bh=4idyrgOjbPCo0xIvVDxnoQX1+7++2YYqASwzmUbTSIg=; b=SX0MZpTa/MA8Gxe0uqAz93cjmmm0ezlBAIsx7RhbqXWG7lNg03WZyfludKXPu9SvE+ A/EkfFw4Atv2hKo+opBT/EatdEQ6wbSzq0NyKz8ISnuyCvHCFzxlZ2qOl3ymNK1kEbD7 CLrwld6g0KM7YRRBisobhRfz4jYuIHB9alwsMaQ+hcm5QKtpANUdA9H7ZVVx5CpATTlZ 0AtesiXOi8IaCjw7iywSRDn0wdTsI33iA7A0MFFjk2LNOdxCX54whSbnutbze5Pn5cLJ aPoWbg2ISlmmyFvSjm6IKHQl3C7BxGBLWx0xSFpEPgsQAYPh8XOT2lCFZnk68oBiXsGa j63Q== X-Gm-Message-State: AOAM531uqM/tdiwNrS/852SFFkj3R3ey1uXEBo57jFc0TbcIDixR6mI7 vGfNRDF3Eo3Hx/hBUqrJzfHIrg== X-Received: by 2002:a9d:4b03:: with SMTP id q3mr8362686otf.88.1611183030357; Wed, 20 Jan 2021 14:50:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:50:29 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rajendra Nayak Cc: Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Date: Wed, 20 Jan 2021 14:50:37 -0800 Message-Id: <20210120225037.1611353-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210120225037.1611353-1-bjorn.andersson@linaro.org> References: <20210120225037.1611353-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the power domains exposed by RPMH in the Qualcomm SC8180X platform. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/rpmhpd.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.29.2 Reviewed-by: Vinod Koul diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 7ce06356d24c..18d5180c0ca0 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -217,8 +217,29 @@ static const struct rpmhpd_desc sc7180_desc = { .num_pds = ARRAY_SIZE(sc7180_rpmhpds), }; +/* SC8180x RPMH powerdomains */ +static struct rpmhpd *sc8180x_rpmhpds[] = { + [SC8180X_CX] = &sdm845_cx, + [SC8180X_CX_AO] = &sdm845_cx_ao, + [SC8180X_EBI] = &sdm845_ebi, + [SC8180X_GFX] = &sdm845_gfx, + [SC8180X_LCX] = &sdm845_lcx, + [SC8180X_LMX] = &sdm845_lmx, + [SC8180X_MMCX] = &sm8150_mmcx, + [SC8180X_MMCX_AO] = &sm8150_mmcx_ao, + [SC8180X_MSS] = &sdm845_mss, + [SC8180X_MX] = &sdm845_mx, + [SC8180X_MX_AO] = &sdm845_mx_ao, +}; + +static const struct rpmhpd_desc sc8180x_desc = { + .rpmhpds = sc8180x_rpmhpds, + .num_pds = ARRAY_SIZE(sc8180x_rpmhpds), +}; + static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, + { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc }, { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc }, { .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc}, { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },