From patchwork Tue Jan 17 15:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13106105 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC425C004D4 for ; Wed, 18 Jan 2023 10:43:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DABCA10E70C; Wed, 18 Jan 2023 10:43:06 +0000 (UTC) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D1E510E4A7 for ; Tue, 17 Jan 2023 15:44:18 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id jl4so33920929plb.8 for ; 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=IijJ1+rlvDhtqEeBGyze6kxyVQesZa97fpR3nIZHU5H4RYAUZvf660FjhSqGg3D/jK uEJTJWOsBy1PlWqqii3gqabi8LGP/he1V4vrMJvYrJywtQm84SCaa3I3gHWSF9DPzlN/ N3QB+gEM/maHXoD59RIuvIPBrULZj1QVWrI7Ig7jLazRt3wocmaw6fb6fm6iLki2Gjqj qwY07pm0Qpd+9oGeHqPZnOCrFLeBHzQFgRUnWq2GMnAgFOy0JQez3i+AKV47U6VJjf4G F1prJeM8m+2Y41Ulwi2pFcbt7Tr5OlqbDUrjMyPlqleuPwtLQXqzk6qRy3mAdB+BJvQH hi/g== X-Gm-Message-State: AFqh2krpraoGQ5pktVu9DQT28pt0tslZayCaKZWD+QnQGPZ1ZWMuh+5Y 1iCNXsZ3TxSTJcn7jO8Yqmc= X-Google-Smtp-Source: AMrXdXsXbduBfp8s9Wh2MGgxK8AjT98WtiSTSTKmj/6nr5poi1ses823mGd+BrQU9pKF5zWxfoR0fg== 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 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 X-Mailman-Approved-At: Wed, 18 Jan 2023 10:42:12 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jianhua Lu , linux-leds@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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; + };