From patchwork Thu Apr 19 23:00:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10351685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3DFB060244 for ; Thu, 19 Apr 2018 23:01:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1ED642857F for ; Thu, 19 Apr 2018 23:01:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E0C52861D; Thu, 19 Apr 2018 23:01:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9850128646 for ; Thu, 19 Apr 2018 23:00:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755AbeDSXAg (ORCPT ); Thu, 19 Apr 2018 19:00:36 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36025 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753631AbeDSXAf (ORCPT ); Thu, 19 Apr 2018 19:00:35 -0400 Received: by mail-pf0-f196.google.com with SMTP id g14so3345864pfh.3 for ; Thu, 19 Apr 2018 16:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=W+CuOkbs0AUVF0xg631Zk+N9Mbg5C7WBZIBO+qhg3OE=; b=Ou4XYjJZa2ya1mW/RFWWL/dp/4ZxHUlZlDIsHQ6yZSW4xMU9r4fYcTIyybb2ghpMAb lSXLuZEb28pM6+oBF/LlfCTRP90csXzAhnqRqrAUToDAJAr7suw+0DNFT08NJGj1boph FtyWACmBrybByj7kqDxPicJXLQTLcwtySag9k= 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; bh=W+CuOkbs0AUVF0xg631Zk+N9Mbg5C7WBZIBO+qhg3OE=; b=HKxA9ly7mucBm62gZvalMZoORQaCOozJIICUKxn1hUepvpOBwrO2lMLX43X1M9UVsO BurofACfqVEwvfBT3jRnSzlZaCLn2fx2EPEinnnoluEjSc5AxeXYLfJHLsI1QfRH/m1C LDn1wdWpg1bMmVoB4sIJsZFhS/TIl1gX8yygf7qc8M3c8NxVkD7mtxSjAGM9AX8xNQNH KPOHc+/X4E5h4FyXbo6iciFwEDgQTCJw+MvA+pGE8pc3ELm6ATKHM+jRIhyAzeRqO2qk RmMBSBoeRUFgJX3VqGphm4sm6DMOIiQIlMhPlM4pqOzzIlQGc/6cWlxiYwTY5iHtEzI2 VcOA== X-Gm-Message-State: ALQs6tB3ijvNATmtbi9NIUuf+xE/CZHZxHjaq/FQcyyk7paQ+RLCfRmg qi6oTKDZys9xLUFltcb2ihH4HQ== X-Google-Smtp-Source: AIpwx4/vY1DRpVknDTCjRIEXyGGYfU7sMfXXmec8rYcLOvGYk/ip6kUF+ltgeQf+3cQkv1tKOz8SOg== X-Received: by 10.99.97.8 with SMTP id v8mr6507078pgb.245.1524178834930; Thu, 19 Apr 2018 16:00:34 -0700 (PDT) Received: from swboyd.mtv.corp.google.com ([2620:0:1000:1511:d30e:62c6:f82c:ff40]) by smtp.gmail.com with ESMTPSA id r16sm11395638pff.123.2018.04.19.16.00.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 16:00:34 -0700 (PDT) From: Stephen Boyd To: Lee Jones Cc: Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] mfd: qcom-spmi-pmic: Add support for pm8005,pm8998,pmi8998 Date: Thu, 19 Apr 2018 16:00:32 -0700 Message-Id: <20180419230032.13611-1-swboyd@chromium.org> X-Mailer: git-send-email 2.17.0.484.g0c8726318c-goog Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the compatibles and PMIC ids for the pm8005, pm8998, and pmi8998 PMICS found on MSM8998 and SDM845 based platforms. Cc: Signed-off-by: Stephen Boyd Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 3 +++ drivers/mfd/qcom-spmi-pmic.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt index 6ac06c1b9aec..f708431e2350 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt @@ -29,6 +29,9 @@ Required properties: "qcom,pm8916", "qcom,pm8004", "qcom,pm8909", + "qcom,pmi8998", + "qcom,pm8005", + "qcom,pm8998", 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 2022bdfa7ab4..0b26387c22e7 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -39,6 +39,9 @@ #define PM8916_SUBTYPE 0x0b #define PM8004_SUBTYPE 0x0c #define PM8909_SUBTYPE 0x0d +#define PM8998_SUBTYPE 0x14 +#define PMI8998_SUBTYPE 0x15 +#define PM8005_SUBTYPE 0x18 static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,spmi-pmic", .data = (void *)COMMON_SUBTYPE }, @@ -54,7 +57,10 @@ static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,pmi8994", .data = (void *)PMI8994_SUBTYPE }, { .compatible = "qcom,pm8916", .data = (void *)PM8916_SUBTYPE }, { .compatible = "qcom,pm8004", .data = (void *)PM8004_SUBTYPE }, + { .compatible = "qcom,pmi8998", .data = (void *)PMI8998_SUBTYPE }, + { .compatible = "qcom,pm8005", .data = (void *)PM8005_SUBTYPE }, { .compatible = "qcom,pm8909", .data = (void *)PM8909_SUBTYPE }, + { .compatible = "qcom,pm8998", .data = (void *)PM8998_SUBTYPE }, { } };