Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1904232pxu; Fri, 18 Dec 2020 00:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdEM6/vJb/KjFD5OwGENqHdakAnqSiX0V8UIb1GzQ/F/k87MVfaXEFHArGhxYCZlDTZg7q X-Received: by 2002:a05:6402:697:: with SMTP id f23mr3254016edy.318.1608279443912; Fri, 18 Dec 2020 00:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608279443; cv=none; d=google.com; s=arc-20160816; b=HKFXbJXK33b4oojjdnt2jYWLcCgCsjWZyJBuXhjSBrZ+i3HJZg9WuWfmoGfZ+mz+ke IeJM724xO481deLdh5FlhSTEblfK8++xj19lnenuQKJa5r24kbXDCkzOsbHSvO7LU3Jo Buy89MmieSn+bIA3jZswgnGHzga5qrX+GbMnH1pncry13AIVCi19voln6p2Y2FOeGcVy Vtdcz9j3W5PqN5b87TNhdHgUtxxNYrqIAu8y7BUam7+hcG0ip5OehFCPBq2Pi7958nZ1 NKa+fNZeayN9izWEyhS2cihx5DOholitY06LgDYdVIw88Sy0CbbNn8vGob6+Q9GXUf0/ IFgw== 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 :cc:to:from:dmarc-filter:sender:dkim-signature; bh=SuZ7faFUxX/UATUsH4gDxKkN2noH4QILCl9/MoQ2O0w=; b=rQ10+coQoBhU5Ttzl1V+8H5C6jXe1Py2V73weAlxJIOwILSugZJTulkx3C9nkyo8J2 tfMhZCmfW8ujv2AEauQ294gCFz/UvONQt7lwSITpxk+qCvxHKmo80XUmsabo97yOhngQ DNcweBaHD4l5NjYV3Q8bAOcpaDZ2sBuk2YF097MXQ6SvJbWGhMCffHxcHpctoNEDpopF ML9GO2fNw6Huhmo79qPDNIp3QkXsPkjJuycOv5SNBcDle06Er6fitXAY1KqZh01tO1C8 7UsYEAcF3oAA8w7cUa8BmXtaWkrmd5GuvTPGcRiDONhfdRvbIG5HDCgVJi1/BnHyihub 3SQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=fFLTFvTI; 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 r2si5914477edv.308.2020.12.18.00.17.00; Fri, 18 Dec 2020 00:17:23 -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=fFLTFvTI; 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 S1732980AbgLRIQU (ORCPT + 99 others); Fri, 18 Dec 2020 03:16:20 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:46708 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732696AbgLRIQU (ORCPT ); Fri, 18 Dec 2020 03:16:20 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1608279355; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=SuZ7faFUxX/UATUsH4gDxKkN2noH4QILCl9/MoQ2O0w=; b=fFLTFvTI5oOza59/INbR/FFb3AoFUaoug5q68kTxcHt8z6U6scP+Az5M23PjnBN4DqFuTI+x glFE4f19v6BRBsmcAUN3ifh0TlQ85054m2HyyXL5WhMxp//sviwqtxwdqgtR5ekZ1n8UhBO0 3nFfw1UVeWD7l7WPw2ui5vv6DLI= X-Mailgun-Sending-Ip: 198.61.254.31 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-n04.prod.us-west-2.postgun.com with SMTP id 5fdc651b3d3433393dacbe98 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Dec 2020 08:15:23 GMT Sender: kgunda=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4B93FC433C6; Fri, 18 Dec 2020 08:15:23 +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, URIBL_BLOCKED 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 9D243C433ED; Fri, 18 Dec 2020 08:15:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9D243C433ED 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: robh@kernel.org, swboyd@chromium.org, Andy Gross , Bjorn Andersson , Lee Jones , Rob Herring , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kiran Gunda Subject: [PATCH V4 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l Date: Fri, 18 Dec 2020 13:44:52 +0530 Message-Id: <1608279292-24760-3-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608279292-24760-1-git-send-email-kgunda@codeaurora.org> References: <1608279292-24760-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 --- 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 e458dd1..2acddbc 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -58,6 +58,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