Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp343603ybx; Mon, 4 Nov 2019 21:23:36 -0800 (PST) X-Google-Smtp-Source: APXvYqy+fZQ8ohdcN7GyP/fCCI1Jtr5xF1MawcfJQpzlmCrEhqGfESiUFJ0V4eqNK2HO0dkePHX7 X-Received: by 2002:a05:6402:1397:: with SMTP id b23mr17085242edv.196.1572931416011; Mon, 04 Nov 2019 21:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572931416; cv=none; d=google.com; s=arc-20160816; b=KyVZ+i7StKYrKhx1CTJNJHHZtejsvE8PU0ReVSyMSxrJ4qrV+c1MkhrjbiCXmW6mE5 Ry+tMZCiVSUUGG62og2Mduq7BIOjojIT9BiSBrs+jAiMU/HnLJIsjnhlEj4nTe83bnC5 OlDYy53Vz1bLXu+Bemb2qs0pWm6kNBX46rupk7IzhQ0k2rYg2mohhBPanM3ovTFhHJpR DryaT9gX/5F6hcridd35CE21Ih7k6L+0/UfH7p2QADgL4AqXmdzLZjpqadHOJaeD3kiI 8vYs23q6xQ4A9MH45zIvUz+QqNw6ueF2z2cbprqgqxxIqVHVhPfkhJhrAaRwJc32VnQO HWvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=GYWHzUudLJQlHx2xeNnJJjfkyxrLZQU3gIWl0csJ9UA=; b=DZLhHEt79Jlswkwp9xxIqu3/F/uAjCNWkMJDBKnh1ePwwaQ1+7BufQGTSps8H6cASW mcB65/bmiS8y8kucTVZc5q0yoTkyfLqpDB1AFZrvpOMQaicdm8EBKlkN/VfGayHwFh0J b/pUdH5ppv73z02x1Rxw95T6dxZbCm6FMvGe2ufddSScgVV0Kb/XBgU4t6WVcQ6hNOjj EQZ11lzay1bTtK/pKbqLaZgjaSrZxRuWezX3Rpi/G6KOJv58GDH1wqCDNmrW3Qm+o/Jl seMjYDqRiPOynb9+XMHka3Edw94c9F3iPH5UUIPzBDyYqocXLgRRXYeAwVRFwqEoUtGH agGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="ZNN/Tpbx"; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ey5sY7lq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a27si9837682edm.187.2019.11.04.21.23.10; Mon, 04 Nov 2019 21:23:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="ZNN/Tpbx"; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ey5sY7lq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfKEFWP (ORCPT + 99 others); Tue, 5 Nov 2019 00:22:15 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:54540 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfKEFWO (ORCPT ); Tue, 5 Nov 2019 00:22:14 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 55AA660D77; Tue, 5 Nov 2019 05:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572931333; bh=xs9i0VSa9ACa4k7cSLN2iUfBEn4jA8IiiZGN2Q/YeqY=; h=From:To:Cc:Subject:Date:From; b=ZNN/TpbxXnKoosJEcPLI1tFIEjO3VAPQLx/yZAxQY2Tf0aEoFTIfKm3mL72jH3hS8 ogkxVrk8xltvaaJ7tDodEWvyHWJ7hhQSCjmLVCT7YtbTBgqW2wvGGScU8rUb1f1GTN dzdUrZwght/8ooJB+qTq/98lMQsN/FCosJnho6QE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 071FE6087F; Tue, 5 Nov 2019 05:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572931332; bh=xs9i0VSa9ACa4k7cSLN2iUfBEn4jA8IiiZGN2Q/YeqY=; h=From:To:Cc:Subject:Date:From; b=Ey5sY7lqKS/ZaPohQV7TVM/ptT2MqFjTHA6yIvd3kleRk/jtj4aLIm7x0jHWdmKfb lBRneEm3cIFEFH5Q8Nf7P3bsFJ9MbxOEH5cL+btCiL7LwW7fTr5wjQYZ64dVS6JoX5 8puBMuPSo5xXlj5JSqXpFvtmTSEOWdklT48DWdU0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 071FE6087F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: swboyd@chromium.org, bjorn.andersson@linaro.org, lee.jones@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , Mark Rutland , linux-arm-msm@vger.kernel.org Cc: rnayak@codeaurora.org, Kiran Gunda Subject: [PATCH V2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l Date: Tue, 5 Nov 2019 10:51:49 +0530 Message-Id: <1572931309-16250-1-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.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 --- - Changes from V1: Sorted the macros and compatibles. Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 2 ++ drivers/mfd/qcom-spmi-pmic.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt index 1437062..b5fc64e 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt @@ -32,6 +32,8 @@ Required properties: "qcom,pm8998", "qcom,pmi8998", "qcom,pm8005", + "qcom,pm6150", + "qcom,pm6150l", or generalized "qcom,spmi-pmic". - reg: Specifies the SPMI USID slave address for this device. For more information see: diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index e8fe705..74b7980 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -34,6 +34,8 @@ #define PM8998_SUBTYPE 0x14 #define PMI8998_SUBTYPE 0x15 #define PM8005_SUBTYPE 0x18 +#define PM6150_SUBTYPE 0x28 +#define PM6150L_SUBTYPE 0x27 static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE }, @@ -53,6 +55,8 @@ { .compatible = "qcom,pm8998", .data = (void *)PM8998_SUBTYPE }, { .compatible = "qcom,pmi8998", .data = (void *)PMI8998_SUBTYPE }, { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE }, + { .compatible = "qcom,pm6150", .data = (void *)PM6150_SUBTYPE }, + { .compatible = "qcom,pm6150l", .data = (void *)PM6150L_SUBTYPE }, { } }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project