Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp806395ybx; Wed, 6 Nov 2019 08:41:27 -0800 (PST) X-Google-Smtp-Source: APXvYqy/+znMGTjOg+SpZPBm5PXJD06nM8TqNtVlC/d5KU+h8hocywerrV5JPbZgiA0j0p4AHgVm X-Received: by 2002:a50:b685:: with SMTP id d5mr3789143ede.276.1573058487817; Wed, 06 Nov 2019 08:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573058487; cv=none; d=google.com; s=arc-20160816; b=XvuHN9AqiPpMUCV/Vgvtk1Ww/JkMw06YxhWiTLK/6gdxC3Qvr7g0pkCW+1kE4xLDT4 YkO4Lyxot2dmjuBP9CkjWAv8QARqJA6WbZa9F71unT/Z8JkSHgSFsmyFHxmY2El1nm3F vq0Q7h64bZmVihLCGgXr+Bkjuu8nUPsLqJgXOfDW3bFo7dSRDuMlhVE+14bCFdScQA0k ss9+RdYJx1PXKikpB+kt/gNS3msA7iEtdT220EUF2SV5sYR45Z3nUUpiQoei+Rtpes8x NNRM0jEdpUQrTsOiCZGHtjo8kea6j6GyWYnCF/KwXD9BeMf0qlg7VqqlOdnfwczs+pCW fC9g== 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:cc:to:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=vixhL9deqefE5oopP6BfzCyRk2tgLWnqZMgLkmD3lTo=; b=aIhh7+LZ6F6C8dJoCy1Y615diAEY3H475GFRn7dchP6yE/qaQQwVPmOPb97Z2JcmxF JztHptdlcQv9OvBDMYU/e3V/mFE9S45EORw/Ogatq2xuyYIxDUvfIiYk8M/rNUZGSloU n1GyuzEKGqP73Jlak8zz6TjTW1JYVxCu6hMOjxC5D/etnkY7B2ucfPa38cy5awebPS90 6zfehg2/kWcdA6w8722Xw5xvjVrt4NczFtjULHgQfLT9OKg0/6OZKnGjP4ZPIVv+J1+5 184BK1CUK3sjEyezl5xnuUvP6sNWbkBR022BJzAJMqQ0Hb5q1261rYBp8RkRk5kppRns SwMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XH9LTRsp; 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 d10si14639025edk.122.2019.11.06.08.41.04; Wed, 06 Nov 2019 08:41:27 -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=XH9LTRsp; 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 S1732226AbfKFQiX (ORCPT + 99 others); Wed, 6 Nov 2019 11:38:23 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38475 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbfKFQiW (ORCPT ); Wed, 6 Nov 2019 11:38:22 -0500 Received: by mail-pg1-f195.google.com with SMTP id 15so4316165pgh.5 for ; Wed, 06 Nov 2019 08:38:21 -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:from:to:cc:user-agent:date; bh=vixhL9deqefE5oopP6BfzCyRk2tgLWnqZMgLkmD3lTo=; b=XH9LTRspkfNjaasAMtOzBr55zH/FRPUWjhw+WLwURBkz7uW7FrygrNmEmig3N8wf4S kaZuJqlDDWJrFSTgjt3rsWmlOO+GE3nuFP7KggnXom7hGcsujoB4iSmg2rHM6cGNFqJI 2rOHvn557K8KcfeKUDnmkw66hYrtM1k+9WX1A= 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:from:to:cc :user-agent:date; bh=vixhL9deqefE5oopP6BfzCyRk2tgLWnqZMgLkmD3lTo=; b=T04PrBmDy2T2Fsy1LIYvUi1xGTvW+IHI8zeOnYFfikl69/1Tefr8+F9wfkwihh/Po2 VYgws2I/Uwc5q32/GRDRvBMCVbHBiXnmI57skhcSBgkamzgdrIuod6B2xrDljLVF9Lgm HBabR5i5TaztAG16Yr/Ag9nvK3podErzARCK1Oo9kVgpysCPWc5D5vSZYLb7CcTqYlnj 1P3lDLliWc2VCC4Noah6O4G+cvXA/SPcE4f+RtfoPcPLsbwWwfAIb3aaPzcpsRyaoh0x Mf4Sr6WWkVtSLWRdhV7z/UTFkSPPKvj9HHFWkpWO0DhO4KcwACdNvL2pjOG6qh+CU0TE woHQ== X-Gm-Message-State: APjAAAVRvaT+YG1/++h72VWbjeRrGjEEh5/hTaDg2B9cSaUS8Et+j+8X 8Ax2pFBrtF75POBZim61Ia4YF9lKzcwuTA== X-Received: by 2002:a17:90a:7142:: with SMTP id g2mr5059471pjs.36.1573058300477; Wed, 06 Nov 2019 08:38:20 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id x9sm3685058pje.27.2019.11.06.08.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 08:38:19 -0800 (PST) Message-ID: <5dc2f6fb.1c69fb81.195ac.9fff@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1572931309-16250-1-git-send-email-kgunda@codeaurora.org> References: <1572931309-16250-1-git-send-email-kgunda@codeaurora.org> Subject: Re: [PATCH V2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l From: Stephen Boyd To: Andy Gross , Kiran Gunda , Mark Rutland , bjorn.andersson@linaro.org, devicetree@vger.kernel.org, lee.jones@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org Cc: rnayak@codeaurora.org, Kiran Gunda User-Agent: alot/0.8.1 Date: Wed, 06 Nov 2019 08:38:18 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kiran Gunda (2019-11-04 21:21:49) > diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/D= ocumentation/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", This seems to match the compatible list in the driver. Can you convert this binding to YAML and then sort this compatible string list alpha-numberically? Two patches, one to convert to YAML and sort and another patch to add these new compatible strings. > 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 This list looks to be sorted based on id number, so just swap the two here. > =20 > static const struct of_device_id pmic_spmi_id_table[] =3D { > { .compatible =3D "qcom,spmi-pmic", .data =3D (void *)COMMON_SUBT= YPE }, > @@ -53,6 +55,8 @@ > { .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,pm6150", .data =3D (void *)PM6150_SUBT= YPE }, > + { .compatible =3D "qcom,pm6150l", .data =3D (void *)PM6150L_SUB= TYPE }, This is also sorted based on .data value, so swap the two here too. > { }