Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp946558iob; Fri, 13 May 2022 17:21:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXm/g+a3pXLWxFTZarsXJtzKQMqljrswCCEpF++xrV/a1Kv/Sfcl8G2z3f/+t17LEuTMOf X-Received: by 2002:a05:600c:4f4f:b0:394:97e1:ca99 with SMTP id m15-20020a05600c4f4f00b0039497e1ca99mr6689947wmq.143.1652487675902; Fri, 13 May 2022 17:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652487675; cv=none; d=google.com; s=arc-20160816; b=C1nEFozpT3d+DkBuOMBdt1Ntb9FsggEz5J5aiJYdjsqGUTAd/M/nQDsBf67LTIfr7R JnOSDC77dnvhRxQEph01J3a/f9Nb6QU5prYXQXlBdGiEJf4nGOkRLix1b2umpj8h2/S1 VyCE/Pz8Uo2p6JIqQmGVdG1z+sJjUCiBxQGtn0GSscaKm4C0pxv6122st7uiY+AcZqlI SF5MnoVn9GUE5BxBAsYCiKEo1t4WE2UnNhi+a5c4F26AT5djJ/ya0exTG0Ym15lpnXyi vssQij4sXAYoDlC9tU8fadUjL+buctoQjl9S1dcBzp8ojeDN+P/AnOGFkl/GAVACnlB+ EqTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VsZTr9QjspygKqEP/6Io66r11TQgQqrqyops3JYlbzk=; b=IUOyRKqAb+KY2n/434GJHKMfMXegH18SZl/JnlLUthhb+Z8Wiaa7UwWVf7WeLUMEPf gVcKCHPE+yFgkyvjyJ1+MDR2Dv6yxr26Ua0/PR3JhayTXLV5uKSY/5Up87VKN/iIGYIP jJkNX+1nz2ljvhJbAu5fOpZ/J6XxrG1syk0as3No+NUwX1ShodhN41jPVWNRQU+SsjAg mv0vuWk3RDYHgGQtBrh8MpxtRWk4JcfxLakgPlaTPV6Y2lNcbUACVbYfBSXEeHANjnkl 31usADQHPFzTwq6gVwz9sunxfST3pyESC1zkgXCUhTPAiI7nHHPtrJKGdiueZ6L1+Awy A7fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qlA92aLV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d17-20020adffbd1000000b0020adf73d9e1si3212492wrs.403.2022.05.13.17.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:21:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qlA92aLV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1FD3CA5000; Fri, 13 May 2022 16:17:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379515AbiEMK2D (ORCPT + 99 others); Fri, 13 May 2022 06:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379399AbiEMK1K (ORCPT ); Fri, 13 May 2022 06:27:10 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8824C5045C; Fri, 13 May 2022 03:27:09 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id a21so9452729edb.1; Fri, 13 May 2022 03:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VsZTr9QjspygKqEP/6Io66r11TQgQqrqyops3JYlbzk=; b=qlA92aLVsqewcDDRuuGo1+NpNYJnqGNxX3oXp4Q2KrkoNsfUgm04VVeXMU8BD3Nznx gn1aIOgb+inPUojjmRwdm7UGbMjCiZEtE9LwlqUy90SWFvnfLhf/KA0VthiJDAnCNMGH oIob9jPv9/Kxzt98OCHPydPsJWxNMBR60eK6kyk3RiIhNW2tEO1OcssDtBLgkOwpV2Lh 5dDiUgBR42Xa9GX5HTJ0QUdIHqoueQjPNjkI9TMFRMfD3MNtcCxubOv/j8xX8od7cBT4 QkPkbyFdcD7xbmBHgSt5P6QerjkWimxTGZ+eG/sv3AOivQ0MdiXVbli2IgCMctWh14x7 B/mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VsZTr9QjspygKqEP/6Io66r11TQgQqrqyops3JYlbzk=; b=wBRAZICkx5RBtWEEXCFHJ6pyzK6MpcwNZIjSVmuoZst+/j95IYVaaP/yW+GnzBnsjG 2Og98hawNeFefxTxpIQn2+lSjm1u33qRkI3UiUTZurjYez20fUKW2lyYyoas49vTmPeG SvsUohuJniZHk2P4FJOdYeJVHSMHsAVFkS+7t8oypvWxO2YB0sXIYCEfkKw+x/ziytbL 3k9Abi1mqbET61DkK+oJ+MolNnw7KO8TmIzUILvimWb6/otz+BsoEyFYf6n4GOgzeqT9 DyGqC28rYdeqwiddSw6nyXtdjAfhEtHABkAiUafdS1XWD73gzgqhaPetbBMWbMwSphGp EATg== X-Gm-Message-State: AOAM532QzC7QGToGLiHp3a33SdwsMEeb83B8LVe/5KSrk/sRy+xgZp+1 M7ddEwp5t++iittzmQ03/D4= X-Received: by 2002:a05:6402:1399:b0:410:9fa2:60d6 with SMTP id b25-20020a056402139900b004109fa260d6mr39972511edv.35.1652437627797; Fri, 13 May 2022 03:27:07 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id 3-20020a170906100300b006f3ef214e40sm609677ejm.166.2022.05.13.03.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 03:27:07 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] ARM: dts: imx6qdl-colibri: backlight pwm: Adapt brightness steps Date: Fri, 13 May 2022 12:26:15 +0200 Message-Id: <20220513102616.48040-5-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220513102616.48040-1-max.oss.09@gmail.com> References: <20220513102616.48040-1-max.oss.09@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Max Krummenacher Adapt the brightness steps as the backlight doesn't light up for very low duty cycles. Reviewed-by: Fabio Estevam Signed-off-by: Max Krummenacher --- (no changes since v2) Changes in v2: - add reviewed-by tags - Split the Backlight PWM patch into two patches, a) #pwm-cells 3, b) adapt brightness steps - Split to two patches as proposed by Fabio Estevam arch/arm/boot/dts/imx6qdl-colibri.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index d91fae92c90a..023e76215064 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -14,8 +14,8 @@ backlight: backlight { compatible = "pwm-backlight"; - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; -- 2.20.1