Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10477955pxu; Wed, 30 Dec 2020 04:00:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmhumHW2UeDtILRnNLvz/T6nSVFhfxdOjpcXwM2X+UTL5UiUBkUOwXJ/YzyqdvPZKq4mdt X-Received: by 2002:a50:b765:: with SMTP id g92mr50207752ede.317.1609329647962; Wed, 30 Dec 2020 04:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609329647; cv=none; d=google.com; s=arc-20160816; b=gdrYtscN8PhBirnWGKHOId9m0nDeHR+C8dYdMgdHetTbAWxArrytUVfhn3+1xS2R2g /mtuzp71Lbyy1Fl9hZDuAQJ8s9Gyf2zW/LCiiN32EGPOX1IZYQm5MzZgGsRhXleB5Dcx AduX6bQEN/Pv//Zo5/9kbPtfsBJR8xgI99iCG5b07vQiYmZ+AfF6KUqh6tE11LbG02TK bXtiMbLnPudW7YklRAN2ygMJRt27+kUmNIsiNiLXhWLXlrALcs4rKWiaOgGOu2ZmmsT0 oy/h9QlwjtFM5X/Z/QCRx72m3mUJjMkieJlo4yN17Nhrjc4j7bsbICiPmmY94sVZtvu8 k6qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dmarc-filter:sender:dkim-signature; bh=UyxQBKUz5DlXeDQwCAchodqRNud0wMMG6SlPnp0zmhQ=; b=xW6KcgMwdaUGQXnI5iCkMd5SBPRlrJQbJ5XmSPy3TG5s1NxRXD/U5946ga0BVVbyYz Caz5kpDvaYA2R0A8ZMceUXlYhFKnZlXzY4PMU/1fFyaT0cR6/2vmd5t5R0X73lgZ86B8 hTM6lMMyOOOL1UzVt5iEwLzGsUCAK16dcWMGvfKgoacsIMMGp0FTSk+9ayrJHG/b3CYZ fZ6NK6C32FLgTCATo0gBF8WGPnmVUWi9wE85R4e/Fxv2LEGTQcOaZOk0fsm6hffwYrjd K8/x8ZGejfqK6jg69CpHViV0h8nN8xbBs8g2VTGt/hdc8oUTsx+hQMs+KAN4B4Qv42Nj Zm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=AutxsMb0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si22856479edv.565.2020.12.30.04.00.25; Wed, 30 Dec 2020 04:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@mg.codeaurora.org header.s=smtp header.b=AutxsMb0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726625AbgL3L5r (ORCPT + 99 others); Wed, 30 Dec 2020 06:57:47 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:10381 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgL3L5o (ORCPT ); Wed, 30 Dec 2020 06:57:44 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1609329445; h=References: In-Reply-To: Message-Id: Date: Subject: To: From: Sender; bh=UyxQBKUz5DlXeDQwCAchodqRNud0wMMG6SlPnp0zmhQ=; b=AutxsMb0qS24rUKj1CEK2BKHwLBiRTcOLXia3K09/qFeD47EhOf/LCASBld0m4D3drC9+C3T gfa2DIw6bZbUaQuj/xqT8AifEpCxR4pPURoPNBQ6yxbYfyUCZIIyyL4RIEADWsltkkbWnMvI HfaAogNrXyfpa8uyXhiNP3r6rOU= X-Mailgun-Sending-Ip: 69.72.43.15 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5fec6b077524035eedf78f57 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 30 Dec 2020 11:56:55 GMT Sender: kgunda=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BC29BC433CA; Wed, 30 Dec 2020 11:56:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8A730C43461; Wed, 30 Dec 2020 11:56:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8A730C43461 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: swboyd@chromium.org, lee.jones@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, mark.rutland@arm.com, linux-arm-msm-owner@vger.kernel.org, Stephen Boyd , Kiran Gunda Subject: [PATCH V5 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l Date: Wed, 30 Dec 2020 17:26:23 +0530 Message-Id: <1609329384-15534-3-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1609329384-15534-1-git-send-email-kgunda@codeaurora.org> References: <1609329384-15534-1-git-send-email-kgunda@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms. Signed-off-by: Kiran Gunda Acked-for-MFD-by: Lee Jones Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++ drivers/mfd/qcom-spmi-pmic.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index b753bdb..151953a 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -59,6 +59,8 @@ patternProperties: - qcom,pm8005 - qcom,pm660l - qcom,pm660 + - qcom,pm6150l + - qcom,pm6150 - enum: - qcom,spmi-pmic diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index a35d5cf..78e9084 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -38,6 +38,8 @@ #define PM8005_SUBTYPE 0x18 #define PM660L_SUBTYPE 0x1A #define PM660_SUBTYPE 0x1B +#define PM6150L_SUBTYPE 0x1F +#define PM6150_SUBTYPE 0x28 static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE }, @@ -61,6 +63,8 @@ static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE }, { .compatible = "qcom,pm660l", .data = (void *)PM660L_SUBTYPE }, { .compatible = "qcom,pm660", .data = (void *)PM660_SUBTYPE }, + { .compatible = "qcom,pm6150l", .data = (void *)PM6150L_SUBTYPE }, + { .compatible = "qcom,pm6150", .data = (void *)PM6150_SUBTYPE }, { } }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project