Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2882140pxj; Mon, 14 Jun 2021 09:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/wBFwnSKN+u+/XtIEuJIKJ1OAfUlwEvZDq/0F57AgX4SevZwIVx90PbRLihyhDcb3esEv X-Received: by 2002:a05:6402:145a:: with SMTP id d26mr17989000edx.151.1623687275894; Mon, 14 Jun 2021 09:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623687275; cv=none; d=google.com; s=arc-20160816; b=nxoMkZLQ+/B0g1IaHoN940G7lBESbjVUW9qTcZyKDjpemcq7Y6g2UCyNs08IJsdcQu kFgvOdL0xORP6ezTAnNmv4gOTTSSlAofbolYVeG6AuS/Ae/AQ8XUM1TAYAmG/+3D+Q+d gXwUq/0t+C17AspwUqHpnewMv+WWMROhh27FuZ+WrkamAV6XvqfEEtHi/EeABFcwkcTy oj6XwpnK9EOD7DRVvvmogy2rdnjvoEgua/r937A3h5PIeKmUVQkO4KNehxUgMfGG7Xju OOTbu5elFHhYLAh86+eWF+N3bdFsOiNd88ZiLGjVF93sHUuwQkLvMtSt1+ITUxsY7GT3 c3eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0oFGZgzuK+wfWh3twXvjozyyp5mnxr4qBNBCoc1c4Vc=; b=pvPBShUCstv0ApdgKGUut4RuMTcXnQCpD+P7KjvSHs/T/0jPn+P5UQULmlrHjtt4Rq T5F2Uq6bzsr2gXTUdR+p+9VORSLC2op4Gt9JdAU/7rYVMMv+B3gteZqOjy8YP0ptI+6i iO2CjD2JH53owNpYWwIwQiA130+l0k6V1Y8kOVJfyQ9pPp26sdC/UUZrArS9+Z84xmY/ vv4K5gxWJa/Uh+uwNk6MwQJqpeXhGXPC3nZocvaGFQijKcngI8GToxD0jxsYsd3ibNAb wS5NETl9ba2yqW7rlZdVoVtmm9qxXSkQarVRxR0/topbcM0esrF5n1RSNOQFbSk1xt0U xhkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KUPJUELS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si12795668edp.274.2021.06.14.09.14.12; Mon, 14 Jun 2021 09:14:35 -0700 (PDT) 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=@linaro.org header.s=google header.b=KUPJUELS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234555AbhFNQO1 (ORCPT + 99 others); Mon, 14 Jun 2021 12:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234511AbhFNQO0 (ORCPT ); Mon, 14 Jun 2021 12:14:26 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8637C0617AF for ; Mon, 14 Jun 2021 09:12:07 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id o17-20020a9d76510000b02903eabfc221a9so11384020otl.0 for ; Mon, 14 Jun 2021 09:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0oFGZgzuK+wfWh3twXvjozyyp5mnxr4qBNBCoc1c4Vc=; b=KUPJUELSmJyV98B+X/+cIUvTZ9qK865mR0u/qVLuiNlLxllgdbUkS1OgK1WWN8/0kn x9IeyyK96IFCf+pp2n7uJTJbA03oqfpIATr4nejMBzhmXeE0pOm4+LiivxUGbVtaUQF3 X5eVUd+D4KsSpnrGANeTmogrhhw1E58moJ4SOLyRwJXDzjRKe6VXSz7u3WgbvnNc7E+G 1RPQaSat1SPzCxVRywkPZVvHD3ePFkSgeCwM1N996tTgRpSK1Hd0VIC8GnBarTFe0AHE WhnkRJFalxBEMZjd2v/xgboeVWnpVkHmWlgTfHqq/MyavGE9TF/D+TpQf2kRHjdxdnnx DzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0oFGZgzuK+wfWh3twXvjozyyp5mnxr4qBNBCoc1c4Vc=; b=UO/FlNuDE8XeFabz1s4rSUB7AzxzMLUsDEhSmlbl/76DimbGQMRigAPXUXbahXfUVp MEHX56qnQ9MBdvd1vlXsm5BhSOm7HrJc4boGz54a2dMNcFXcQPYW7BU/S5sN+jVHzLC5 vb9rC0d4olcNcDZD/qnY7Ty+SmLZefhryLqUozk5CnTPReXGVMZvoguIYbzagHJaBLGL VAYWQuf9nQtGK+LvZZ3b7ecEpUJ2535KuKbryq93ybiDs1aFnmNhxa3d21wP8YmbxRx3 d41qhGmeMN+r5ww6DXJKaAX39oWP0dCXxGbkyKMg9xlyp6d4DwT2BHqU4qSt7/wDeGx/ Gfyg== X-Gm-Message-State: AOAM532dEUhHMyH9se+pv9kOp8QANKDA3F3DnZo3RRUH5sBPmRpX5THT fz6dhbb9KiPzfIjNkrCha4pttAAorihhuQ== X-Received: by 2002:a9d:3e15:: with SMTP id a21mr14289365otd.366.1623687127068; Mon, 14 Jun 2021 09:12:07 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k84sm3033230oia.8.2021.06.14.09.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 09:12:06 -0700 (PDT) Date: Mon, 14 Jun 2021 11:12:04 -0500 From: Bjorn Andersson To: Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, Linus Walleij , Liam Girdwood , Mark Brown , Vinod Koul , Rob Herring , Andy Gross , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , bhupesh.linux@gmail.com Subject: Re: [PATCH 5/8] pinctrl: qcom/pinctrl-spmi-gpio: Add compatibles for pmic-gpios on SA8155p-adp Message-ID: References: <20210607113840.15435-1-bhupesh.sharma@linaro.org> <20210607113840.15435-6-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 14 Jun 03:30 CDT 2021, Bhupesh Sharma wrote: > Hi Bjorn, > > On Fri, 11 Jun 2021 at 08:30, Bjorn Andersson > wrote: > > > > On Mon 07 Jun 06:38 CDT 2021, Bhupesh Sharma wrote: > > > > > SA8155p-adp PMICs (PMM8155AU_1 and PMM8155AU_2) expose > > > the following PMIC GPIO blocks: > > > > > > - PMM8155AU_1: gpio1-gpio10 (with holes on gpio2, gpio5, gpio7 and gpio8) > > > - PMM8155AU_2: gpio1-gpio10 (with holes on gpio2, gpio5, gpio7) > > > > > > Add support for the same in the pinctrl driver. > > > > > > Cc: Linus Walleij > > > Cc: Liam Girdwood > > > Cc: Mark Brown > > > Cc: Bjorn Andersson > > > Cc: Vinod Koul > > > Cc: Rob Herring > > > Cc: Andy Gross > > > Cc: devicetree@vger.kernel.org > > > Cc: linux-kernel@vger.kernel.org > > > Cc: linux-gpio@vger.kernel.org > > > Cc: bhupesh.linux@gmail.com > > > Signed-off-by: Bhupesh Sharma > > > --- > > > drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c > > > index 00870da0c94e..890c44b6e198 100644 > > > --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c > > > +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c > > > @@ -1127,6 +1127,10 @@ static const struct of_device_id pmic_gpio_of_match[] = { > > > { .compatible = "qcom,pm8150b-gpio", .data = (void *) 12 }, > > > /* pm8150l has 12 GPIOs with holes on 7 */ > > > { .compatible = "qcom,pm8150l-gpio", .data = (void *) 12 }, > > > + /* pmm8155au-1 has 10 GPIOs with holes on 2, 5, 7 and 8 */ > > > + { .compatible = "qcom,pmm8155au-1-gpio", .data = (void *) 10 }, > > > > As noted in the binding, I think this should be "qcom,pmm8155au-gpio" > > and please skip the comment about the holes. > > Similar to what I noted in the binding patch review thread, the pmic > gpio holes seem different as per the downstream dtsi. > > So, please let me know and if required, I can make the suggested change in v2. > As noted in the binding, this really seems like software configuration. So we should deal with this in DT (e.g. by not referencing the gpios that Linux shouldn't touch), rather than the driver. Regards, Bjorn > Thanks, > Bhupesh > > > > + /* pmm8155au-2 has 10 GPIOs with holes on 2, 5 and 7 */ > > > + { .compatible = "qcom,pmm8155au-2-gpio", .data = (void *) 10 }, > > > { .compatible = "qcom,pm8350-gpio", .data = (void *) 10 }, > > > { .compatible = "qcom,pm8350b-gpio", .data = (void *) 8 }, > > > { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 }, > > > -- > > > 2.31.1 > > >