Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp256337pxb; Wed, 8 Sep 2021 23:38:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqvVPxICcZ8eY0hRMazccevVMvj0c90/a+pGUXqTgJmi/qV5jjrdnHIm1srbVwxthKxTXP X-Received: by 2002:a05:6638:1606:: with SMTP id x6mr1494552jas.25.1631169524378; Wed, 08 Sep 2021 23:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631169524; cv=none; d=google.com; s=arc-20160816; b=kYh3qD6v/02kqEnjbpkLiihOxqXPCgtUXbyFPX0LoBOrGN/1H9mks5dJi5w0ge7lGH Fg2JSfhDhw9VihJHlVLD1/7IPmYyP0dcuc0Ffp1NlDgO2Qm39+N5+EuaTSZjtKk4jiK3 5rv6ExaWZMTfnrs7uS1flIQZriURllyRwwGdkkkD7mSKaGyq5GWfm6fXaRu0PZkYn3Rs fLEgPUgWpYu8RnS+ktrm3zx6jDduOYvuRY6SGEIzNZX5j9yvLvfU3Y0589JWCV8tUoiz WESa+7j58tF9gdgxWKvVy+DmoDifmXeNdmu1kGEJse8bc0dm7fREOCD4CRcmLF2iaNpr txCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=Tu9VJTw14yYLG7InUDLYuIOAxq1clJaEA5jlZQFtMp0=; b=0CUcDl8DkfKXk0T6S0jcOsPdgPlsrTelwrl/QzUrhLsx6BPzkiYgRJ7Uv0RGrJQNR7 d9DAF66SfcOy8ibfovfDyG2EIFf4fYzNbzS4WXQ7NY7vTy3GfHN4W9UgqTEKKrx6RgY9 J4WYQ5qZ5IErQOlhvCAYOjXtGv1BbeabGhqBhiSpTqX6uooPOyfYELNcK7M0RCtrBpDC OP28peERKJJXCx94RsjjKdWtztoNGM+eEqR1KPsz1xi0g+/HneswCVFBtrzO+ptb2yPt tS2NXQGOMjO480i/qnn0zGfN5maLRyTlc60tUcQClu9lLrIy1h4guaEM6h6A5UFs5wZl 0/5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="qQ/2cFIg"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si901895ioz.23.2021.09.08.23.38.33; Wed, 08 Sep 2021 23:38:44 -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=@mg.codeaurora.org header.s=smtp header.b="qQ/2cFIg"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbhIIGMm (ORCPT + 99 others); Thu, 9 Sep 2021 02:12:42 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:41460 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352156AbhIIGMl (ORCPT ); Thu, 9 Sep 2021 02:12:41 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631167893; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Tu9VJTw14yYLG7InUDLYuIOAxq1clJaEA5jlZQFtMp0=; b=qQ/2cFIg7o+JQuY3B9OlNolQ7JRX3EbX6QXMJOSD3n5K7G6bOs332TUuu6MlJ402YQYtgVDw UUXjXPmKyFya27fUMh09JTe9opUihOS6ayVwWn/2YaJqDMd17kpQuRlMkeXi55sWdkEkof07 aQZZ7pHr2C6nZecYvJmApuI4FEA= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 6139a594ea875192307bb221 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 09 Sep 2021 06:11:32 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E3D53C4360D; Thu, 9 Sep 2021 06:11:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id CB483C4338F; Thu, 9 Sep 2021 06:11:29 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 09 Sep 2021 11:41:29 +0530 From: skakit@codeaurora.org To: Bjorn Andersson , Matthias Kaehlcke Cc: Pavel Machek , Rob Herring , Andy Gross , swboyd@chromium.org, kgunda@codeaurora.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: dts: qcom: pm8350c: Add pwm support In-Reply-To: References: <1630924867-4663-1-git-send-email-skakit@codeaurora.org> <1630924867-4663-4-git-send-email-skakit@codeaurora.org> Message-ID: <667da76fe38a67af196e8dad00decd71@codeaurora.org> X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-08 22:38, Bjorn Andersson wrote: > On Wed 08 Sep 08:29 PDT 2021, Matthias Kaehlcke wrote: > >> On Wed, Sep 08, 2021 at 02:37:39PM +0530, skakit@codeaurora.org wrote: >> > On 2021-09-07 23:46, Matthias Kaehlcke wrote: >> > > On Mon, Sep 06, 2021 at 04:11:07PM +0530, satya priya wrote: >> > > > Add pwm support for PM8350C pmic. >> > > > >> > > > Signed-off-by: satya priya >> > > > --- >> > > > arch/arm64/boot/dts/qcom/pm8350c.dtsi | 6 ++++++ >> > > > 1 file changed, 6 insertions(+) >> > > > >> > > > diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> > > > b/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> > > > index e1b75ae..ecdae55 100644 >> > > > --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> > > > +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> > > > @@ -29,6 +29,12 @@ >> > > > interrupt-controller; >> > > > #interrupt-cells = <2>; >> > > > }; >> > > > + >> > > > + pm8350c_pwm4: pwm { >> > > >> > > What does the '4' represent, an internal channel number? It should >> > > probably be omitted if the PM8350 only has a single output PWM >> > > port. >> > > >> > >> > pm8350c has four PWMs, but I think we can drop the '4' here. >> >> Why is only one PWM exposed if the PMIC has for of them? Why number 4 >> and not one of the others? > pwm4 is used for backlight support on kodiak crd board, so I mentioned 4, thinking 4 nodes should be present for 4 pwms. but I see that we need to represent all the four channels as one node. will drop the '4' in next version. Thanks, Satya Priya > The node should represent all 4 channels, which ones the board uses is > captured in how they are bound to other clients - or defines as LEDs by > additional child nodes. > > Regards, > Bjorn