Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4993876rwb; Tue, 17 Jan 2023 07:58:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZJdc+1MbnA8rU2P5f9LTl/83wh1zsbhf/n4wBytUDaSLQGKxVJ8WcxMuirAVJgNSfjDkB X-Received: by 2002:a17:907:2177:b0:86e:55f5:4c1c with SMTP id rl23-20020a170907217700b0086e55f54c1cmr11735665ejb.45.1673971102565; Tue, 17 Jan 2023 07:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673971102; cv=none; d=google.com; s=arc-20160816; b=T78MpT6YF1rUpaNYqAoBdDO8GFF59FS2lexPJT2NkhBqpB/cop9nvlMpOlLyOR7nIH BDcyt43lgWUrV/6J2pFwWjiXuVj7IKIxjmKKGDr+v0FqaYilBpZ/ZkxO3NhdG0WWooJ2 Ddp55NNKHzo1ORUlYHY3QD+hlOs/jVaNxnpgQKgoEUfjOC/ms0xeUlAZKPZSEwRho1b/ Y2GMSHcl8FDvk0qrkzKAOUxcsJm7X2539sFlAtZMkNp9LlqVmR5nheNMJS7BjAmujpqY eA7gXhKqpNtFBQ3J7eCpD/syyvfNNVU0uQVYBUTxlZDAdQKVdR6zoLU8xH2niSXiIlK0 oxWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2SWrdPrJQ2dQ91kDOjWJkS+4RqBJUBQfv6QIuLSyM9I=; b=ufmE36vACs3exp7fv1Co2fQQhE1WNXsLTRjngWDz8fJSCsN1RXvskKitwFH/N54M15 Z0kL23O845OWlIKsRfBVnxNHjeRWdf/qKQxMYrHoKB4fV0otB5oaxcDSyb0WnAnR7MLI ySC4BvxpnzFYBAquYLDaWB2Mo7P/DpuNCcgwj8i1LxV/qCg9nJYyuZ3gEps9fDd3RFud 8DmOi+lzzlOHLf22PyaYELhG87cefSnLARUVHoy4XAS00m+qR5pRiaffkqVbFCBCsI1L r5ErPl9QfAyh2synAkyyJ9GbkxmPGXrtpY6Ay6wPF4QzbZKExfBf7WJQPk5adONMKwdE cILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UfjBW2gl; 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 dp16-20020a170906c15000b00870c5d344e3si7947698ejc.139.2023.01.17.07.58.10; Tue, 17 Jan 2023 07:58:22 -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=UfjBW2gl; 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 S234333AbjAQPrF (ORCPT + 48 others); Tue, 17 Jan 2023 10:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232013AbjAQPqP (ORCPT ); Tue, 17 Jan 2023 10:46:15 -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 B0B6D4520F; Tue, 17 Jan 2023 07:44:18 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id g23so18340993plq.12; Tue, 17 Jan 2023 07:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2SWrdPrJQ2dQ91kDOjWJkS+4RqBJUBQfv6QIuLSyM9I=; b=UfjBW2gl5PrilCKQ09slxhjentzlYCZijk7sT0uORMq8iF2ZigqnbAhAODxPzcNKjB KxRnWaRB7ptoYxd5WEalSKZBqBd9eOMissfzFINSFPPE/+k5h0VVAuMx6gu/kfYcodzp fxJGZCQRGS0/vK6phA/fenAyq3s3j2cPgxacNJtXo4qliQVGHEQYvLnH/zPx/DChjmQI mgAlkLL+cpEpq3v21frncwWSc68ibctU+1ClyuEiA9esIDuifnaxD8Nfjq+4npOG4XFB 4v3qik88iMn0OkpQ+ah/pLb2Ox1TPSlx+nZGXC3KFuo37NOYochFyFRtW2YP7572yQz+ sQqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2SWrdPrJQ2dQ91kDOjWJkS+4RqBJUBQfv6QIuLSyM9I=; b=6Tcq3wJDLezylS5oltETXlv2XPmCga5Oiwj4hlSP4p+RnWRNR5DNmkJA27TjRG1lho LeRqqRAa/MK1gfIvgdiOFbK13NPhfEtGs0iy58dkus+G4Lbj3K8pjqu9bwpCVq6YZOkv pjgTgXjBIxUGav2e9fXByB+fRonhQQ1lwLvzPoOIIXbUjWRuTekEOOtexrFe6F9INAdH tBx5g/9zwKj2HYRigS+U3piVBI4x/CkDnHJ2+BCQhnDf3WbKIjUuFjMQ3fl8dqaGtw6w gS7k6WQj5+hA5QtYtbBZjxhjWCPuLw0Q9ye/s12K2E+jxzF4qee8Hx8J0tdugwQAEQya dzrQ== X-Gm-Message-State: AFqh2koWESzHTldFiUbuHBkxxCWrTcDR66b5Oxy/OrTWkJbLroZ9753X 2BXUBD0pzJdmRHswACH89dY= X-Received: by 2002:a17:90a:30d:b0:225:f901:ebf8 with SMTP id 13-20020a17090a030d00b00225f901ebf8mr3436692pje.18.1673970257740; Tue, 17 Jan 2023 07:44:17 -0800 (PST) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id l14-20020a17090aec0e00b0022908f1398dsm8909736pjy.32.2023.01.17.07.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 07:44:17 -0800 (PST) From: Jianhua Lu To: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Helge Deller Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, Jianhua Lu Subject: [PATCH v5 1/2] dt-bindings: leds: backlight: Add Kinetic KTZ8866 backlight Date: Tue, 17 Jan 2023 23:44:07 +0800 Message-Id: <20230117154408.1882-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.38.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. .../leds/backlight/kinetic,ktz8866.yaml | 57 +++++++++++++++++++ 1 file changed, 57 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..1efc29b0632f --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml @@ -0,0 +1,57 @@ +# 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-us: + description: LED current ramping time in microseconds. + enum: [2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640] + + led-ramping-time-us: + description: LED on/off ramping time in microseconds. + enum: [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. + 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-us = <128>; + led-ramping-time-us = <1>; + enable-lcd-bias; + }; -- 2.38.2