Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6843577iob; Wed, 11 May 2022 06:36:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4j5wh41l2LEIKRXPnAI9VN95As/JcLwSJLL/KJH/snrf9FQ8UU88T0qjDnPogWkmbDQS9 X-Received: by 2002:a17:906:2518:b0:6f4:d34d:c202 with SMTP id i24-20020a170906251800b006f4d34dc202mr24122593ejb.710.1652276196445; Wed, 11 May 2022 06:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652276196; cv=none; d=google.com; s=arc-20160816; b=Wh/AQIkIFup9heatqqQyasEXQ0FJ4MfanV27RzDvIMZHiqDtquxGHyvNEkbXdIUVtY 8v2Ix31E87bWjhpn9mTFg4Tjas1TLt5a0zvx1iy1r060vvc9nf4haLAiykC9qp7qvzC0 TOspc9Mh3y8YApdZ04sPns8pju9HLP2HhpgqobUojGphFxbGXUWQ8GIOzoww1+3C7bAh efbkgO1lOheC+zteB/Gv3SToZQDgTLvnviUYh9g6IE0EfFvhBjgai5leykmS9XlBwdtU fk3VIt3whQgovlBgYx1/tisXqXsW8PMw61VAPOdSdaQgKB+Q/onHsLVo3PO9BxbEIEDv 5LBA== 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=3eEpM+FBBTw194C71zX34kjk6ylwP+rd4n2HSuTY7Nw=; b=qXUVw31kfF+D3nKhT9W6oE8xKAA+ySBc3MbZnFZKsalQft70elsF578nGn9+7kkNcL zMVVbS09dwNjQTCuWlHc7P9kl6O+hPjfc5JdVaOWdQ0ChulHSnimdZVca0YIbNPQ43vm ZuclCFofKUKDGKnBaJr82LKinYIO3N9mUzfCXv3xapGwnPD2tWebF0tLmyPkYyKAY7EU mGyR8339vVvIwzfYXdxREIlBdLMKID+uRuS97baDm+g+LhqxmrmLJzNxznEDm+71j6BE eHY7uiXcyX48r24c4daomkGRsM2zzY52Ff9pLPTM8uP1oY41c1ntnZ9OaM9U/WXb4zBi BWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="MRgaBpz/"; 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 qb28-20020a1709077e9c00b006f5162ec114si2515575ejc.870.2022.05.11.06.36.09; Wed, 11 May 2022 06:36:36 -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=20210112 header.b="MRgaBpz/"; 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 S240574AbiEKMAT (ORCPT + 99 others); Wed, 11 May 2022 08:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238801AbiEKMAB (ORCPT ); Wed, 11 May 2022 08:00:01 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C35B2438D6; Wed, 11 May 2022 05:00:00 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id y21so2282375edo.2; Wed, 11 May 2022 04:59:59 -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=3eEpM+FBBTw194C71zX34kjk6ylwP+rd4n2HSuTY7Nw=; b=MRgaBpz/RsKSinth52qx2FJq+/0G6AQQtuh9XafwkipCFyBfMsll+OtwaBTOaK6U0H H7PJT2ZEWiTy3wnYZwGXp3e0+x4liCmtj/l0szWpbInYR6BImbfsFYgybhVyXKkBdVgY EpQDXwSbw1en/6Ne3dtUK0D7uQYvxwA8WPcij/ERPcWO0aW4O0wNdizWLhJ7kly24OJd nAzzKkz1V/2zAsWNiOdObrs0H9fLFcMOyri0f7uIhMFskJ17XAed4uvb5E7mWQE7zs7m AueUActhEfLyPC/GNeMOmbABJd8LYLHE4C3BhZhwVZCKxaAJSFJFMB2Fcv+6dpT/etK5 7RgQ== 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=3eEpM+FBBTw194C71zX34kjk6ylwP+rd4n2HSuTY7Nw=; b=nUKKFllc9EO36okTFKvDiKh6SW0fOLQodGTW//E7BC3Jahg6Xt5edVfozv3VoqJw6R uwC9iWKV6P1Z6pmEt/5F0Ie3aEQ/rQ5KdHhXZtU+q/OXwcsNFTNAFsWk1txOJIW45OI5 k6Awd17GSZ4BAIdZjA0qfZNwaHFk3hOUCLFYBYbxWeDb01IXzCU0jdqFSSMxLMgneZdL saKZVSKLX+7avZ1PJjoBZRCED3eH30uRjPaQ/xcTn0vrCkfrIiv8d+AIbk6yV8xVTobS kc96IxDHBfa0Vojx86X2rTrpDMJE4DO9ccMqEzhbNCZEIdht1bWT7j1JgpfOMjPPdUso aYsA== X-Gm-Message-State: AOAM532RVdfaVfqUmpKZz4G4hHcHe/tIJPPBsr/fXWeaSQhFU3hLTJtD nDNx9uKWxkpcATJcR47SulUI3CVIxzo= X-Received: by 2002:a05:6402:424c:b0:427:eae2:ed09 with SMTP id g12-20020a056402424c00b00427eae2ed09mr28523662edb.376.1652270398431; Wed, 11 May 2022 04:59:58 -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 g6-20020a50d0c6000000b0042617ba63aasm1089279edf.52.2022.05.11.04.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:59:57 -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 v2 4/4] ARM: dts: imx6qdl-colibri: backlight pwm: Adapt brightness steps Date: Wed, 11 May 2022 13:59:10 +0200 Message-Id: <20220511115911.54960-5-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511115911.54960-1-max.oss.09@gmail.com> References: <20220511115911.54960-1-max.oss.09@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Max Krummenacher Adapt the brightness steps as the backlight doesn't light up for very low duty cycles. Signed-off-by: Max Krummenacher --- 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