Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1862516ybv; Thu, 6 Feb 2020 11:09:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxJo/qK17R4gTwlcIHCJN+MvTbCIBg+NsrREt8jrfNifWNxo4TFIFt/zizva5afoH1zxsS3 X-Received: by 2002:a05:6808:3b2:: with SMTP id n18mr7769550oie.146.1581016175779; Thu, 06 Feb 2020 11:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581016175; cv=none; d=google.com; s=arc-20160816; b=ed+kR0OwY5Y4oyDf80bMIjIwtJjFr1sY5cfMNwRU6vCIy2gvuViQYGGR1e1w6iRlZU JOIqzZGIPtbCDZEOmHH7Yfi5QKw9dxZd380+bBDdA/fJPM/Z3cM5PhJZlZ8/3fTP3IVy DO9uzLsMt6T+Pgc0JPOYM1glnSbEO1TyUqbx1nKFIjgLqV2cRJ4CKNSJNLBORi0tQnSF /XVJXP3YVLm0r3agc1lXECHqkT3bwwCg5mlypTr596IABH08ynUiiLJWYYPhdjXHm6KU 8apAfW6Od6dnxYQ5nslL1ipbOT6E2P1zTi+RRo9z688/53u2XNZaO4PFM+/ISF2lJtUD HNAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:to:cc:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=Yu2QDav0lMyEABQNSAjZtJUdEYaLbzOvrURQHYilMW0=; b=BxXHOC/yLGOoTYplEKDtizSCHLCMzoPZMIk1zH+GUQmsToTuKJuyS7++ake3CudNci c1ehZx3vQTZnOjuWxWC9gUtbvAAXFkWR7EN1pggQIgfWHJQy44BynGATeF/MRwGMoghh T7wZALlZDtr4itH4j0sgdo99uNsubpiQ82uTZgJ3C54MnzKVKdJShy2NomiAxhkDDZY0 HIg1YZLpJWUR05rojnsJonyjLQo5Q54wpWpFFlIYt3Roky8ZvhbG6FPHYl5JtgI/KScx gqWwQa02UjZMC+aCHeKRmbaCNxvond6rRGgDi6IxbubgrKH8v+a0Mxm7gOZfge1ZO1Pe PUmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VRaRJW1Y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l83si2501472oih.58.2020.02.06.11.09.24; Thu, 06 Feb 2020 11:09: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=@chromium.org header.s=google header.b=VRaRJW1Y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbgBFTIG (ORCPT + 99 others); Thu, 6 Feb 2020 14:08:06 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:40715 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbgBFTIG (ORCPT ); Thu, 6 Feb 2020 14:08:06 -0500 Received: by mail-pj1-f66.google.com with SMTP id 12so377740pjb.5 for ; Thu, 06 Feb 2020 11:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:cc:to:from:user-agent:date; bh=Yu2QDav0lMyEABQNSAjZtJUdEYaLbzOvrURQHYilMW0=; b=VRaRJW1YHC6Yz1ba1KM+r2rAH78IAw4ECZ8uW10SXwNAHIWn7E+yTg0EHguOn/zRrt eMFPYSqUTeNMXsykpLoM4IV2tVHk0/uMr4OaXPJV8mcVbWOk0QE8XuGjrvBHau/XzuTz tHhIdvSd9A1QlCqSpwFwRf2PLIPuBTZQ+KwDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:cc:to:from :user-agent:date; bh=Yu2QDav0lMyEABQNSAjZtJUdEYaLbzOvrURQHYilMW0=; b=a9ZNWIq1Ylscg/tFAcyn417C2g9j+Go4no4XrAdZjeop4AolIs9zkor+evMM0weBNg BvL4jTlYHfcz++awG/LuSBxrxpGI767ku60F6lDbQPrdFknTOnERzsyz5Iopm3D2AZQ4 ZYpEotowhqCLdQXkYaFlUoGQbon3g/2Tga5ISme9tmGEzUshPRes6D+ih2Fbn4L3XfuS 8Lvgl9AINX8NMMJgJc4xDVXtuIKcpbKUie69tNGObmxvgomrkDlBdIYZrW4yGslnPwsG iAdGUSMb+g/E41RI5MC3rGWI071tGuKNzmgYQgNz3oVoHeepvkmrk8num8Ddh1hsWyrG 5rNg== X-Gm-Message-State: APjAAAUE4nZ/qvWOLAAo2SKHyKIHq3q62CgiU6Xl8eBeorvLjnZ+Obw/ 2mRnyHoqZsDtD7pF8bCc3abUyw== X-Received: by 2002:a17:902:9691:: with SMTP id n17mr5606416plp.304.1581016085712; Thu, 06 Feb 2020 11:08:05 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id q28sm145590pfl.153.2020.02.06.11.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 11:08:05 -0800 (PST) Message-ID: <5e3c6415.1c69fb81.11c79.08a6@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1580997328-16365-2-git-send-email-kgunda@codeaurora.org> References: <1580997328-16365-1-git-send-email-kgunda@codeaurora.org> <1580997328-16365-2-git-send-email-kgunda@codeaurora.org> Subject: Re: [PATCH V3 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l Cc: rnayak@codeaurora.org, Kiran Gunda To: Andy Gross , Bjorn Andersson , Kiran Gunda , Lee Jones , Mark Rutland , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Thu, 06 Feb 2020 11:08:04 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kiran Gunda (2020-02-06 05:55:27) > Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs > found on SC7180 based platforms >=20 > 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(+) >=20 > diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/= Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > index affc169..36f0795 100644 > --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > @@ -46,6 +46,8 @@ properties: > - qcom,pm8998 > - qcom,pmi8998 > - qcom,pm8005 > + - qcom,pm6150 > + - qcom,pm6150l > - qcom,spmi-pmic Maybe the yaml binding needs to say this is sorted in subtype id in a comment. # Sorted based on subtype ID the device reports Or we should sort this list in the binding and sort the compatible string table in the driver with a comment that it's sorted based on subtype id. > =20 > reg: > diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c > index 1df1a27..5bfeec8 100644 > --- a/drivers/mfd/qcom-spmi-pmic.c > +++ b/drivers/mfd/qcom-spmi-pmic.c > @@ -36,6 +36,8 @@ > #define PM8998_SUBTYPE 0x14 > #define PMI8998_SUBTYPE 0x15 > #define PM8005_SUBTYPE 0x18 > +#define PM6150L_SUBTYPE 0x1F > +#define PM6150_SUBTYPE 0x28 > =20 > static const struct of_device_id pmic_spmi_id_table[] =3D { > { .compatible =3D "qcom,spmi-pmic", .data =3D (void *)COMMON_SUBT= YPE }, > @@ -57,6 +59,8 @@ static const struct of_device_id pmic_spmi_id_table[] = =3D { > { .compatible =3D "qcom,pm8998", .data =3D (void *)PM8998_SUBT= YPE }, > { .compatible =3D "qcom,pmi8998", .data =3D (void *)PMI8998_SUB= TYPE }, > { .compatible =3D "qcom,pm8005", .data =3D (void *)PM8005_SUBT= YPE }, > + { .compatible =3D "qcom,pm6150l", .data =3D (void *)PM6150L_SUB= TYPE }, > + { .compatible =3D "qcom,pm6150", .data =3D (void *)PM6150_SUBT= YPE }, > { } > };