From patchwork Fri May 13 10:26:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12848640 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 DC892C433F5 for ; Fri, 13 May 2022 10:28:51 +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=Z72HiQSQrORuCChZlh07Dal3k4TIzQ20AKxodBSl6vc=; b=DFR5bExczb7tGY 4twYCDJOifxC+KpNk/iKKMFnkGw89fNeB4QEEusYBunFvPg0G8mZwz/Fm2LCfAmmhblpqz11EgC2Q 0SXJtdFcA77yLnmLJj9Xbku+YOf0DOtwK8Pq+GesWp1SoqAhi6bnZG3ZjA1A+CHxJKNboez9bzLwT Aq9s0FSzEcOsn5r87Z02RYrwY/DF1jt7pFZl/M5+j+X/zrD+huAIgYZZg+1VXoxymtGnXyzOKeMOG qkr/w7XYo608ijkTjX2vL2aQWC2t+kibZ51k8Sia27CBLAYDdF69DwsnzPKe0Y/jrRU5978q3/5kE cTVn1V4OFalz9emW99Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npSWU-00FXrS-Uz; Fri, 13 May 2022 10:27:51 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npSVq-00FXUG-87 for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 10:27:11 +0000 Received: by mail-ed1-x52e.google.com with SMTP id w24so9432583edx.3 for ; Fri, 13 May 2022 03:27:08 -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=dJu46P0wC89pfC4RPyXAtxa9ISRki41HeoTYWvn9PvOA+YAG4fw8Wrx+my2LWjr9z1 l8Rj/7rXItzkGqFGDUFPX+QIRh4wRYUudVQDqWUFTBq1uIGoG/MoYy7qe6mQxHrdXxOD UD6S3XSW/NZX2JAOi+c/wtMLlDsuJeFUE9L0nc+wkaURk36MXhHGLxsaIfAS+SoMg6IA ygzWTijiy4Z7AKm3nmaFksz5GfLGdBSuv5h87+xwM/xg1WyWnS8UPLzSpT5APL/mHGWq j72j+Hh9a874aKCV3AacZv6zAsjcGKeED0nIqdh/RLYHBIXRW5X8yUSEmdvQv/Ey4EH4 m/dg== X-Gm-Message-State: AOAM532299FUOEOWi+7bW55f/lrM7B/iSI4QNavIzW6XY1gyyqPUS32w De9nElVZp+c3Wa1MjCulZ3Q= X-Google-Smtp-Source: ABdhPJxvN5lB6DSJD2MYMERwdhdTFcjVUkbw9vp5dslvwhSUVn2GAyGWfh9eNKuuBmE5E7xd/e2GpA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_032710_334585_65EB1B8E X-CRM114-Status: GOOD ( 12.54 ) 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. 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>;