Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp353405iob; Wed, 11 May 2022 16:19:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqW+SXCA1PjAepilZcD81oei1XcXRmzTTXbnE9Ybo9Bei/ZMyk5X5uq1hZocR6mcoU596D X-Received: by 2002:a05:6a00:889:b0:510:91e6:6463 with SMTP id q9-20020a056a00088900b0051091e66463mr22060564pfj.58.1652311196977; Wed, 11 May 2022 16:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652311196; cv=none; d=google.com; s=arc-20160816; b=WdxBaSaEtoZaPbet9PuGrT6VJJD08XV/Ey/ZIu4sTlQLirbEI5GJt4WmyK+acDsHXn rpfL91tMMOF1U7O1gtxIvx5SvGOh1uF6wPbgetK4BsfbAXWtYM06djrqktvDxVaGajAR cIbH7ORwAjL+QxZg+mF27ydwVwTNBWdZ9rL9jG0NIp3Q5bDvQsEV2iGdOaiSpHlt8IBe PuMxWZXs8eyNi+qzTGa7W1fnX964+6Dw/33DetB/HssyDewwlhrMCr7GlRls0Sbi3t0S svQqfETxh1PJLg/jkAHcMyiOTFyBL+AcnL5n7BOBph/lSlwKoa9nVSGsD7haUrlWEt23 bM9A== 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=ms4IDLqZyPZEHxNrMd0btLhoMLeIHNUPT9ze1DMC0rY=; b=Wv+Xa5gLbcx5FCENE/YV+tFbR1PurGEg6yZgFiDHyxzoRmfC5kDnbu/dZlww0MPdV4 Z5GUEpSUXfOrcfLxwJdWfi3GqyZ3dkM3lhqknP1aoZi3WJi3WvfJaLkuxHnw/CwaW7JI 25/DimUamjlGVc03x1z+KNDfMmpiPsFSWJPLeedHmdyzfijyc8bFBdMZ2ODtp2c2kQQO zOTVUmUMTb0kco32P71NFDsClmgcQApQYp/alEFbKEmLpyDSRNQB0O1UoRVnUAY9C8hK 9hOBGNPXQUk88nQoK6O/qElJRJ3TTFfRIq23Eitl7uaKkenccqdDWuO1JA8JKOSZu2dg p+kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=b6PqNPlO; 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 h3-20020a17090a710300b001dc62080a06si1327302pjk.74.2022.05.11.16.19.45; Wed, 11 May 2022 16:19:56 -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=b6PqNPlO; 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 S229591AbiEKNfh (ORCPT + 99 others); Wed, 11 May 2022 09:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiEKNff (ORCPT ); Wed, 11 May 2022 09:35:35 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D27F01A4D3D; Wed, 11 May 2022 06:35:34 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id dk23so4090357ejb.8; Wed, 11 May 2022 06:35:34 -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=ms4IDLqZyPZEHxNrMd0btLhoMLeIHNUPT9ze1DMC0rY=; b=b6PqNPlOT1b5n0ZwMSJFTOWuIVZybJXt7gUtC32lfxydPEwh8eTC/LgwvVWE/S0YoO z/RvEfLIOhASm7OpJiz0iqKj8nap0nKnyh2+32Ej6sur1kmI5NH6ivKXO/cVEeSkfmBt eOPtXXafMPkPhN0ozaoPgjbl4KgX46Kqe6tbD6Isu+jwUxF9v6jdjkDD+AyodduLapA0 Hobs6Vq0yDDLibD0QzWiK40cgI9Lj9b/03XNgKFokA7r4o0FiW/z4Wsjna8IC1KKgyV7 IAQxy+Y5z8vGSuq1/ez7/ROSlVUTjKQDoBgo3+HwsYmYLZ2H5aEYc+1zFaUQOL0LUVlJ 9apw== 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=ms4IDLqZyPZEHxNrMd0btLhoMLeIHNUPT9ze1DMC0rY=; b=nqsID0vInnUeIiY7hvuC3gXM5T9WRrQlX3Q70tvEBXTtdLKqzJAb3Dh8Z2NBbKv4hC K5FfeiboI68LkovPWzO8xJzsjulnFehOhLvAbb5Icx//Y6SfxpBNOIVxiY2OssQJUOWl xXqr4/xBFGWNs2EZ1JVLcp0puwupNvNt0OVZTOXgsUjVhpiAkWaW6d9LZqRnia6lffF+ cCToPzwmbEcGDs/peyKhOrUuc4bafBAscYi3pnf1QEH9iBvZm0pehuY1v1BT/tN+nDjv 5/eZTL62NRopmZ/yOhz/US/eq1rDeusEETLl778ZdnmDS+78B5FJSR1U1gjRrC4Xa37R 7N7w== X-Gm-Message-State: AOAM533q8+tFJxNvZtBjTVCjHrPWhPMD80758u6IbpkHZ1EztRIDP6O0 UqsVQOVmsX0YpfTF4HMOQvZskxZf8RLTUeER85w= X-Received: by 2002:a17:907:9720:b0:6f4:31d4:925f with SMTP id jg32-20020a170907972000b006f431d4925fmr24761326ejc.658.1652276133336; Wed, 11 May 2022 06:35:33 -0700 (PDT) MIME-Version: 1.0 References: <20220511115911.54960-1-max.oss.09@gmail.com> <20220511115911.54960-4-max.oss.09@gmail.com> In-Reply-To: From: Fabio Estevam Date: Wed, 11 May 2022 10:35:20 -0300 Message-ID: Subject: Re: [PATCH v2 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 On Wed, May 11, 2022 at 10:32 AM Max Krummenacher wrote: > I disagree. Just setting the invert without at the same changing the > brightness-levels does > change the user experience way more than when one adapts the available > duty cycles > at the same time. > > With the change to use the PWM with inverted polarity the PWM signals > is inverted to > how it was before this patch. 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 noticable. > > I.e. before the change the brightness for level [0..7] was > ['off', 128/255, 64/255, 32/255, 16/255, 8/255, 4/255, 'off'], > if one only inverts the polarity it will be > ['off', 128/255, 191/255, 223/255, 239/255, 247/255, 255/255]. > With the proposed patch it will be > ['off', 4/255, 8/255, 16/255, 32/255, 64/255, 128/255, 255/255]. Ok, please add an explanation to the commit log as to why you are changing the brightness levels like you did here. Thanks