From patchwork Wed May 11 11:59:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12846103 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A549C433F5 for ; Wed, 11 May 2022 12:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VZE6heyymyH3OJB1cOJvSo1Fl5m55oQfLACAJwlP7zc=; b=L4z1Jz+wWAc8yp OVX9fXbNLAoEZmno344RdMRiM0GeDAc51neoZ3bVJn3qsPlbV0DrB8xY095zJsn0ZpdtGLAHhMUO3 zchN5iCAqYchwJpPfGY+XMTku56lb9MYKKmYyggtQ3UF1eBwn8PkHfzPa4UMj0ZTJNEFFUSlpoYx1 LpnUHRQIjAlwVqbjYOzIfvu25EQptmbfWZbVTyfjV3RBul2hCouzvCPA2qyGuA9hGL/1B3IdbKkHr mvdoay0FoArXRIIUWYhMBYpIxbp3zWt4RZ/jY5rr6nBkDqYvl9YGxBwi2lLs/7u2nDtswEXAdEutd IS57vRtqbTlTcgU9k3mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol13-006bfj-Go; Wed, 11 May 2022 12:00:29 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nol0Z-006bUn-NG for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2022 12:00:01 +0000 Received: by mail-ed1-x530.google.com with SMTP id c12so2240657edv.10 for ; 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=XSKM2tfKLfcK22A2Dg72iXi2rcav+KrnUfCoV+3K+CINRvNgop3N+rhPlvmN63JZj8 bnAcZcIROsP730FYGDu9J5/Bkevtm+MqPS5wRM68Zt+zp6h0n6xxUYj3qcsCMheffi8u 6ZhohlxtT6KMqKPnNVfp5BmFNA6V8GSH3lh7kTboHjhMlaV3EJV7044qFpJ9H7rz/WRC 7trJ7r02jvGEwhoDhjqHfh5Ww2Fjt/UU0+/FUqL8G9ZVisHVk3k7j2JdiidT+//JOkVq OaDcrnlgFt5K0qPl2R3xQ+tuuwF+mUZnDzOD5fbgaLejhOVtdA1EelBin4e7PNmyskk/ p6ng== X-Gm-Message-State: AOAM533Nx2FKEwXA1w2qGcH/c60dgioraM061cU0t6+AUHNh9GoLlveP wsVYrbVBsxTnB8MfYw+2nlM= X-Google-Smtp-Source: ABdhPJzG5hQF6/6whSh+Q6bYm+jLDCxI1y2bcjo9ORc2L/YKy513EqsfKP2t6gWyBKGIfmwPWt5kLg== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220511_045959_781255_F3C76742 X-CRM114-Status: GOOD ( 12.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Fabio Estevam --- 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>;