Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23F8AC6379F for ; Thu, 9 Feb 2023 19:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbjBITph (ORCPT ); Thu, 9 Feb 2023 14:45:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjBITpe (ORCPT ); Thu, 9 Feb 2023 14:45:34 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BF5965EF6 for ; Thu, 9 Feb 2023 11:45:33 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id y7so1107753iob.6 for ; Thu, 09 Feb 2023 11:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=tx7x78jzB/5TcK335na29BDCwW6N/hAYlq6Sp4YpsiI=; b=RZ3yuuESZOagfSBmS5EF9BxQF8Z6uzBibqMujT1Q2VYT/kbeqhgat8wvBSUaQmrsS5 3LSQUloXf4nb2orTPziz8csXjYZbzsXrxwEShXVmj4GWoW/P0DQKs1Pp3xW3W6s9Fo8y i6goArMbCCbMAE7lhk59fFsiLBp5EtgqZJIzg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tx7x78jzB/5TcK335na29BDCwW6N/hAYlq6Sp4YpsiI=; b=LZs7lq/jDL+qOvcz1oKUtEXxDK7AiFPRMHiRIIJ++XPpotdPlGe2HLZw+o7hdL0QNY blQxl0oEQjtAqy1orlOwhDsYD8WU5a+8akZx+kOJOOsixh6gwDoghV5gHUqdW0yVUlm6 WzHCfTlqBLx+SsiWyWGUj0gm+YMmom68+ZqYfRkD9Hgz/vISmhbtJmPi2qyu+WRMOMRn dyGJ65kS0itNGolTXiFEGJHBjtQJKuYJFc1BDiF9R2tzkG7288himqNQIJGrW1bL00bY /z1PyuH/s3lf7kgMzixYLdRPOKvHox3meEmzBolDviC/F6z1oi9G+h180YItq4nIDWBC iTyQ== X-Gm-Message-State: AO0yUKXsUeGWEMbwpr7ELdJ+kmfUgzQ/RBUJbydI/8lMn8RZbLAPTfOG J8YirkF2A9LXwg0P7vLmfmjs/w== X-Google-Smtp-Source: AK7set8G93lun+KOXmMrPTB4I5i7w/4YIym7oI6fbFcw1C8vh2FLRyL91TcDy9MjGF5dHvdNY1Su1g== X-Received: by 2002:a5e:a908:0:b0:734:8f86:b78d with SMTP id c8-20020a5ea908000000b007348f86b78dmr8497317iod.11.1675971932453; Thu, 09 Feb 2023 11:45:32 -0800 (PST) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id s26-20020a056602241a00b0071f4551300csm671672ioa.2.2023.02.09.11.45.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 11:45:32 -0800 (PST) From: Matthias Kaehlcke X-Google-Original-From: Matthias Kaehlcke Date: Thu, 9 Feb 2023 19:45:31 +0000 To: Owen Yang Cc: LKML , Gavin Lee , Doug Anderson , Harvey , Abner Yen , Stephen Boyd , Bob Moragues , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sc7280: Adjust zombie PWM frequency Message-ID: References: <20230209102807.1.I3e1463cd0fb66311a269f2698d0767a2acfaac3f@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230209102807.1.I3e1463cd0fb66311a269f2698d0767a2acfaac3f@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 09, 2023 at 10:28:16AM +0800, Owen Yang wrote: > Tune the PWM to solve screen flashing issue and high frequency noise. > > Signed-off-by: Owen Yang > --- > > arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi > index 64deaaabac0f..000f64d27ab9 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi > @@ -61,8 +61,8 @@ ap_tp_i2c: &i2c0 { > }; > > &pm8350c_pwm_backlight { > - /* Set the PWM period to 200 microseconds (5kHz duty cycle) */ > - pwms = <&pm8350c_pwm 3 200000>; > + /* Set the PWM period to 320 microseconds (8kHz duty cycle) */ > + pwms = <&pm8350c_pwm 3 320000>; Is 'duty cycle' really correct here? The unit of the duty cycle is percent, not kHz and it shouldn't be impacted by this change. I guess you mean frequency. And how does this change result in a frequency of 8kHz? Wouldn't it be 3.125 kHz with a peridod of 320us?