From patchwork Wed Jan 20 22:49:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367200 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp53382jam; Wed, 20 Jan 2021 15:56:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwS03+J1C3OwZtO2xMRVqaydjJIXT+5pCBB7Q8kWKR2BN5rZzLfJ2G8H2fdD0GdRiwMjH5n X-Received: by 2002:aa7:d386:: with SMTP id x6mr9344513edq.194.1611187001830; Wed, 20 Jan 2021 15:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611187001; cv=none; d=google.com; s=arc-20160816; b=yQs08djzed1IcDBd5TfvxDmW6xilniDArkQTiA0Tgqrr/d6hIOO7DC83DKQ+ITrWGI Cfj/F/Xv9tW76YTYukes/CdQd/C2BnDX7+mnpQEI1VsMSuV9QMhBcI+KLdD4vpQDIBe+ iC4ZF+sCSailccE2vyubYNCsUh6HH4X272K0LAx3s5US8qWpm/CnhZNKFzZ0BhHVP3QD v/m6WSP81/AJSW3XPKSu6MnLHsR+bYw6FqfWFIJuY5KSBG8r/wqpHigNeg8VZQ6mt7Qw z6KyoTskOgZn/StgSugWmzBzkI3TlbEeYTaeU54d55DPNZfWJzIUwU3HdJYaFbuSkAld XJlA== 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=PuVWjtozf6tjlsvTP6rUGUhjtA8BmU3safV4j5QLlLQ=; b=yC0/f3UB+Miz5eTJ97uWyDxN0RGXnCzPOVtYpDhHovHjS4yi4nB3hX5D319oDqWBKb T0pi23VnjI6ciNbOHBPshBdvMNrwbxxOK5jiPzFjsYJggOzulSbPLU49Z01KZ+kcVQNo uylrxMMe54A4Bg1flilh25chmb+dOt+czly/dqPbkJNAd9YdDQeuoNA4hNze45irmDP9 elCyPlA0ANOLZ2t5XXhdJRPfzhT1Q36bxKw+T5AKKzoSfHsvZw8c4Nob5Yg7Kz+00Qi/ 3x9AgMG6xB11TbnwUQVof6TD49wjszwFPKkEfYGD9SY317doABNfxkcngvu42ygAdH3/ UVZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nlGl7XkC; 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.41; Wed, 20 Jan 2021 15:56:41 -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=nlGl7XkC; 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 S1732084AbhATXoQ (ORCPT + 6 others); Wed, 20 Jan 2021 18:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403984AbhATXV7 (ORCPT ); Wed, 20 Jan 2021 18:21:59 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34F69C0617BF for ; Wed, 20 Jan 2021 14:48:54 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id 9so107155oiq.3 for ; Wed, 20 Jan 2021 14:48:54 -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=PuVWjtozf6tjlsvTP6rUGUhjtA8BmU3safV4j5QLlLQ=; b=nlGl7XkCn0rg50zVcDNjsmuukkfEOvpVyBlVcaMu/H4VJ2N65Ja8HThIAVmA0XvKUE I3Lt1N0/nKH/HuzFXYl7u4q3a5weK9gxb2QRWGXVeH+KM+fvd7apdKvmNjKqDGva/F0y 5qs7KuuQAKD86CGeszH9jvRlqrEbHllHJu0HoijQHuMT6QnSmYmV6tbaAbsEI1GQxUNz QcOSj4jnh1+80PgrS0RQKVoYEXRmXREsA6hSYsC1ovBriluYFk7VjOugxE4Y0zvYkGtK s1KbFvMFDC0elSWxWy3Yioq/fnmb0QKRQmN1fvgUWDoQ/LrezOynlQFJeUy1nVycTBuW sXAQ== 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=PuVWjtozf6tjlsvTP6rUGUhjtA8BmU3safV4j5QLlLQ=; b=bxLw2jZegZPHPWNYf3F9H+5vTIfORNU2yw3Wr9vpUVR9w7XYKt2Y6qH6m/AAlf7S6G Z25YF83cLSUi4idZVFJcw5J8L7LrwLPmqOKAC3jktnfYQqT7HB4ed2Y7vCtIMDeGiBsb 4T20rCuUBVwF6S2V5YjP3+dV4e0crTGArxMR1CefGjq+5T4ewBQJ7F3gAWY0AzmMYPiB MrIp/8E/9Jw4gVmRoXozpvyiSIyVLuJ8Edt0r8teBjQWEx/2yuyWi+WabdfKnDWlrjAJ wV0rSe2tmAu/CEw8qw2Z9AMT6WLGGmCulEuu1w1ro8Ks/GWxH0PUmD/oTN2RHibcVVLR 4bKA== X-Gm-Message-State: AOAM532dd0xO/D0mTcGIZyKGD2NeArK5Nvzbdl8hPOvgYl9dQduYg5n7 hVZHexkeEZdCKJgYk/uoRrrBFg== X-Received: by 2002:aca:4e12:: with SMTP id c18mr3008348oib.68.1611182933617; Wed, 20 Jan 2021 14:48:53 -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 r14sm706740ote.28.2021.01.20.14.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:48:53 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: regulator: qcom-rpmh: Add pmc8180 and pmc8180c Date: Wed, 20 Jan 2021 14:49:00 -0800 Message-Id: <20210120224901.1611232-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 RPMH regulator compatibles for two of the PMIC variants used on the SC8180x platform. Signed-off-by: Bjorn Andersson --- .../devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 2 ++ 1 file changed, 2 insertions(+) -- 2.29.2 diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt index 7d462b899473..ce1e04354006 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt @@ -50,6 +50,8 @@ First Level Nodes - PMIC "qcom,pm8350-rpmh-regulators" "qcom,pm8350c-rpmh-regulators" "qcom,pm8998-rpmh-regulators" + "qcom,pmc8180-rpmh-regulators" + "qcom,pmc8180c-rpmh-regulators" "qcom,pmi8998-rpmh-regulators" "qcom,pm6150-rpmh-regulators" "qcom,pm6150l-rpmh-regulators" 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 },