Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1806662imn; Mon, 1 Aug 2022 00:13:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KaLv1D1S2/tT85EAkaIDCYJaEfclBwURrV7KM1ilN37WiI1d66axuaPX1+EGQLXFsQLx6 X-Received: by 2002:a17:902:7d89:b0:16e:f604:31b8 with SMTP id a9-20020a1709027d8900b0016ef60431b8mr1485728plm.0.1659338003483; Mon, 01 Aug 2022 00:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659338003; cv=none; d=google.com; s=arc-20160816; b=TO0yMyPJ3pApIJHTf1UxRDZgKL9lLAY34lGyMLVtr9P/ok67kWZw57pJb6g+ibBDaM RooE6LBMlz9zsDh5Cm+dT44ZdpbZ9oYPDkKRrvwkOrfPgMCO/juDaKEZUBbC2cM1J0FC AdldE8WuijmtEnEqa3/wJ2VlvnLM7fkHWF3uP//enVEIyNefl63nkAtgdZNRXIAFEaHE jYk2AljgCJ6jg09KHI2K6f0Cp87JxvqqQTCMKsNNWN7MiaUq2KhFLSguOEqmrfztmuHG hMaOY0eSGZXjn8O+7iidHZaOk47riH1ueB1uE+ui5BlqvQoy3Jte1mVdfey+62tyVO8q rPqA== 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=0pCQwRUtQqbmZSwhlAYKv7D+OaWBuV6jzuOG3pLiqnE=; b=Prc//d/wc5p/srzDN7Fc0wg2uUbNT8aVDDdPg0elErVB7/PEjs51EKSPGr5zxJscao cJwjDfao7gHoPAv0UYI/baPg3+rCjjbuBYJLAWvsiodChGWMZF5Ml7AnVRpRnsTXGo8R Q7Y5rsSdjTgFQjRKM9+xSrIawbTURp6Os3aDMPNYjRYib9IOgcHAHpIW+52dCFcYJqVG z68uFIDqhzEE+ODY6DUoOncB5CwemdCJEM2Pvt2/rUQRrhsh8eZ/A0tnE7n/hK8gjouZ FTYXDnAKgCLNFQoebhY+lAbzWfapo9vB3WpLFYpTTxn+EDxD7aSBFnck9JVKTrQIlV+b MzSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ln2eP881; 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 a38-20020a056a001d2600b0052d2aa737fcsi5624900pfx.222.2022.08.01.00.13.06; Mon, 01 Aug 2022 00:13:23 -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=ln2eP881; 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 S233831AbiHAGsw (ORCPT + 99 others); Mon, 1 Aug 2022 02:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbiHAGsW (ORCPT ); Mon, 1 Aug 2022 02:48:22 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F96A13F49; Sun, 31 Jul 2022 23:48:13 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id o1so7734990qkg.9; Sun, 31 Jul 2022 23:48:13 -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=0pCQwRUtQqbmZSwhlAYKv7D+OaWBuV6jzuOG3pLiqnE=; b=ln2eP881w+pJWsnC+kYg6rYGAd3maj9S7mJ+gV/lLUoTHa07yJ7pdTT1iddtkvut7G wCE3Vn0TT0sSu2CGZvq/wm0E+8dX8DAzc0wcrTU8f68Bf945HKsgWEqdxw/iLewJID2+ U3xISuK9fbiy0BRYeJ5aJIV0S+Q+NI5ty1LBv5VOtK4++uo7wdiHC9lGtmGhCbrpNouT poWweP7l/AaVWeIy/2bVG85dC0G/EueHZA6lUebLElpHSoCxf4b25lXpFCUPSvI2lhdW 7jc02DOr4iyObq+BZvCMVIS2hbqCqgw3xx0epY1nfMPIBNYZpFTwGEBUDoh2MKMua6y2 T4rw== 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=0pCQwRUtQqbmZSwhlAYKv7D+OaWBuV6jzuOG3pLiqnE=; b=Y97cQMDQsqGK7AYWLfOKdA8pvvi9aEfceRVlMf3wL/m6lPqs47koW/+OhY9eyN1wkg pK0cDrMXcIjTVa0EyQHvpuPLThUewNvCcuBk8viNdK4geO0JfT8x4FlZzB9ijjvsafqL KGZz8LoxAzCVh4uFSLaGXCpBwaP9mVp1/VDGlXRyxduwr86NbL2cfvnGeSwXnQ1OZiNa HxWPTomC4xKawKmjBpHtdNs1+5OKJir14AtnUFQTOiA7Q+mM7Kfb/oymAm4JETnVZ/9Q RMw9vjpUaqQZ/AmqmQMHBTVIpccUTDMeLAFEpq1PPbX1LDJTcD1ghg4EnpiBZVuPmAsA hzXw== X-Gm-Message-State: AJIora8FopjwlP1rSx/ZiX8GU9Ml6sQ5dwYKhNl+ABKNwpljS/SabVTB 3yFUopDMAgRVTFtAi/wOQsmnzKvv9Rzze5tpm3k= X-Received: by 2002:a05:620a:1706:b0:6b8:705a:c61e with SMTP id az6-20020a05620a170600b006b8705ac61emr8915998qkb.129.1659336492750; Sun, 31 Jul 2022 23:48:12 -0700 (PDT) MIME-Version: 1.0 References: <20220722102407.2205-1-peterwu.pub@gmail.com> <20220722102407.2205-6-peterwu.pub@gmail.com> In-Reply-To: <20220722102407.2205-6-peterwu.pub@gmail.com> From: ChiaEn Wu Date: Mon, 1 Aug 2022 14:47:36 +0800 Message-ID: Subject: Re: [PATCH v6 05/13] dt-bindings: backlight: Add MediaTek MT6370 backlight To: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , Andy Shevchenko Cc: ChiaEn Wu , Alice Chen , ChiYuan Huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen , Rob Herring 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 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 Fri, Jul 22, 2022 at 6:24 PM ChiaEn Wu wrote: > > Signed-off-by: ChiYuan Huang > Reviewed-by: Rob Herring > --- [snip] > + compatible: > + const: mediatek,mt6370-backlight > + > + default-brightness: > + minimum: 0 > + maximum: 2048 > + > + max-brightness: > + minimum: 0 > + maximum: 2048 > + Hi Rob, Krzysztof, First, I'm so sorry for our SoB writing wrong, I'll fix it in the next patch. Because of this mail thread (https://lore.kernel.org/all/20220728113109.7gf3b36mqjxlhcq3@maple.lan/), I would like to discuss with you that I may change the following in this DT document, I am not sure whether you agree or not. 1. Add some descriptions about MT6372, which supports 16384 steps (14 bits) and is different from MT6370/MT6371 (2048 steps, 11 bits) 2. Modify the format of 'compatible' as follows to distinguish between MT6370/MT6371 or MT6372 ------------------------------------------ properties: compatible: enum: - mediatek,mt6370-backlight - mediatek,mt6372-backlight ------------------------------------------ 3. Remove the 'maximum' value of 'default-brightness' and 'max-brightness', and add "if-else" to determine the "maximum" value as follows ------------------------------------------ default-brightness: minimum: 0 max-brightness: minimum: 0 ... if: properties: compatible: contains: const: mediatek,mt6372-backlight then: properties: default-brightness: maximum: 16384 max-brightness: maximum: 16384 else: properties: default-brightness: maximum: 2048 max-brightness: maximum: 2048 ------------------------------------------ 4. Add a new boolean property to allow the user to determine whether to enable the exponential mode of backlight brightness or not. Like this, ------------------------------------------ mediatek,bled-exponential-mode-enable: description: | Enable the exponential mode of backlight brightness. If this property is not enabled, the default is to use linear mode. type: boolean ------------------------------------------ I hope these changes I have added will meet your expectations. And I'm not sure if I should remove 'Reviewed-By' first until it passes your review. Thanks. -- Best Regards, ChiaEn Wu