Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2615597rwb; Fri, 20 Jan 2023 05:22:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXs2Itp8LG7AlZ1FEMHREnz43+d4G2wFcWKYDiHL/gdwYnBOP05Vl/06ZllTaodtsZZKH3LE X-Received: by 2002:a17:906:8311:b0:84d:4646:1848 with SMTP id j17-20020a170906831100b0084d46461848mr15500092ejx.44.1674220958402; Fri, 20 Jan 2023 05:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674220958; cv=none; d=google.com; s=arc-20160816; b=jO/ISJEejqdZX4UxzU/Bs6JItG97QSHCoquAxJlDq8W9/kn4rxWLuWhxY+WdW95b4o lWavYTGjJidu+vdBWNEgjZNk0S0LzrT1blyQi/c9C5qRy+CTEgztfEom/Rwk5WvE01oo 8Gbhblos0v5bZfFdixrAjt45u8OkEFHfznRd/vARJJIcBUcglwZxOOweVlS0cq1G41Eo tr3kiGXFXLlPM7G4042MPufExngLYGLtsjdXHfCtwfN4JvzIEWMhTRvWz1S3E6R19C9Q yqb+RuY9qu+yjFH61NepFVRAh1ysjLSfaZtu2yv4lM1F8uHKrhpQHZBBf+85KqmyG++g AdKw== 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=UwPb45S4zck4WbXwQFmAg4Xm6xKrl+WSTMeV0mCeNHE=; b=lIlmQ060k3qfQUDnC/SLy5E2RwpSaD0r1PwDMIYBWfJHztjEaKgR4aS+R5bdwgdnNA Wean2us2Ye7kJGzX+/XknEsPAhwfc+aCLMavGWN1f1aupfqJxkMQMN+cKI2B/CDCMgA3 UX+9y84pkBIjn/h29t9jI/9QMqaIOZcH0FBzjXBwg28SCzWq/h+zscHAe+eK1AfejpPY GLi5qgc7vu6L2sJekNucSMq5yAJJ9JzVfwRYCXZeVn4kVLf3qWKtop2MhuEP+zLAKDsn AkEG8lbh3sV7g8rLgYW5P1dUu8T2ayZ6pYMuJ3yYeMbF+zGhnzOyjIGQ2oLjKP34SXrc vZ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RxsRwu6V; 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 y12-20020a056402270c00b0049e6678d9d8si7137667edd.618.2023.01.20.05.22.25; Fri, 20 Jan 2023 05:22:38 -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=RxsRwu6V; 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 S229545AbjATMkL (ORCPT + 49 others); Fri, 20 Jan 2023 07:40:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjATMkJ (ORCPT ); Fri, 20 Jan 2023 07:40:09 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 559D9BD14C; Fri, 20 Jan 2023 04:39:44 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id y3-20020a17090a390300b00229add7bb36so4751740pjb.4; Fri, 20 Jan 2023 04:39:44 -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=UwPb45S4zck4WbXwQFmAg4Xm6xKrl+WSTMeV0mCeNHE=; b=RxsRwu6VwViLl0V73U0fHLgIp3yEFGAVMnnTPe/cqQ4kOTRAgbZivTpCQ75V6IjU85 L2y8uymJOmAiBUWpSy1gyrevBHjegZpZP7cYNnWQJ7Dapik5untY8wPtOHes4EH79JUd o7hpVU/aJUS9qu0kuYostfxenVOHn+bIVpHsVVjhqlfHcf799MEJa5RXNP/fQEc1Shsa LAKBZexvU/uhODmepBOqNEkEbox4UkflDQIN4eJyenO7r7fTJ99mxg3uABPp6bJMJhGN AuyFZGSfjAwg0yHO/CKf6cNIOYX/BxFF2V1kHn4hjG7GK2H0LUqKk20meh9kGem9xJ05 Bwsw== 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=UwPb45S4zck4WbXwQFmAg4Xm6xKrl+WSTMeV0mCeNHE=; b=7VuV39w1VsNAxdptWTl9XH5P+a7KBAzYM6kLjUmjbQ9sqh/yxV4RwVGzn2Bvbnu5xQ taB2Cy/tzbTsb2xoL6DRwaBDh7D5f4k83heWChkQf9T03ngPKhgr4MfL0TtkVa4S55rh X9ll3GVDPdPfAQ20TS2l0DSHg8k+/eTOxNN0sZMVxsIL3Nnm+C/2KBNGHKUDVkqlpOuu xWRKKn0aVBwdindBs2tetTeqfpk7gzAvnwnTzZGynngotJgCoARMvBlV7LxNf232/Z9O V1v+Y92CeS/ByhrCZ23Dm/DvNzXFXvlQx4u0x/mQOMWx1vgwMpKNMKRo6lVCD0MNo6A0 4lDg== X-Gm-Message-State: AFqh2ko/+fc1qzHv3luy21p6QEyF6h4aOMo2obmNAQItjrMe4fn97FKJ Fi+5Q8PmpzvGIFbwBWs76v4= X-Received: by 2002:a17:90b:4a0c:b0:22a:3c8:9d1 with SMTP id kk12-20020a17090b4a0c00b0022a03c809d1mr2832809pjb.32.1674218346867; Fri, 20 Jan 2023 04:39:06 -0800 (PST) Received: from localhost.localdomain (n220246252084.netvigator.com. [220.246.252.84]) by smtp.gmail.com with ESMTPSA id p23-20020a17090a0e5700b002271b43e528sm1131044pja.33.2023.01.20.04.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 04:39:06 -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 v8 1/2] dt-bindings: leds: backlight: Add Kinetic KTZ8866 backlight Date: Fri, 20 Jan 2023 20:38:56 +0800 Message-Id: <20230120123857.16124-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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. Changes in v6: - Correct wrong property suffix and description. Changes in v7: - Add vddpos and vddeg supply. - Use enable-gpios instead of defining enable pin. Changes in v8: - Rename current ramping time. - Rename led ramping time. .../leds/backlight/kinetic,ktz8866.yaml | 74 +++++++++++++++++++ 1 file changed, 74 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..950d5d819b4d --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktz8866.yaml @@ -0,0 +1,74 @@ +# 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-channels-current-sinks + led backlight with dual lcd bias power. + https://www.kinet-ic.com/ktz8866/ + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: kinetic,ktz8866 + + vddpos-supply: + description: positive boost supply regulator. + + vddneg-supply: + description: negative boost supply regulator. + + enable-gpios: + description: GPIO to use to enable/disable the backlight (HWEN pin). + maxItems: 1 + + current-num-sinks: + description: number of the LED current sinks' channels. + enum: [1, 2, 3, 4, 5, 6] + + kinetic,current-ramp-delay-ms: + description: LED current ramping delay time in milliseconds. + enum: [2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640] + + kinetic,led-enable-ramp-delay-ms: + description: | + LED on/off ramping delay time in milliseconds, note that the case 0 will be + mapped to 512μs because ktz8866 can't ramp faster than it. + enum: [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384] + + kinetic,enable-lcd-bias: + description: Set if we want to output bias power supply for LCD. + type: boolean + +required: + - compatible + - vddpos-supply + - vddneg-supply + - enable-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + backlight { + compatible = "kinetic,ktz8866"; + + vddpos-supply = <&bl_vddpos_5p5>; + vddneg-supply = <&bl_vddneg_5p5>; + enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>; + current-num-sinks = <5>; + kinetic,current-ramp-delay-ms = <128>; + kinetic,led-enable-ramp-delay-ms = <1>; + kinetic,enable-lcd-bias; + }; -- 2.39.1