Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp173670rdh; Sat, 23 Sep 2023 06:10:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRxm3ZhVu8KpfdmJjBoUCWqerStYmnsfWOtmZ0KqJ0Bj6FSdrRkGC6yp4BIXQA3tLd665G X-Received: by 2002:a17:902:d4ca:b0:1bc:6dd9:82c3 with SMTP id o10-20020a170902d4ca00b001bc6dd982c3mr1971721plg.37.1695474612800; Sat, 23 Sep 2023 06:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695474612; cv=none; d=google.com; s=arc-20160816; b=qWLH8AlFOfbEwRnuM3K9585nbu+1AzsEKt8WPJsmSMHQPJLnuDwG05loI4dvuHJMPi aqHezs+f+GnIS0i+Mk4bBnrRQb5sQdPUQ7Qb/1WQVnbEuRbgAP866KJ46T0MOF3AFxYa 61WNr/UqSkgHiWGOTOes06xSbXUVJcqIIwh4Ln4Ek4XtfadPs/QwDUQAD0Hvh48nQAGw jp3CzJhkEoGVqGmqmax0lhDVO+3HW+HnFVYYB5/q3p/MS9GFDdyc1kd337rwZcvCo7Zt 7Kv3Rh+455KbHDs5F3+gQ4hwjfqTMPlUyffP+C0OzfIfGankMV20ZhIWMzbH8zjQ43TT vJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=lOzG0TJfv3XU0IVuHBLylfBtu51zlxKmC7+DFxjCbwY=; fh=PrKrTEb/BXpu20x977EdrkTOIwBMhl/XYMN/8KXgZRc=; b=f8K6Fk3i+bWCEl//m9LJke9QCwI/G86CAnsUlPBmtI1jaK/8NUqfOT37WYGczxRLe9 r3hMmlEn8OTNGiky3PWuyKo9616pp6ulWfkBBLn8Bw2HIxScVGDEFuu6rVq4SwIwjihI ZRP3fBFmKBgqtaOUj7HjtOheUIUFZ3VACStg5SDoeXNKautXyRiqB0oeOJf67YrKknTW +1vUCkYu9dfKlho9vlrvF844tM9bmLEgkMQZKZs+KHMCpaPoHSLyZ1/+l0rQPMvf7T2P /qO+5pc+6YHTp8eccEjSSVncBqy/bNGIewmRY1Xp1DVjq7ecEwlCYhg60qcvlSAMSIfa r4vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m7-20020a170902db0700b001c5f37aeebdsi2225910plx.579.2023.09.23.06.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 06:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 361188080E34; Sat, 23 Sep 2023 06:10:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbjIWNKE (ORCPT + 99 others); Sat, 23 Sep 2023 09:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjIWNKA (ORCPT ); Sat, 23 Sep 2023 09:10:00 -0400 Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C68AB11D; Sat, 23 Sep 2023 06:09:50 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qk2OE-00056I-9Z; Sat, 23 Sep 2023 15:09:42 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Sat, 23 Sep 2023 15:09:01 +0200 Subject: [PATCH v4 1/2] dt-bindings: leds: Add Kinetic KTD2026/2027 LED MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230923-ktd202x-v4-1-14f724f6d43b@apitzsch.eu> References: <20230923-ktd202x-v4-0-14f724f6d43b@apitzsch.eu> In-Reply-To: <20230923-ktd202x-v4-0-14f724f6d43b@apitzsch.eu> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , =?utf-8?q?Andr=C3=A9_Apitzsch?= , Krzysztof Kozlowski X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 23 Sep 2023 06:10:10 -0700 (PDT) X-Spam-Level: ** Document Kinetic KTD2026/2027 LED driver devicetree bindings. Reviewed-by: Krzysztof Kozlowski Signed-off-by: André Apitzsch --- .../devicetree/bindings/leds/kinetic,ktd202x.yaml | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml b/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml new file mode 100644 index 000000000000..832c030a5acf --- /dev/null +++ b/Documentation/devicetree/bindings/leds/kinetic,ktd202x.yaml @@ -0,0 +1,171 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/kinetic,ktd202x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kinetic KTD2026/7 RGB/White LED Driver + +maintainers: + - André Apitzsch + +description: | + The KTD2026/7 is a RGB/White LED driver with I2C interface. + + The data sheet can be found at: + https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf + +properties: + compatible: + enum: + - kinetic,ktd2026 + - kinetic,ktd2027 + + reg: + maxItems: 1 + + vin-supply: + description: Regulator providing power to the "VIN" pin. + + vio-supply: + description: Regulator providing power for pull-up of the I/O lines. + Note that this regulator does not directly connect to KTD2026, but is + needed for the correct operation of the status ("ST") and I2C lines. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + multi-led: + type: object + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 3 + + required: + - reg + - color + + required: + - "#address-cells" + - "#size-cells" + +patternProperties: + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 3 + + required: + - reg + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@30 { + compatible = "kinetic,ktd2026"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + vin-supply = <&pm8916_l17>; + vio-supply = <&pm8916_l6>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_STATUS; + color = ; + }; + + led@1 { + reg = <1>; + function = LED_FUNCTION_STATUS; + color = ; + }; + + led@2 { + reg = <2>; + function = LED_FUNCTION_STATUS; + color = ; + }; + }; + }; + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@30 { + compatible = "kinetic,ktd2026"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + vin-supply = <&pm8916_l17>; + vio-supply = <&pm8916_l6>; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + }; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + }; + }; + }; -- 2.42.0