From patchwork Mon Aug 15 09:01:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaEn Wu X-Patchwork-Id: 12943295 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3620EC282E7 for ; Mon, 15 Aug 2022 09:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241469AbiHOJCO (ORCPT ); Mon, 15 Aug 2022 05:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbiHOJCM (ORCPT ); Mon, 15 Aug 2022 05:02:12 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A064720F76; Mon, 15 Aug 2022 02:02:10 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id 24so6037819pgr.7; Mon, 15 Aug 2022 02:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=bLncMqn5cD6+J/xX/xBdFyZqAOyug656xJDHPfwOkJA=; b=B3PG0JekDy3pCohcjyZlsPZudH+m/iJ1KWaYWvohvsPxeOPhjsADSikmXZzn7BKP7E lLS4kEpcONkErZml7Bnu0PKDS4hcf5JXDwIGYBVzyq3vmPB3tZguxDHAIlFrBsqL1y/v T0R5r8u+2vTD6MYbvzU7sgbO12EE/MZh/9u2GIcOyP4xoAlRANwEIA0embBg4huJxb0j IkBAqpOiE69ZZKp+8Fp+A+QMwT7z2x2fPAtZYha4wvxhJrNpcudNMv77grRHrwMcH9nM m5DWGqKTbfO35oAdRaync3CM+JBI4/tLiclNU4Yg6+rwjeXBqEHBi1o5QX3bbq/6JAzt 30RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=bLncMqn5cD6+J/xX/xBdFyZqAOyug656xJDHPfwOkJA=; b=Gu4WLgDnPhtuRwRqpQWr4pJLKf8Qy48bbmjOMFK3V8+i/eMbylpLMPLU/JRWrhLETQ JXf6SvPZfTtWYuMc7ekGkaX5SzEoBBPAPYBd6/e1TeXAPO6hlE4Aku/unSCOFeIhK5mX UJApb3MhFjq0tKq/CExBlb7UmkjxSiOcYpweUPnvY4O4y4fQJrj7b08Xt3zab1o5nJj/ vcxSuReARzG+cmaqA36AfkrKU3P3fJaaHYPzM9Y8qsdwmAgnPovvZaYTRtRGS5VR9RMj 82JsfWOWnK3GaTeK3tvS9hFLgOniIy0+TIp9IVstuXhsJGNc61jxkhpj43OdLjt1H9th CIlw== X-Gm-Message-State: ACgBeo2w2j1ccneTFDbiqT1H1ycxiWHtdmUjrMSWEyR6YqqOFRfLI0Sq Atpwyo5x27ZtQTGdq6FabCA= X-Google-Smtp-Source: AA6agR5L3UutCR6SuoZH/M6NAJC5jzQgd1eK9rcw7szj3wmG5QtaNzGvWYIm3llE3iJTVl3LqhHAQQ== X-Received: by 2002:a63:91c4:0:b0:41c:ce66:8ab7 with SMTP id l187-20020a6391c4000000b0041cce668ab7mr12815928pge.602.1660554130162; Mon, 15 Aug 2022 02:02:10 -0700 (PDT) Received: from DESKTOP-IBN2BAQ.localdomain ([123.110.155.185]) by smtp.gmail.com with ESMTPSA id a17-20020a656411000000b00412a708f38asm5491612pgv.35.2022.08.15.02.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 02:02:09 -0700 (PDT) From: ChiaEn Wu To: lee@kernel.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, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de, broonie@kernel.org, mazziesaccount@gmail.com, lgirdwood@gmail.com, andriy.shevchenko@linux.intel.com 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: [RESNED PATCH v8 03/12] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator Date: Mon, 15 Aug 2022 17:01:16 +0800 Message-Id: <20220815090125.27705-4-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220815090125.27705-1-peterwu.pub@gmail.com> References: <20220815090125.27705-1-peterwu.pub@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: ChiYuan Huang Add MediaTek MT6370 current sink type LED indicator binding documentation. Reviewed-by: Krzysztof Kozlowski Signed-off-by: ChiYuan Huang Signed-off-by: ChiaEn Wu --- .../leds/mediatek,mt6370-indicator.yaml | 81 +++++++++++++++++++ 1 file changed, 81 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 000000000000..204b103ffc2c --- /dev/null +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml @@ -0,0 +1,81 @@ +# 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 + + properties: + reg: + enum: [0, 1, 2] + + 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