Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6621381rwb; Wed, 18 Jan 2023 07:25:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXuwC6P+HPt+/wy0E/sYIFTt5exZ5e5N6uyTt1B3KRSCNEPYlhYtNmHuGeio1vOeEv/M4PTR X-Received: by 2002:a17:90a:8985:b0:229:da41:2cac with SMTP id v5-20020a17090a898500b00229da412cacmr351018pjn.48.1674055558804; Wed, 18 Jan 2023 07:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674055558; cv=none; d=google.com; s=arc-20160816; b=0Qd7AbwyhIWsYMGI51U/nrreX/Y8Kagq9MuTPq7K1cQeFihwYoY2LN/uT9Ycul6T0H BOlMiKmzQhDUI1/k86yLwM/JVina3yYIzo2ofeqeQUG7QXyD1ZIlEQGnBGfIb8m1OpI3 +/37ZD6HCjTRgelPQrwuTK7+KG3XVWBWt/mNZFuiB/kIgfOCPsPAy/utRUaaILVgGE3V 6XfNGsRNtPEG/sU9Czm8nZZhE1Gg54CbbCL3Ro1YUHk9/o8R8uf6nY2ia4D2VmC9wAXq qB3gH1YmgRTqwTP2O4Iff30F41qTWkCUpkvr2IVWQB2V+gHwy3UYlPpC/s5kgYFqOCTr K6dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X9t7ufkd2EkdshQLKnA3SFrv5rmVPIr/Hi7nOCZDw5c=; b=hlAi8gTRKCwgQCI7Qs1ygWw4etMygUmDicqML1qDdxn5GcRqCyMiuxOryjyn9kXpju 9wH6WjoQWkP03BTKoIrY9Xlvaz0m8IqVLNB/66HekxwoaS6pJKcWVB0PhPybT6e4ik0/ il3ccSo6w0pSlC6idzQ95cnwsXP3uAttjMUiok7BtWEkXvk5B8VU9IwYQ8X4BkHGJqN/ eLJse1OMDMryAw747SAlSAD4XBdxVXEXOxLKHzlWV7udbpdkaitGwJJlGakRVdvn95AN SX4DAFVDiDRFoh0A7EBOWyZVrY5m11gSBYxoC36oHO3bDv1hY16GdNLybWKWm8eAuOGw G0hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EBzEL7qb; 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 16-20020a17090a1a1000b00212fb7e54ddsi2212005pjk.81.2023.01.18.07.25.53; Wed, 18 Jan 2023 07:25:58 -0800 (PST) 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=EBzEL7qb; 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 S230320AbjAROTk (ORCPT + 45 others); Wed, 18 Jan 2023 09:19:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjAROTH (ORCPT ); Wed, 18 Jan 2023 09:19:07 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C3FF62D3E; Wed, 18 Jan 2023 06:00:39 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id k18so12943682pll.5; Wed, 18 Jan 2023 06:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=X9t7ufkd2EkdshQLKnA3SFrv5rmVPIr/Hi7nOCZDw5c=; b=EBzEL7qb0k674EUQUfYhxoHectKIbEkxILdLeZMsthCgCpqziD8YYeh+ISEUK+H0rt yBKg4w6JKskKG3aMTV3z48OBmalZW41eI3ToSjmxoFpQ0whb7zsYF9YWGQkN1tXYd+5r 3WQFY0AFq8KERF8NYtUVrOnjYyU0VhhJfALB99l+6dS1xm3NV+HvawPJiPfZp1Xqgi5T FEGZ5aG/7aOHKbUpnFmyj0vKL3IY8j91QYHRYQsGpLGKiFXiP/MZp4A39UwHNGtjVREj YE2+vwyFcC2uj+L/dLo8y0j4rDaTtxKtreqinNPoMrred0acZ74OWjTaolWQS9d1vtRy +UDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X9t7ufkd2EkdshQLKnA3SFrv5rmVPIr/Hi7nOCZDw5c=; b=Ap/ViVwZUPqgBWEjJlhuiQfdzdkQRgeKbe8EUIFp2p+WJU6uS0rlt5kH1n4qjOxvuM nQK0N6nokWl7OV1VidUF/zj1QY5LbMC8EvEiszfZp2Zf3nhFW+VsQk5CEpp4YRirpmyJ pP19i+VDmb0HNt3fI6A4IlEpA8zk1D2z2Cn86ftcMkicy5VsJ3kOGZLxXzmdG3t/LpTN BQgxOx+hX7ug5l3BkUwvrqn79L7A1b1YY9QoaCOEHw5upt5meSn/fUEKfD9vPekOSsLI 30/AvwWgxp4n9lBimy89zpsiNQUUp2NVctoqC+nJsPvrcMhzz86Hy+D3Zq1CPcEnEa4U zQhA== X-Gm-Message-State: AFqh2kri9SjDfWeTBJTZLJ48XhvDZTP/h/mlpynGGDb4v00UYr2QZ94s jy17Z5roN7B3kj+kwSpOb92HkP8XwwHH8A== X-Received: by 2002:a17:90b:3586:b0:229:772c:a00b with SMTP id mm6-20020a17090b358600b00229772ca00bmr7100810pjb.14.1674050438708; Wed, 18 Jan 2023 06:00:38 -0800 (PST) Received: from Gentoo (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id w7-20020a17090a4f4700b002298e0641b6sm1357081pjl.27.2023.01.18.06.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 06:00:37 -0800 (PST) Date: Wed, 18 Jan 2023 22:00:29 +0800 From: Jianhua Lu To: Krzysztof Kozlowski Cc: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Helge Deller , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v6 1/2] dt-bindings: leds: backlight: Add Kinetic KTZ8866 backlight Message-ID: References: <20230118131002.15453-1-lujianhua000@gmail.com> <1a8c006d-c9b9-9fd0-147e-7e511cb236fe@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1a8c006d-c9b9-9fd0-147e-7e511cb236fe@linaro.org> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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 Wed, Jan 18, 2023 at 02:40:00PM +0100, Krzysztof Kozlowski wrote: > On 18/01/2023 14:10, Jianhua Lu wrote: > > Add Kinetic KTZ8866 backlight binding documentation. > > > > Signed-off-by: Jianhua Lu > > --- > > Changes in v2: > > - Remove "items" between "compatible" and "const: kinetic,ktz8866" > > - Change "additionalProperties" to "unevaluatedProperties" > > > > Changes in v3: > > - Add Krzysztof's R-b > > > > Changes in v4: > > - Drop Krzysztof's R-b > > - Add some new properties > > > > Changes in v5: > > - Add missing enum under property description. > > - Rename uncorrect properties. > > > > Changes in v6: > > - Correct wrong property suffix and description. > > > > .../leds/backlight/kinetic,ktz8866.yaml | 59 +++++++++++++++++++ > > 1 file changed, 59 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml > > > > diff --git a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml > > new file mode 100644 > > index 000000000000..ca0deba14523 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml > > @@ -0,0 +1,59 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktz8866.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Kinetic Technologies KTZ8866 backlight > > + > > +maintainers: > > + - Jianhua Lu > > + > > +description: | > > + The Kinetic Technologies KTZ8866 is a high efficiency 6-sinks led backlight > > + with dual lcd bias power. > > + https://www.kinet-ic.com/ktz8866/ > > + > > +allOf: > > + - $ref: common.yaml# > > + > > +properties: > > + compatible: > > + const: kinetic,ktz8866 > > + > > + current-num-sinks: > > + description: Number of LED current sinks. > > + enum: [1, 2, 3, 4, 5, 6] > > + > > + current-ramping-time-ms: > > + description: LED current ramping time in milliseconds. > > + enum: [2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640] > > + > > + led-ramping-time-ms: > > + description: | > > + LED on/off ramping time in milliseconds, note that the case 0 will be mapped > > + to 512μs because ktz8866 can't ramp faster than it. > > Aren't you just missing supplies here and their ramp up time? > backlight ic supply bias power to panel, but downsteam devicetree adds power supplies node to panel node, so I'm not sure if need to add power supplies to backlight node. > > + enum: [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384] > > + > > + enable-lcd-bias: > > + description: Set if we want to output bias power supply for LCD. > > Is it a generic property? I don't see any other users, so this looks > device specific thus needs vendor prefix. > > This applies to all of the properties. They might be generic or might > not, I don't know the backlight hardware that much. It surely is device specific, thanks. > > > + type: boolean > > + > > +required: > > + - compatible > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + backlight { > > + compatible = "kinetic,ktz8866"; > > + > > + pinctrl-names = "default"; > > + pinctrl-0 = <&bl_en_default>; > > + > > + current-num-sinks = <5>; > > + current-ramping-time-ms = <128>; > > + led-ramping-time-ms = <1>; > > + enable-lcd-bias; > > + }; > > Best regards, > Krzysztof >