From patchwork Wed Jun 14 19:08:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Weigand X-Patchwork-Id: 692833 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 E322AEB64DB for ; Wed, 14 Jun 2023 19:09:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235565AbjFNTJN (ORCPT ); Wed, 14 Jun 2023 15:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234708AbjFNTJF (ORCPT ); Wed, 14 Jun 2023 15:09:05 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED111FC8; Wed, 14 Jun 2023 12:09:02 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-30e3caa6aa7so7037456f8f.1; Wed, 14 Jun 2023 12:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686769740; x=1689361740; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dAUtpUkmmhsyD80FnhDUBBy4OWnp591lWDfp6Sr6AQA=; b=Y7iKWvFqR3xMVaVi6SLvCGA0HJuuGysh1kRcF/Dq+qpdCR0Eyh02TsQ68Ade4q5+Bl gDxWvT/iTsLIwQNiOGiCenuheK0g0rES1g94SBMChOe0DPHfj7PBb6OR1vi4TfoDJxo/ 9q05owb/naGthGDNDI7BvxfWCHEqiabs+ewAthdFRLxCRTexSVuCO8+5Bdd+UcOLj3mj uAETR3sLMTN6jsnWI6fqbuqSSnyN8dBFqinKR4GJCpf+lgDP/vdKt/c+Rs3U0WRuzmCs j7Ut+Ew26g2g0z6Dxnr94jp4T28jBOxyH82YRHW3W3kSETE2epWoSfjVDStUrCkXZ3aB i1Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686769740; x=1689361740; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dAUtpUkmmhsyD80FnhDUBBy4OWnp591lWDfp6Sr6AQA=; b=MkQm2lQDEnu1RrVCU0PrHFusIpapMbvvhwigFsiIUs3QI2y1TE8NooGVs06M1MPiex +K5bT9h6R6FTfIWImSo1qzjCuq9Z3k9dXvHt5d36xZEJ3nj0F623cTpafsTCSKhaQCPU X14A4T+6L4fuiQtdafoSAl2dswAZ7VpXzLpJ7QyKlgjqJoyAytb/oSCXgGa5tt6Qv4wk 9x4sE1Rp72BwBXulDh7WmUHuiL9tbvbV2gm0TsGtUc1n24JfJtwhcOu1X9YZY6pg5zVM GHsz/4XluXziBdzUXz8AsO4bwAVgv0w/ecHvGIte/4C12FgXdsdv08MDSXext3KQn95r UNOA== X-Gm-Message-State: AC+VfDzu23z6Re1E/jROxscijCPxVo4X6CNb9hnCFzaxGWp6FQLKemRa 8emqIDcMRTg+2LKh5OcUd1k= X-Google-Smtp-Source: ACHHUZ6Jn0/GSY62ytFj0l9l8DWHDmZVjOfGQa0PejhOUnsR8P6+XrFk96WHW+De2W0lOy/SONNTYA== X-Received: by 2002:adf:fe8e:0:b0:311:f28:c65b with SMTP id l14-20020adffe8e000000b003110f28c65bmr1545941wrr.23.1686769740607; Wed, 14 Jun 2023 12:09:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 12:09:00 -0700 (PDT) From: Maximilian Weigand Date: Wed, 14 Jun 2023 21:08:52 +0200 Subject: [PATCH 1/3] backlight: lm3630a: add support for changing the boost frequency MIME-Version: 1.0 Message-Id: <20230602-lm3630a_boost_frequency-v1-1-076472036d1a@mweigand.net> References: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> In-Reply-To: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> 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=2973; i=mweigand@mweigand.net; s=20230601; h=from:subject:message-id; bh=wQuvpc/SGDC/TXlDGAxz9aEj3nBI4XnZFq1GHSX9eFY=; b=MXZMkmZjabryYF/am5YsxkzeHOPo8Y9hH1lMYmwWqgDHqSVYdpnW0TIYVT1Z4bkLVSl1tKpwR +pMYlaGXRrhB7uSH2NS9ouQ+Pdq6jQB2MjWbRfBztW2dcBVfCwSr+/G X-Developer-Key: i=mweigand@mweigand.net; a=ed25519; pk=Tjuj6PXmCCxzGTRw+9suZuZ41q/etgDHrIbPdkAaTpM= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org From: Maximilian Weigand The led driver supports changing the switching frequency of the boost converter by two means: the base switching frequency can be changed from 500 kHz to 1 MHz, and a frequency shift can be activated, leading to switching frequencies of 560 kHz or 1.12 Mhz, respectively. Add this functionality to the led driver by introducing two dts entries that control the boost frequency (500 kHz by default) and the frequency shift (no shift by default). Signed-off-by: Maximilian Weigand --- drivers/video/backlight/lm3630a_bl.c | 9 ++++++++- include/linux/platform_data/lm3630a_bl.h | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index d8c42acecb5d..1e8645694ab5 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -92,7 +92,7 @@ static int lm3630a_chip_init(struct lm3630a_chip *pchip) /* set Cofig. register */ rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); /* set boost control */ - rval |= lm3630a_write(pchip, REG_BOOST, 0x38); + rval |= lm3630a_write(pchip, REG_BOOST, pdata->boost_ctrl); /* set current A */ rval |= lm3630a_update(pchip, REG_I_A, 0x1F, 0x1F); /* set current B */ @@ -528,6 +528,13 @@ static int lm3630a_probe(struct i2c_client *client) pdata->ledb_max_brt = LM3630A_MAX_BRIGHTNESS; pdata->leda_init_brt = LM3630A_MAX_BRIGHTNESS; pdata->ledb_init_brt = LM3630A_MAX_BRIGHTNESS; + pdata->boost_ctrl = LM3630A_BOOST_CTRL_DEFAULT; + + if (device_property_read_bool(pchip->dev, "ti,boost_frequency_shift")) + pdata->boost_ctrl |= LM3630A_BOOST_SHIFT_FREQ; + + if (device_property_read_bool(pchip->dev, "ti,boost_use_1mhz")) + pdata->boost_ctrl |= LM3630A_BOOST_USE_1MHZ; rval = lm3630a_parse_node(pchip, pdata); if (rval) { diff --git a/include/linux/platform_data/lm3630a_bl.h b/include/linux/platform_data/lm3630a_bl.h index 530be9318711..fb5ffb906dcf 100644 --- a/include/linux/platform_data/lm3630a_bl.h +++ b/include/linux/platform_data/lm3630a_bl.h @@ -33,6 +33,9 @@ enum lm3630a_ledb_ctrl { }; #define LM3630A_MAX_BRIGHTNESS 255 +#define LM3630A_BOOST_CTRL_DEFAULT 0x38 +#define LM3630A_BOOST_USE_1MHZ BIT(0) +#define LM3630A_BOOST_SHIFT_FREQ BIT(1) /* *@leda_label : optional led a label. *@leda_init_brt : led a init brightness. 4~255 @@ -44,6 +47,7 @@ enum lm3630a_ledb_ctrl { *@ledb_ctrl : led b disable, enable linear, enable exponential *@pwm_period : pwm period *@pwm_ctrl : pwm disable, bank a or b, active high or low + *@boost_ctrl : boost converter control */ struct lm3630a_platform_data { @@ -60,6 +64,7 @@ struct lm3630a_platform_data { /* pwm config. */ unsigned int pwm_period; enum lm3630a_pwm_ctrl pwm_ctrl; + unsigned int boost_ctrl; }; #endif /* __LINUX_LM3630A_H */ From patchwork Wed Jun 14 19:08:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Weigand X-Patchwork-Id: 693180 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 D714AEB64D8 for ; Wed, 14 Jun 2023 19:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbjFNTJc (ORCPT ); Wed, 14 Jun 2023 15:09:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234921AbjFNTJH (ORCPT ); Wed, 14 Jun 2023 15:09:07 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42C82110; Wed, 14 Jun 2023 12:09:03 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f8d0e814dfso9354035e9.3; Wed, 14 Jun 2023 12:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686769742; x=1689361742; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JT6Z31XAHARj6r8X3TIPRAVf58b/OWvZZzUE5BznjHg=; b=gTzZep0N8oZ10jqQuBazaO0RxgQ4fGM9RR2h9Phld70KcT2mFR2cnLbdgMqScg8sBL 3jMYkb8566phWczTsYRfnzfNxUT2R6VjXkjin4M4pLmU0AVNRQRM/vtTmvQa8cR3B1vY 3qegnkVWljI7Ltunbik/Ch/48zAdVkDn8AWiYWbMH836isLN44BOgxbHVdiZAQ6SkqAu bCIRyIKEn/K/n8l89Myt5fgbn5I9b8NkNczJZ1D2q5ZZzAf82ZbKmfnApqSQpFv0o/Nk eDrdy/kUVixCC20dwLJeKRqsp35Hch2aeSMOHro9Kou/5UtdS7TSkhf4zqfNVOolH/Ha 3ZoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686769742; x=1689361742; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JT6Z31XAHARj6r8X3TIPRAVf58b/OWvZZzUE5BznjHg=; b=cQcCUy8p8MnN827QfmUl+JA+VIlbXrcamfQXbKILs5P/v3vqsEiJe2JmjVcl/CdxAx vGSVxOibLWYl2H7wwHhjwIeSRnCuVgfXoKB8fYVS049POrDmeVy/7737wTFNDJkFXhLL Q5P/y2Wiz1ROd3a7hsD/Da9+qX4rVlQVB1HMFVcPDcFev1aAC/m69nNeFDqxyBbihBRp 7mGnDi6SO/HZ4Z57eRyZjG9gyPbRjKfyOyjtAHUVwkZWfdKUapVdQPEH8F7ILNCjbgSZ FmZle5T3dXcYcRtj7Xog8P7bWEFghn2DmF+pcvr2jZa3fkadj6+LN83T8JDJAdGXtCea Cc2A== X-Gm-Message-State: AC+VfDwo++Dsix7dFTK8bL/GD4s9PH07Z/dwsVxwpDA9IoaS96GHXAXr FzkUBhSUynx52+uXJb8bbs8= X-Google-Smtp-Source: ACHHUZ4FHa3Ekp7twbhYSZ1B+qSHxIRwzxrV2Oa4FpAIjwYwusJWuhQOVC7BOmRWCf2/QwABBhnpCw== X-Received: by 2002:a05:600c:218:b0:3f7:f584:5793 with SMTP id 24-20020a05600c021800b003f7f5845793mr10767493wmi.1.1686769742314; Wed, 14 Jun 2023 12:09:02 -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.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 12:09:01 -0700 (PDT) From: Maximilian Weigand Date: Wed, 14 Jun 2023 21:08:53 +0200 Subject: [PATCH 2/3] dt-bindings: backlight: lm3630a: add entries to control boost frequency MIME-Version: 1.0 Message-Id: <20230602-lm3630a_boost_frequency-v1-2-076472036d1a@mweigand.net> References: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> In-Reply-To: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> 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=1362; i=mweigand@mweigand.net; s=20230601; h=from:subject:message-id; bh=vFi9JmX30p4FXzLB94ZKuKFYw2IqIvaq5iK+mmgK7cc=; b=tZelMqP5s9rTtVj5AIX03Sswiymmj2/HSNVLOJ2ccIO1XsQuYVsGFigH8Y/GaLBYubBTsAXMq 9sYwPTIhVH6DSu/5SpeGl25ralV0tuvaapXJhddWIR3appAYaVkjXHW X-Developer-Key: i=mweigand@mweigand.net; a=ed25519; pk=Tjuj6PXmCCxzGTRw+9suZuZ41q/etgDHrIbPdkAaTpM= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org From: Maximilian Weigand Add 'ti,boost_use_1mhz' to switch between 500 kHz and 1 MHz boost converter switching frequency, and add 'ti,boost_frequency_shift' to activate a frequency shift to 560 kHz or 1.12 MHz, respectively. Signed-off-by: Maximilian Weigand --- .../bindings/leds/backlight/lm3630a-backlight.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml index 3c9b4054ed9a..ef7ea0ad2d25 100644 --- a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml @@ -33,6 +33,18 @@ properties: description: GPIO to use to enable/disable the backlight (HWEN pin). maxItems: 1 + ti,boost_use_1mhz: + description: | + If present, change the boost converter switching frequency from the + default 500 kHz to 1 MHz. Refer to data sheet for hardware requirements. + type: boolean + + ti,boost_frequency_shift: + description: | + If present, change boost converter switching frequency from 500 kHz to + 560 kHz or from 1 Mhz to 1.12 Mhz, respectively. + type: boolean + required: - compatible - reg From patchwork Wed Jun 14 19:08:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Weigand X-Patchwork-Id: 692832 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 4C6EFEB64DD for ; Wed, 14 Jun 2023 19:09:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235445AbjFNTJd (ORCPT ); Wed, 14 Jun 2023 15:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235333AbjFNTJI (ORCPT ); Wed, 14 Jun 2023 15:09:08 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4384D213F; Wed, 14 Jun 2023 12:09:05 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-30fba11b1ceso4329611f8f.1; Wed, 14 Jun 2023 12:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686769743; x=1689361743; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5u9vHxVGrzBlNg97U37WfCH1VZYMHPccfRdk0EIgi0Q=; b=CpgQ+Kp063bXwmLKcP1EEsFKM93bGnY15ULSzxfxUlpJLR6gAyb4oeXYPjqoQUm1Qh kHc+Ueb4SiOE+/bHeahP/YzEp4jLn6ikXcfMAlgRRiQV+sBkHYwFpjdNXjkOsMvCRpUi 2Jb1+Go+ysqeLQxKvH0let+oPsNKRlCFj1nQL9S5ZsjhYwW+J7uflIfyuyXjNdTLvfzG 0Q3jbptnO63W0s2Kp2zPcEmszKHZ4i4SAg6G7taC8/t7agm9MGmGOJWKsg0iNceDD1Yi xnjkmJNOjCwEz+99cd4NwBByCBeI0xLzscMFpyO9RUZzCr2+s4nj7LRAa3JSvCc/Aohl 0Bfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686769743; x=1689361743; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5u9vHxVGrzBlNg97U37WfCH1VZYMHPccfRdk0EIgi0Q=; b=hB8oMvaHCA/hFk8/wttd6jkFXrFhEZHC0Okhpo9R4bCPwxSAuD3DFkztGcbm5rVeM1 Rl8bI8vU8VD5gJPmXc5QB37AVwEe5/iD2bVeMQJbjGMO9rWraA6p1HYanTuz7jEqWCRq teAsTy/coETMqpXFVaRB8aGh32AGgTpB2wtF4ToL8hrz5yXG3tvceIoMzuQHVkY9LAi5 e6ZwXqx3V9s5M/Q1lgZebajL2/rc3qDqEuMWiCBWzQjSrCMoMgPT8S9XA8501io8R+4Q C6A1mxR8Fu6aQutk7kBFfVwPaBpu0TVlnBnuNnygDBBIjZCdC0gb0GX2xbAOpzCaD9BQ SjbA== X-Gm-Message-State: AC+VfDxDadHYx/O98tUhhQXuw5zdYSWank2WpSHaOpqk9PzrlIQhjiD8 iMRmB38AACg/e8IEv8WNXnE= X-Google-Smtp-Source: ACHHUZ4WcZukf0p1Xe7srG7EpSfRIc8i1xLVw2rVsv9fLH+mSROtW2rbeQ6y/IwrGmrmgOtHgQBd0Q== X-Received: by 2002:a5d:4009:0:b0:30d:673e:1547 with SMTP id n9-20020a5d4009000000b0030d673e1547mr12367726wrp.41.1686769743534; Wed, 14 Jun 2023 12:09:03 -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.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 12:09:03 -0700 (PDT) From: Maximilian Weigand Date: Wed, 14 Jun 2023 21:08:54 +0200 Subject: [PATCH 3/3] arm64: dts: rockchip: shift boost frequency for rk3566-pinenote backlight MIME-Version: 1.0 Message-Id: <20230602-lm3630a_boost_frequency-v1-3-076472036d1a@mweigand.net> References: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> In-Reply-To: <20230602-lm3630a_boost_frequency-v1-0-076472036d1a@mweigand.net> 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=833; i=mweigand@mweigand.net; s=20230601; h=from:subject:message-id; bh=68FCYhe2/70pszTO5OdRKpvXw9/fY4xli3NXD6/hP14=; b=S4CP5nzsXth0E8aD8pqpP1sl8cO7kQrQEa7HRD5BrzLuryOjSI3/PCNUZyOKG9OtVCheLd/e+ i6pmW/zckRjBf6ve1+/wKCo4UP/YGxbpdycIp3O6ibe+0ai9w0SVaYb X-Developer-Key: i=mweigand@mweigand.net; a=ed25519; pk=Tjuj6PXmCCxzGTRw+9suZuZ41q/etgDHrIbPdkAaTpM= Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org From: Maximilian Weigand The PineNote exhibits visible flickering of its backlight for certain brightness settings. Alleviate this by enabling a frequency shift from 500 kHz to 560 kHz for the boost converter of the led driver. Signed-off-by: Maximilian Weigand --- arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi index 8d61f824c12d..4e4b3bbaa157 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi @@ -453,6 +453,7 @@ led-controller@36 { pinctrl-names = "default"; #address-cells = <1>; #size-cells = <0>; + ti,boost_frequency_shift; led@0 { reg = <0>;