From patchwork Wed Jan 20 22:49:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367216 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp54626jam; Wed, 20 Jan 2021 15:58:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYYtINqMmKR/Zy1TkfChyRIbDpcyQ4Y476H1fNW0mQlp+iz9w8EcsEZbl9uuFudLbxAsfT X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr8748397edv.100.1611187003778; Wed, 20 Jan 2021 15:56:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611187003; cv=none; d=google.com; s=arc-20160816; b=d7+Ql2LWsSWd796u3ylSFbpAkPsLeELq5n3ik7wGCIn9SDxC1KI3lmzMYRXjmUJSBx ncJrZ1M3AQ00qW9GJXnM3C6Dt47nnr605t4gBLLlMAOQxvrxnMV4tBmNuy3v2jD7O4/8 F26pPQuRTSW+FZV2fYmHyqVFtrcf0sBV92xrMu5vMF6+MMm+YoMSAUoIA3uS+X7ZzJfy 7y8VC0glxtoySGlNsrg/YWfn1nryVHa/YHUqugGlElEuRB2sRKxmUA5KVPQN+alxDXjU Nb6+5uX+lIvzEpP0FfPTblcmh/P3icduWSqMCK9pU6PRSgS0CgQ4uIYFzOCcUsd8fQ03 uJCg== 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=eRgV/qmccprYhlBn2rYLPOOKZVOkTB6gxQKELN53L1w=; b=UO0d7du1UzejZS5Rn5MeIimFQUOTmy8n1sHdtSNtG+HZSUIRRijC3J7pUrzedKqcui hbtdgaHHpzJYIStFXQoHHuQLYaIeO638pK9ggbmDIWA/SNb2864o7XdS4/hXMO15pHmI b9432kymJDxSCDsjUmQFWtSdgmdlJJV3ysCWkziU0gRsuVoIWIc05+eVmxLeB2YizOM6 QL6hsSEcSy6yDaaPBhR1DANUiitxrXnnBhiTztsO7i9ZOnpdgYedSwARy9KtfPh2xdJ0 4Cxl2PlKus90KP1wwR33G8UAiZiy0LYti2rFQ6LtDrhygac2rt0MHEOGVti45jQGp0WZ 4/EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nHwxjcSl; 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.43; Wed, 20 Jan 2021 15:56:43 -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=nHwxjcSl; 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 S1732212AbhATXoc (ORCPT + 6 others); Wed, 20 Jan 2021 18:44:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404073AbhATXYM (ORCPT ); Wed, 20 Jan 2021 18:24:12 -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 5E3D9C061382 for ; Wed, 20 Jan 2021 14:48:55 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id f6so15790898ots.9 for ; Wed, 20 Jan 2021 14:48:55 -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=eRgV/qmccprYhlBn2rYLPOOKZVOkTB6gxQKELN53L1w=; b=nHwxjcSldYJK3Ehmit4aSwsz8W6KcaDHMisOhQQPrJLJdZmY7ZZ0w4Fj/2eem8SYIH YyLiVPm536if0fEQeXom3sO7dPbfeDm7VBL+R3vSAXbS+uDfZoOslxncWbWk8rJi3vxJ In2/q6sSguz/afZLQmIdRY/VPq0WDsyRmAFG/iISvb2aYoPpIGu0sxT6ZGORBvW3Ojae eC0DT8b61FDczKA/NIhWX7LojXnnDBkrpp0oxML5XkD92XmHyeX2C4s0XiEXO0xEnkHY 2uUE5edQao5BMGn/VRYWd6DBCBYMUfrtQ0aFtS6A2JhWzubq3wTFTpygOOimOCq8l9Y9 im9Q== 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=eRgV/qmccprYhlBn2rYLPOOKZVOkTB6gxQKELN53L1w=; b=iwcIoX/AXG7s6jPI96DY7CQQh1T6nOFD5K29Ev+Mmsj8VIjg7o2Vmg2UsUYXossvgL rRjKSwTrDTdrUx37hcH/DqJUB7p4Lfo6wTQnbwad93vb7tBpvpX0GkEdnRiM6KwqGLnt s13IhWh1bgDVwE0GWnvXs8FH5pcCrLv+v5qz2AWwUGQdz2t/GImOPzMyF/C0OKUZH9TW AvSJeTYqkdBOfPfne/FL60L7+1udtScoo/rV94R2/Xzu91dv5tBHDAGglD8YguB+64hS QlFSqo89wETkhWUcm1Yft54tXohY/0mFSWr7ZV7IguZAdvLi3bt2ZJJ50mPMxLJ2L5xO tVIA== X-Gm-Message-State: AOAM532+WF8Xry4QZS1mj9clQZdsDi6yHHwatECiKRAXAAg/y97gfX+8 2h99rPswQjGcZ0LMCjdcQzX/6A== X-Received: by 2002:a05:6830:1d0:: with SMTP id r16mr8438926ota.54.1611182934671; Wed, 20 Jan 2021 14:48:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:48:54 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Liam Girdwood , Mark Brown Cc: Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] regulator: qcom-rpmh: Add pmc8180 and pmc8180c Date: Wed, 20 Jan 2021 14:49:01 -0800 Message-Id: <20210120224901.1611232-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210120224901.1611232-1-bjorn.andersson@linaro.org> References: <20210120224901.1611232-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The regulators from PMC8180 and PMC8180C exposed by the RPMH in the Qualcomm SC8180X seems to be the same as PM8150 and PM8150L. Add compatibles for the two new PMICs and reuse the definition of the existing PMICs. Signed-off-by: Bjorn Andersson --- drivers/regulator/qcom-rpmh-regulator.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.29.2 diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 98320e1d8bf6..dbad80f904bd 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -1115,6 +1115,14 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm6150l-rpmh-regulators", .data = pm6150l_vreg_data, }, + { + .compatible = "qcom,pmc8180-rpmh-regulators", + .data = pm8150_vreg_data, + }, + { + .compatible = "qcom,pmc8180c-rpmh-regulators", + .data = pm8150l_vreg_data, + }, { .compatible = "qcom,pmx55-rpmh-regulators", .data = pmx55_vreg_data,