Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp87990rwd; Wed, 14 Jun 2023 12:36:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pxxyl/hR49+nIKDer7qFQ61grw/4oDynr8LDMM3fLhKiIvc61LGRutPp+a5u03xFCB1hM X-Received: by 2002:a17:902:d4c7:b0:1b3:8445:5dae with SMTP id o7-20020a170902d4c700b001b384455daemr13212016plg.68.1686771405143; Wed, 14 Jun 2023 12:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686771405; cv=none; d=google.com; s=arc-20160816; b=rXqh3vanZeIDWTS/MsKehPhUvv2DnsjHUlFuzsjynohe0BBCYHNhqQFOxcHZWDJTqZ iR2+UBpxqEA71ntxFf3WGFZCdX+lpr/vSsizcO6GMB4/f9VhWjjSScG2Smih+ukQkeu/ vItuIt4EDRxnv7fdM627gzkLdRJL9VZaSyg0YyFaH4AwzQxKgseU7rIoiBjw3HZypujV L8CYv6+bjOx9jgDJR+B25J63FfmVjr30O2sFPnZNVsIdombkCQk8wf8WassjK8SrBdR6 oBU0N49PWCkRnhp+Nq95MVeCKWUCPukRCe5fWVgi0GXVPFUWF4cQn7vjXxJaNPIQT9/2 GfOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=RavBw/beXNuiIwbQf5+ADzUkWI8HXmt0ibMWsiTo/kg=; b=R6a9nYcJR5es4EFMa3LWHHXj7uX00AoTkASF44Lc+ffiv1vnpI26GfEdsXp0Vraods kNY2TRIwu2ODH//O5+XT0jhBlnLAXERRelJ1NYlhxRqpX4aMzhu0eRypaQHOF2KNuBXD YR+P39Et4CSmxJ2Ldu76B1ywFrenpf8a8jqucyu+bwJY2KX1FfK5Xud2szehPp2I3H7N H8KHbI3mnFmj8NdXAsBTD18I4i59qmwWJer6Z7Yv86xFvjjUaANh5KH16jhQj1uXmqjm JxVQvZg+vJD4lrWrV69HbLnWmyhEoSgtc2zaKD7gH1NdQnbQtD0HEMZXijSjtsAqpZY1 kJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=TVPeiutt; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170902f68e00b001b05e96d85csi11654231plg.341.2023.06.14.12.36.32; Wed, 14 Jun 2023 12:36:45 -0700 (PDT) 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=20221208 header.b=TVPeiutt; 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 S235521AbjFNTJM (ORCPT + 99 others); Wed, 14 Jun 2023 15:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235294AbjFNTJD (ORCPT ); Wed, 14 Jun 2023 15:09:03 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE38268B; Wed, 14 Jun 2023 12:09:01 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-30fbf253dc7so7966f8f.0; Wed, 14 Jun 2023 12:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686769739; x=1689361739; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=RavBw/beXNuiIwbQf5+ADzUkWI8HXmt0ibMWsiTo/kg=; b=TVPeiuttZZZiOfNszeMva/RqEkNV9mLkPCjfWkzGE55N43P6Kqkhi8UfLFK2YfNhSh Zxg7vQKs0QyzrlWsmPOeBqt2A9qnO+x39f4MymaczaiKYztI+DO2OISf6CyOuBw6hFlK Gszp/ppT6jRseFLlYmGh9Lp9EuqqAL4z/3y4jhf2Zr07j05Hwq7S+Qe48IgYlH8yR7VM ZWrSdgHY1FkeA40c/YuO+TLcFlrj3xnAAIbcSIz1MC6L/BmI7x2k23tATKgw/aC6qVcK tmePyDCJihbOMIO2is40QTj4iO0rhIHsG+myXhyGnT6FZAJov1Gc7/EUXMU0awqqBgZL K/lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686769739; x=1689361739; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RavBw/beXNuiIwbQf5+ADzUkWI8HXmt0ibMWsiTo/kg=; b=VhRIh2JzdjNdODrleMb3hSJqurlj+lCCMQ0gbEGju9zk7b6tPJXwDC6QqsmoStZN8V DynIw090EgsrQgfx+Or3X6iJaC/hp/9DXknx9YwBoiPaFx4E5Fg+vRrIkQ9VLhKNduLq D1mUDDJ1668mvk65ylbA8YU3UMEONkEcelckgL+HnB9ipCzK7dhfwQoRE/EWziMxo4ho PBbNCnkGGNdVtxYS1yzl9KHamW5c0M3559uCAJiRHMtob2AkYIgA5CRvgexsL8t6zbyR gwldTi9mHetCVYHrUCforgHlEpk4kMJtn4a+8CkyD0VnuBWUBZp2QaKo65NzqWl1C9Pk V/Xg== X-Gm-Message-State: AC+VfDyflTu1lkQc737HRXdr2zeO0DvtHZWY10A7cUX6Hv3Lc8E+mNPV hBal9MXfFKfIucm2pzWNgxM= X-Received: by 2002:a5d:5507:0:b0:30e:56b3:60fe with SMTP id b7-20020a5d5507000000b0030e56b360femr2092719wrv.4.1686769739485; Wed, 14 Jun 2023 12:08:59 -0700 (PDT) Received: from [127.0.1.1] (2001-4dd6-393b-ff-f59e-4402-63f8-7ff5.ipv6dyn.netcologne.de. [2001:4dd6:393b:ff:f59e:4402:63f8:7ff5]) by smtp.gmail.com with ESMTPSA id e6-20020a5d5306000000b003110ab70a4fsm2341094wrv.83.2023.06.14.12.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 12:08:58 -0700 (PDT) From: Maximilian Weigand Subject: [PATCH 0/3] backlight: lm3630a: add functionality to change boost converter frequency Date: Wed, 14 Jun 2023 21:08:51 +0200 Message-Id: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEMQimQC/x2N0QrCMAwAf2Xk2UJtWWX+ishIa+YCrtVkE2Xs3 +18PI7jVlASJoVzs4LQm5VLrnA8NJBGzHcyfKsMzjpvg3XmMfngLfaxFJ37Qei1UE5fE5G60AZ Kp7aDWkdUMlEwp3HvJ9SZZBdPoYE//+Xlum0/AtvEh4IAAAA= To: Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Maximilian Weigand X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686769738; l=2088; i=mweigand@mweigand.net; s=20230601; h=from:subject:message-id; bh=EEQE3qlxnzvPdxyG2oGt17X4etiM2QkOKRdSulvTDt8=; b=QDW3TR3W/883zra37WNEzh+EauPKNzzRyQ0jUD+mJkih625wuoYVOam6dW69idKvEE8TnOpGi voO1JiSbRG6CGLieSDFKFKTLpGGwPABCsKlTwIlwrEUtY7qvyzobyJx X-Developer-Key: i=mweigand@mweigand.net; a=ed25519; pk=Tjuj6PXmCCxzGTRw+9suZuZ41q/etgDHrIbPdkAaTpM= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 For certain brightness settings the Pine64 PineNote exhibits quite visible flickering of the led backlights, leading to an unpleasant user experience. It is understood that flickering is caused by certain power line ripples interacting with the led driver, inherent to the specific hardware. The lm3630a led driver is able to change the boost converter switching frequency. Among other things, changing the boost frequency can also greatly improve visible flickering issues. This patchset enables dts control of two frequency modifications that the hardware is capable of: Switch from a base frequency of 500 kHz to 1 MHz, and activate a frequency shift to 560 kHz or 1.12 MHz, respectively. As flickering characteristics are mainly hardware dependent, this should warrant the inclusion of two dts entries for the lm3630a led driver to control the boost frequency of the chip on a per-device basis. Changes were tested on a Pine64 PineNote. The following brightness settings were found to exhibit serious flickering without either the frequency shift or the higher boost frequency: echo 186 > /sys/class/backlight/backlight_warm/brightness echo 255 > /sys/class/backlight/backlight_cool/brightness Signed-off-by: Maximilian Weigand --- Maximilian Weigand (3): backlight: lm3630a: add support for changing the boost frequency dt-bindings: backlight: lm3630a: add entries to control boost frequency arm64: dts: rockchip: shift boost frequency for rk3566-pinenote backlight .../bindings/leds/backlight/lm3630a-backlight.yaml | 12 ++++++++++++ arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi | 1 + drivers/video/backlight/lm3630a_bl.c | 9 ++++++++- include/linux/platform_data/lm3630a_bl.h | 5 +++++ 4 files changed, 26 insertions(+), 1 deletion(-) --- base-commit: 858fd168a95c5b9669aac8db6c14a9aeab446375 change-id: 20230602-lm3630a_boost_frequency-bae9656ec759 Best regards, -- Maximilian Weigand