Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp443684iob; Fri, 13 May 2022 05:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsMgfsU03Sr4E9Hptpai0PSCPLSJc8onjr0lvxaRpJaSWFtAcoZXsOhKk4QyIjhQyYIDLC X-Received: by 2002:a05:6402:4396:b0:427:f2dc:b11 with SMTP id o22-20020a056402439600b00427f2dc0b11mr40296213edc.298.1652444189249; Fri, 13 May 2022 05:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652444189; cv=none; d=google.com; s=arc-20160816; b=B3RQ300WOZsIJ/cMb25AnW2wCosBEuBDftXrK0IUOvOmWUR6BpGU/nBLuwtTZ4ZjBn wE4qUQnxfD2LmQAy5KOEowrO6x3diIPXPFTQ493JZ9xCbNZUT+CgFI54vX03gi7Mmf77 OtoGiwk8GxcVYoIBWdcwI/3l0LRZUomvtMMtGd5uRBTQN/juz9MeKuAGdn8iYIT01q0R m5OhQbEhyv+EAVad5OxWSQeVFJbEa2chxWdErG3WE4UdlEAZvPvNmFAPUn5NPJv0fn3l rxXZDGvK7RbKtNDzdLY5xpbdw7kpGHXhyRhrhivhbtw+EWUnMEAeuBHwI0uhX+pvCnSB LZjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lWVJvwsGE3WVOqhfUYTwQYp/p0p+hpGDNsU5mTlsoz0=; b=S753bWuNDxxbW0jduUc0LGEs0E4k4J1f+1rpatkyvEt5MwCNEdLY1PiEQhUBxjUFHU r/4sesBezffEPCB7fFYo/F/+52uiEl/XR0RodVng1wdiKsZc9347VQQ1oEdD/zUArXRV ixWQCGpi26P5a4/7o3JfgIRF+u2JkuWCApxury2iSOqq+3MwCBlLTlc8nxDGCX3ygSTs Zf+wvTofkXPgpPdfVwCd8RNbuC+m1VvyHBMfW41EKb0tawrmceAhDwO7+Qz5ZRxSmjtg sLbdpZVNPs9Ka9x50AxLLPaBhtWNZbMGr+bct4eSHK2wYVvLMofKC1kNvHCC8y8VAN5V PJVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MLv3S9QP; 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 hg6-20020a1709072cc600b006e8bd883224si1919550ejc.792.2022.05.13.05.16.02; Fri, 13 May 2022 05:16:29 -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=MLv3S9QP; 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 S1379626AbiEMKxh (ORCPT + 99 others); Fri, 13 May 2022 06:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbiEMKxg (ORCPT ); Fri, 13 May 2022 06:53:36 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5712181CD; Fri, 13 May 2022 03:53:35 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id j6so15435594ejc.13; Fri, 13 May 2022 03:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lWVJvwsGE3WVOqhfUYTwQYp/p0p+hpGDNsU5mTlsoz0=; b=MLv3S9QPgRCNHi/TxXZ/rHDfMviz7puR61CX7fRdin2cicZ2/4x7Fx4OWqDIuDHwoF j8yvRUV6rdpDRs3x2tz5mmsOXgy/hbZjbNMBQ3GiSayTtehYim3PRp4HjcUvACO+xMmR K0K2AI+zM9lETZylp6+XPI4vKY8/ur3hif157+Y3QF7nlqLHS/KEEUksNuvPW7rqEWZR mOenM72TWH+B6RCE/n6Qo86mL3Nq6dWtpqx1K9jNgNSFJHJCH4dYP+Xd7jmVaQl/TK6C amBTj6ceJBR0zYHdWAwI46Pnguv1DmUzhFywqEecuO95XpsZnpPgJvEh8ci3ecTO/tPA HiqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lWVJvwsGE3WVOqhfUYTwQYp/p0p+hpGDNsU5mTlsoz0=; b=bV/c2MADLHZC738H5a7Wjy77P8mGIX0SC+lOLmHR6bJf0hzwHoZp6jO9Hd9urCkCJM YaG1f/CpNN57knxXwSrj2OTZTCFQu6Goci+ePy5fzObAYuwXoT+GaRtkRtBKBq6265Ng 8bcGYbqMDyWhr6jaXe0BkY0BhVv90brueLnKg8bFbO0ORJzAKqpnn8JFXjXg8zPelan2 NjmY8LS3elF0DaRy2i2tXBJmYucsn9JaSaYcew3pSA9+9df2e0v8vMb+1uLK8VA/WChE syeYGlaGuFF+BqY+EzdXItiP4MQOqB6TsH1OFOZFwxbMO8XQJmDpDm6FqaWbB1YfT6zg foxQ== X-Gm-Message-State: AOAM533DmYyf+lokiaVh2w+hzmJVxPfciQNuRHqyLOTK99rFNAU6bePX PoGCT6AiLvLW49u/FVwoqdaSGnBMR/4FGzQ8i/A= X-Received: by 2002:a17:906:c14b:b0:6f8:e6bb:f8d5 with SMTP id dp11-20020a170906c14b00b006f8e6bbf8d5mr3690483ejc.4.1652439213746; Fri, 13 May 2022 03:53:33 -0700 (PDT) MIME-Version: 1.0 References: <20220513102616.48040-1-max.oss.09@gmail.com> <20220513102616.48040-4-max.oss.09@gmail.com> In-Reply-To: <20220513102616.48040-4-max.oss.09@gmail.com> From: Fabio Estevam Date: Fri, 13 May 2022 07:53:23 -0300 Message-ID: Subject: Re: [PATCH v3 3/4] ARM: dts: imx6qdl-colibri: backlight pwm: Simplify inverted backlight To: Max Krummenacher Cc: Max Krummenacher , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Max, On Fri, May 13, 2022 at 7:27 AM Max Krummenacher wrote: > > From: Max Krummenacher > > Set #pwm-cells to the default 3 to gain access to the parameter > which allows inverting the PWM signal. This is useful to specify > a backlight which has its highest brightness at 0. > > With the change to use the PWM with inverted polarity the PWM signal > is inverted to how it was before this patch. > This changes the meaning of the values in the brightness-levels > property. I.e. the duty-cycle changes from x/255 to (255-x)/255. > Keeping the brightness-levels will then have a big brightness > jump from 0 to 127 duty cycle, the other 6 steps will then be > barely noticeable. > > Change the brightness-levels to provide the same brightness-levels > as before. > > Signed-off-by: Max Krummenacher Thanks for the rework: Reviewed-by: Fabio Estevam