Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1272063imk; Sun, 3 Jul 2022 22:44:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tut0H0tKu/TwUmsc177GwE8ZFqkL+TUlsfcAK/KrXl8JkrQJE2jReB5e+Y/SizzaLzzcrE X-Received: by 2002:a17:907:1c94:b0:726:307c:8be7 with SMTP id nb20-20020a1709071c9400b00726307c8be7mr27627336ejc.443.1656913456213; Sun, 03 Jul 2022 22:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656913456; cv=none; d=google.com; s=arc-20160816; b=1Dz/HuXIYw0VqX5gS7aaTXSqOJwQ9iWXvsT5COtD76x0XKvDyDYtkVeMCdRh7ipr3Q bFPFp6jQ57CjqQERinQ58vT2swrl1JUqkvSbMUqcKXPQ/+NPPpEEZkA8bJIr+oBg2aLj X1vr0IDJmOyXZHF3EpZ3iyf05GUXnkuV+nXWkGLeTKZ+M5vtTiWhBvRHwqkxxAX4Pic1 b5cvCn7S1lgBe38IJEagR79U5S5MPBCVVV+FspqWENmPCg+zeVtnojh9qVaJWRu8d+s5 u4fcIPGZlc9BKDW2Oi9ZSapgL6oIyVjR4ISvc5yJQENUoQ6Z+mpH/Z7IX/86FUacLUfo S9og== 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=oAIuQm2COlWkK+/Z8BqCJPN5NppYOkaJmMDk8pvQT/U=; b=Jms07Lzn2LBT680n60AFl1WLmIdWMC8pz7EtUPw4bb8yf/+0bVfzDXTXFjy13SbQl3 B3KKPwyb7YIutOJEjohnpLhXEBoM3H3XQi15aMrRSo9couiuX1cO1abyS9USIBPyE656 C63nd2QpbXuxff54gDFK+9NLDD1Avj+EvM67Z9MbgGW74dBmtdBweeut8yPHEg7f3gzY q8NNASIidsFlnq/Q0cB6aI4NaTMsav6aR6ZLZ57D8xTZHvoma+3wTFavnBSRuJnod1fK Yuxn3MdA/2fxgSwrQYg82Poz+AjBGTGNNSSt6mrrE3SCkyEB90aB9j+V31mERbP4eEGk rbxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EaSKmdfn; 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 dt2-20020a170907728200b0072a47b13d67si19457221ejc.582.2022.07.03.22.43.52; Sun, 03 Jul 2022 22:44:16 -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=@gmail.com header.s=20210112 header.b=EaSKmdfn; 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 S232960AbiGDFkQ (ORCPT + 99 others); Mon, 4 Jul 2022 01:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbiGDFkB (ORCPT ); Mon, 4 Jul 2022 01:40:01 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABEF465D4; Sun, 3 Jul 2022 22:39:47 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d17so7989412pfq.9; Sun, 03 Jul 2022 22:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oAIuQm2COlWkK+/Z8BqCJPN5NppYOkaJmMDk8pvQT/U=; b=EaSKmdfnWVJ+MEpeWqtg1O0K3ULAhPBZDu4y0J5yHyWuHGxf6rPYMVoveDSCrlTjR9 TFnf+toKwQdO2ceOqWxkRj+OW2XjezFBJEHyvgRge+bPiCAOhow8MLv60v31u0rXXeV2 ZjnVQu5QusuAatAcEzgnr6JoiiFWDP7dwXs72jp2mI0Hk7Nq3P4rJRfNcz0HDHPc8Yhh dIocVDAVZKBFCPD4y0OyYzLiUsFhTzgXxm+hFjDiZclY7X0LOG/G5870oDbQR+i3x8XI A46KXgDjsQFhKpsdYYRe53sfrWe0HN12AxU1k0KCpxf+VUs3YJOzJ4YZhxd+ARoZ6BtY dERQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oAIuQm2COlWkK+/Z8BqCJPN5NppYOkaJmMDk8pvQT/U=; b=w7jHq9yfU+jrf9yWA2EibcnksYcCWMxmVgU6WHynjBu197C8FEWTVzamG2yOBGaDR6 jtNEUz5oAFYPTio/wAiFjpyq5dq7IXfOiFu4WLuiWq7tDcxPAtmcMTbN4blgLEh7GL9Z Eoo1ekJdflp5tRsR+zYNjZ30wmBERRDtPTNSF9sm5tMXxnfq5VkRuvIuH3OHiCd6x1n3 nQw28Lx/P5h4KCH6tRGVHMpxa28rcxV4RZgJ0YPxQu+uSbNB8oVU7qLiCoWmLMKdV0Qg 4UGG1FVudOedZVtOXIczh6geQ2EPepPwEQ9rhYHmtB7A47Hb3ebjeiS77WPs8Cog5dz9 zs+g== X-Gm-Message-State: AJIora9f7WuYCf4/P0ydvP6cjhrntUkRBxNd6xVtLfjJB44jklaxtTzL L/lRHoXngLkZgyeWAW+tr6o= X-Received: by 2002:a63:86c7:0:b0:40d:af99:608 with SMTP id x190-20020a6386c7000000b0040daf990608mr24095540pgd.515.1656913186411; Sun, 03 Jul 2022 22:39:46 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-72-4-255.emome-ip.hinet.net. [42.72.4.255]) by smtp.gmail.com with ESMTPSA id h24-20020a635318000000b0040dffa7e3d7sm13904507pgb.16.2022.07.03.22.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 22:39:45 -0700 (PDT) From: ChiaEn Wu To: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org, jic23@kernel.org, lars@metafoo.de, lgirdwood@gmail.com, broonie@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de Cc: chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, szunichen@gmail.com, Krzysztof Kozlowski Subject: [PATCH v4 03/13] dt-bindings: leds: mt6370: Add Mediatek mt6370 current sink type LED indicator Date: Mon, 4 Jul 2022 13:38:51 +0800 Message-Id: <20220704053901.728-4-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704053901.728-1-peterwu.pub@gmail.com> References: <20220704053901.728-1-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: ChiYuan Huang Add Mediatek mt6370 current sink type LED indicator binding documentation. Signed-off-by: ChiYuan Huang Reviewed-by: Krzysztof Kozlowski --- .../bindings/leds/mediatek,mt6370-indicator.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml diff --git a/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml new file mode 100644 index 0000000..45030f3 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/mediatek,mt6370-indicator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LED driver for MT6370 PMIC from MediaTek Integrated. + +maintainers: + - Alice Chen + +description: | + This module is part of the MT6370 MFD device. + Add MT6370 LED driver include 4-channel RGB LED support Register/PWM/Breath Mode + +allOf: + - $ref: leds-class-multicolor.yaml# + +properties: + compatible: + const: mediatek,mt6370-indicator + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^multi-led@[0-3]$": + type: object + + properties: + reg: + enum: [0, 1, 2, 3] + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^led@[0-2]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + required: + - reg + - color + + required: + - reg + - color + - "#address-cells" + - "#size-cells" + + "^led@[0-3]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + enum: [0, 1, 2, 3] + + required: + - reg + - color + +required: + - compatible + - "#address-cells" + - "#size-cells" + +additionalProperties: false -- 2.7.4