Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5629071rwd; Wed, 24 May 2023 04:49:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cDjZTJUt8uTiOOO+VQlJhBBcxUm9HDZwlECjqotcyvjH9MnhKG6UHGgoo78u/RqY8UhFe X-Received: by 2002:a05:6a20:12c1:b0:100:e1f3:9bd2 with SMTP id v1-20020a056a2012c100b00100e1f39bd2mr20103297pzg.40.1684928984812; Wed, 24 May 2023 04:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684928984; cv=none; d=google.com; s=arc-20160816; b=mCgDieriMzM7vj5Tyd0qG2nO5Au2LFGyajc9ivIkBdSu8ywiAuveAjar8Bj00Ussdf ajYJvHxssiTvbaObqnGPhSf/km1fmTm6/LUuTpvYHdaXIodnsVQqIbnlqDrfI8USY9KL ynSPk58OC9QlLaaVnQxIwKSCACCb72zRkQXRpEKvm/NbjouLcPhZBBm6jAguOavORdKi FuIX4RwEMmvl2S6+mR6zMOwgqLHM3fSAkxl6K4XKL0CNMqODdvM9gvU5+wYGDmcAjrej 36Wa6mJiSbf66CbdQrj4XlApE1Iehe//tbsBYtoiog6NuQaYPyegVeuylCRaL3dtMqoI 9YdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jrRDmOqJ59jFD1JNUCyXP6sJZgAfaOqXnTVjJmcIeoo=; b=ujh5doHoEcO1qZefCBXYAp6Zsu3lHUxx/JQ3gAu/vYPfC7/6ozCJnY2+vkZCjAOJ1T Lr1qSXPwMFL9UTcOEOxlMIrdVoTrb70HrCQA4PJjkkg3e4hffDc668dC+cUMo0O6nY/m j0SKhtwrFux1OXJhyWdIEM2wGreRgQwnjoD5UU0W5fYJh3ON7KXVCQ5VrLv4hnrEIPm+ 0Aie6YEy0n0Idf3eQaEm6GqGFZbZZLLeFiwSQZm7QoLEomtAq/YGHqPLpcsYt2Aaadus O9isB7z/sJ8U7zhTZWwVSuj6GSRhfjodhGVyqmqWhs2LZx4WmHtHReLRzbDtGq7fTvIZ 6iWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=fw6HS4Uu; 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=NONE dis=NONE) header.from=yadro.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a17090a3c8700b002535fa552f2si1178006pjc.85.2023.05.24.04.49.31; Wed, 24 May 2023 04:49:44 -0700 (PDT) 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=@yadro.com header.s=mta-01 header.b=fw6HS4Uu; 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=NONE dis=NONE) header.from=yadro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbjEXLlJ (ORCPT + 99 others); Wed, 24 May 2023 07:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232493AbjEXLlG (ORCPT ); Wed, 24 May 2023 07:41:06 -0400 Received: from mta-01.yadro.com (mta-02.yadro.com [89.207.88.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D4CC5; Wed, 24 May 2023 04:41:04 -0700 (PDT) Received: from mta-01.yadro.com (localhost.localdomain [127.0.0.1]) by mta-01.yadro.com (Proxmox) with ESMTP id EF695342601; Wed, 24 May 2023 14:41:02 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yadro.com; h=cc :cc:content-transfer-encoding:content-type:content-type:date :from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=mta-01; bh=jrRDmOqJ59jFD1JNUC yXP6sJZgAfaOqXnTVjJmcIeoo=; b=fw6HS4Uux6dCkhlCJ3z2lin2OUVtEwQ6cO qXr45cZnPhDw6DnKzfIQLetqz4+NonMxVNzEz9IZzdgg9KHXcT+EpI5J4LQ7A8l4 dsbAdQ42fSqXJ7uUsLHVq1gTk0Pd/RhtC3hPI7F0S0Y6BmKRwN+sSnbmAQuRy1Az /9uGsdUk8= Received: from T-EXCH-08.corp.yadro.com (unknown [172.17.10.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Proxmox) with ESMTPS id E65B83425F3; Wed, 24 May 2023 14:41:02 +0300 (MSK) Received: from xpad.Home (10.199.28.63) by T-EXCH-08.corp.yadro.com (172.17.11.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.9; Wed, 24 May 2023 14:41:02 +0300 From: Vladimir Barinov To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski CC: , , , Vladimir Barinov , Subject: [PATCH 2/2] dt-bindings: leds: Document Awinic AW2016 bindings Date: Wed, 24 May 2023 14:40:56 +0300 Message-ID: <20230524114056.196518-1-v.barinov@yadro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230524113910.196321-1-v.barinov@yadro.com> References: <20230524113910.196321-1-v.barinov@yadro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.199.28.63] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-08.corp.yadro.com (172.17.11.58) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Awinic AW2026 binding documentation Signed-off-by: Vladimir Barinov --- .../bindings/leds/awinic,aw2026.yaml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/awinic,aw2026.yaml diff --git a/Documentation/devicetree/bindings/leds/awinic,aw2026.yaml b/Documentation/devicetree/bindings/leds/awinic,aw2026.yaml new file mode 100664 index 000000000000..abacf746677b --- /dev/null +++ b/Documentation/devicetree/bindings/leds/awinic,aw2026.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/awinic,aw2026.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic AW2026 3-channel LED Driver + +maintainers: + - Vladimir Barinov + +description: | + The AW2026 is a 3-channel LED driver with I2C interface. It can control + LED brightness with PWM output. It supports hardware blinking and + hardware patterns. + +properties: + compatible: + const: awinic,aw2026 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + awinic,led-max-microamp: + description: + Maximum current at LED output + enum: + [3000, 6375, 12750, 25500] + + vcc-supply: + description: Regulator providing power to the "VBAT" pin. + +patternProperties: + "^led@[0-2]$": + type: object + $ref: common.yaml# + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 2 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@64 { + compatible = "awinic,aw2026"; + reg = <0x64>; + #address-cells = <1>; + #size-cells = <0>; + awinic,led-max-microamp = <6375>; + vcc-supply = <&vcc_3v3_s0>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + + led@1 { + reg = <1>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + + led@2 { + reg = <2>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; +... -- 2.34.1