From patchwork Mon Feb 13 02:59:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Yang X-Patchwork-Id: 56001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2154541wrn; Sun, 12 Feb 2023 19:31:32 -0800 (PST) X-Google-Smtp-Source: AK7set/Mw6h/7imTetJSAl9zmh9hp6wv6jbpWakdWbjLxn3L5LrZHb/IItXUleP2SyVHcGJ31gW4 X-Received: by 2002:a17:906:4ec3:b0:888:b764:54e5 with SMTP id i3-20020a1709064ec300b00888b76454e5mr21935814ejv.71.1676259092334; Sun, 12 Feb 2023 19:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676259092; cv=none; d=google.com; s=arc-20160816; b=ceIxOhg9BzefryfmRlwaIfMwBzekHRGHTGaPdxEGOGN1cLhWkNCJe3Ro+7YK62EcKi LSC62rfKpTxbp6Nm5aIlfCv4LRTy054lgIx5F0Aoi8Xyfc+Z0Lpmfx4FPDepAUmc+xzr le2F/ktEE6UHJ2eqq5FOkOAshBdIbpNtAyIYeoKeD9xTLdzO0lLj9kr/Lv//CMGdHRwq //4vBiUsgJr+d9H1dzv2gN+oR9P0fgdFql+wVpfY618K9HlXQUbnqLxacFGvqskV7tvc PY7XyApbbChPCAczpCFJTbZffBklxfH74rmttBYcxjQ9EE8vJK6i/yOUBONUn0+YJXwF 3dXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=mZSnWC0uJdlBiSLLAHhgUe7rf4dqkdvbgl/BZlGtmEc=; b=HPUDICbn+W7QRx5FLyTFHE3jiwCJr28iwHDA6NacpOe1hp1C5lN8GHBm5No6DD8R6N xpmAXJDG+phvkLOmN+eA+PAx53muwDDVYivBJM806uGxi894iUDOIJVWihusncM5jzpn c9m8r+AvtbOiVuQKaE/mo9UWHt9kwhVrrIBfa+WbXLWp/m5FNLiXGJd29IidQI8z1nq4 WKh6oOAW9XkHyNObNRF4QaGFWmJlnKpHUHlT7GxbkX6Ubbyw3Pr9DvilHoWaeDrACFxf kHr/sKEqhFqSFcx6j+iGgOntvxsMInVHcITw/I7pIxXE8NgIowhKQLaYltdJkhc9Bp4k B6/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ozkUKNNA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fc24-20020a1709073a5800b008aac00e9e97si12349974ejc.897.2023.02.12.19.31.09; Sun, 12 Feb 2023 19:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ozkUKNNA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbjBMDAq (ORCPT + 99 others); Sun, 12 Feb 2023 22:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBMDAo (ORCPT ); Sun, 12 Feb 2023 22:00:44 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D851E1726; Sun, 12 Feb 2023 19:00:43 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id x31so7255186pgl.6; Sun, 12 Feb 2023 19:00:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mZSnWC0uJdlBiSLLAHhgUe7rf4dqkdvbgl/BZlGtmEc=; b=ozkUKNNAbVNKMKeYlZDf5+qj/R+p2TzeR1ULFsjzQL1T3wOAZ8NvMrehM9/fMZOMoX GCbyBsz0kH2ovTVI9aqI20Ui1NFN+iTrfq2yuFlV7IvCi4B8whSAD3EcPJR9dwFFQUdD A1r31X4Ux9Ac5KgzwqBfQvurBRngq7dKZ2FL+YXtARMccmRh3fuWnMLssO2boDhasBRC xiwR117n3J6MF79i/O5z+9TiWQvxuBHy7is+beNfC5MK7ZUVHCJK+esDdM2BoQjZmI+r YYncjS7iWKJ0lnZs+yRNOpar/L/5I808jUinY/gCer85QAk79whZgs3WSsczUK3wm6Ji lv4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mZSnWC0uJdlBiSLLAHhgUe7rf4dqkdvbgl/BZlGtmEc=; b=DLKNlWRqlmpy641XTom+75qe9Izh2BlEMN8DHp/peYfy38AsIVHW9IUxAes7N2Tbzc VcBWMm6zcw7vhGM3lAs9v70mcFKXZKFeHUBpM0ZXdnNwTKaIxCOaG/gN4hpqSlnKl1+S JhoP/i7pc8vqo/A8LZczaKXT/WfZidt4ZwAFJuTE5jUrW8B0TNym9iNmCGwHNAuH9GW4 CDzwnBGH4bl3tmgC0hCS8x3UdDEpvuCtgFdwrH5sKky3tqn+Srrn5Zq29TVLLTwWy3JL /2ZR14Db6T+vImN7rLJM1H4ZdOAxf0ac0LJlyZ2B/TbKRsIgVV8R9ya5h+AwgVB4bqTa MmnA== X-Gm-Message-State: AO0yUKU6w0cV5ybTSSs1nwT0Zngj6PbDXoEehyUGQ89Tro0iYT7smU4f Xx/Ovlz//A9e25XY/i2OTOiL1kEyGwk= X-Received: by 2002:aa7:9e1b:0:b0:5a8:ab78:639f with SMTP id y27-20020aa79e1b000000b005a8ab78639fmr3411184pfq.7.1676257242913; Sun, 12 Feb 2023 19:00:42 -0800 (PST) Received: from localhost.localdomain (2001-b400-e2dc-bf16-9d1f-462f-83db-04dc.emome-ip6.hinet.net. [2001:b400:e2dc:bf16:9d1f:462f:83db:4dc]) by smtp.gmail.com with ESMTPSA id j7-20020aa783c7000000b005938bd2bfd3sm6776981pfn.120.2023.02.12.19.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 19:00:42 -0800 (PST) From: Owen Yang To: LKML Cc: Stephen Boyd , Abner Yen , Harvey , Matthias Kaehlcke , Doug Anderson , Bob Moragues , Gavin Lee , Owen Yang , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: sc7280: Adjust zombie PWM frequency Date: Mon, 13 Feb 2023 10:59:05 +0800 Message-Id: <20230213105803.v2.1.I610cef0ead2d5df1f7bd18bc0e0ae040b03725d0@changeid> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757685053841055053?= X-GMAIL-MSGID: =?utf-8?q?1757685053841055053?= Tune the PWM to solve screen flashing issue and high frequency noise. While at it, the comment for the PWM settings incorrectly said we were using a 5kHz duty cycle. It should have said "period", not "duty cycle". Correct this while updating the values. Signed-off-by: Owen Yang Reviewed-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v2: -Correct unit and update values in comment. 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..a4fde22e3355 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 (3.125kHz frequency) */ + pwms = <&pm8350c_pwm 3 320000>; }; &pwmleds {