Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1386156rwb; Fri, 5 Aug 2022 00:31:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4KAhUTSPPbuUCeIZbtsqdPvADNE5CN93fS1C1HixW0V8HbsYKHKH7bKQpTWeHa0IJH2Cke X-Received: by 2002:a17:902:ab96:b0:16d:7d92:1fd3 with SMTP id f22-20020a170902ab9600b0016d7d921fd3mr5685262plr.120.1659684710714; Fri, 05 Aug 2022 00:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659684710; cv=none; d=google.com; s=arc-20160816; b=NQINsU0zpALOlx8jXEqHjYcTmcsmI/hGF0AmoJt8MmaQtgfcL+krOJKICN5dtvVYpB qYOhHvCK+qTdAcEjtvGs327BFIc05r7yF7M/sP8Y1xquQ2IY27ZXQpuYJ0otGnc/3lmZ nWQV37cPD7R3rfaTy4UHptBg4xTXQC+1q9/jqMehUpPkVEJ+gBJNxsmx/F0d1K2Sp6fJ bzYqFXKAdYKuADKURvj14dWlbOusJ7D5ykpOW/H9M9fJGR1OMG/4P3hJWy3PsASAlCjr OgS6NNAMhfMffufFWK4pJlG9nbk19nYyjhwq7MQqJWbWmz+YELIiWH5Xbfsp8SNRtyPm EKCA== 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=XZRFVxasDVXXPTfv/lGT5hPcHgNLG3wH8AQQYSGVOn0=; b=yHIKI3w1F42tM8YsP0E18NUaL0IEkUSv8vQpwCh52cUIl9Ztnih+6NBCzdlcoFPEsS TGBRPk1N+N5756unJhXPqTp/ejIihmgrZw0MKblEj6uSUgShyFkDRAATZ/CH2adCnpfS w+yem3k2tIujZbskvbvHtboPUIzMAr442O6vTJiNDizqvbVJzoXL9HDaX2nAdiiyz4o5 wGJQyjOrCjeRENgSWi/QXJ07lwT3jCoSyUwFfwxFtzCXPM2fTS3DD87qo0Av5zgkGkVh SH3PBw7OuIzdt7z/Xf2lnA4IDK/R8fEZURe2HIJ8jg7ILW8NTvW+V0TIZsier3OY2biB +t1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gaurTMxU; 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 126-20020a630084000000b0041d10ae6d85si558462pga.493.2022.08.05.00.31.37; Fri, 05 Aug 2022 00:31:50 -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=gaurTMxU; 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 S240244AbiHEHHV (ORCPT + 99 others); Fri, 5 Aug 2022 03:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237714AbiHEHHN (ORCPT ); Fri, 5 Aug 2022 03:07:13 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E17274CFC; Fri, 5 Aug 2022 00:06:49 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id w10so1948360plq.0; Fri, 05 Aug 2022 00:06:49 -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=XZRFVxasDVXXPTfv/lGT5hPcHgNLG3wH8AQQYSGVOn0=; b=gaurTMxUlwEhrVMybVRK+Y2mqgitmjhaNHaV8u4G/7lgdrULPEa6++uuBXU3DoXK3w NkhVMwDRYlZU2XlF8ccBcuLa+qlYDpUpaCYmVqJfK+8+Ol+T0QWUhEllsNnzP+/4x7ir 6meZx03mjHv5SAAWedGqQMrP7RqqyU+nQDXdeXvupowxN++UvImLVPZYwT/f73866CeM s66+mkhRe/Z3OUCzSiWiHjggTvYozjYg69aajTeQKjX3q8BBAc5Qr1/Mv9784dAczKHK zNrHBOi2F8rfWAIzllurUcBURETAOFVPwQLpzBQu++HAcCKorYwJ0uqrOch35mn0S4Sm fV+w== 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=XZRFVxasDVXXPTfv/lGT5hPcHgNLG3wH8AQQYSGVOn0=; b=dbwb9udeBlp3jCN+WL6o/wLXcg8pNI/3l3X9APjwnSqw6pu79KwOCQtQojGsDC6a7B CzuzFq43bQQsE2OVptzTt3s+czbrmzhboCFXJ7LBZXlk5Z8vkIsLY6W7UJZX2adVNU5L UAtYuzPLfpuaVDYUi9LRm75pPy/xSSJzQ6Hm9vDBlKIYNKSPphOMp2XqHt3hQgP8rp5m 1UcxLYmj9imtx6rvn/bVRhPaWxo7xp+qSaKdg2RtPSW66ykjH9u8JIFEfFidNLukxtVo NBFTP/0pUIUjV2JkUt/3cypUFPY1NI1+qVzPfl2NEJ5bwbYZ/BKefu4FWdGKU1almr4V 9fNw== X-Gm-Message-State: ACgBeo2MkiOjUq1FWYFaQKjYgZ8nWUcL8ZIbnCsEg5NvoY3BGU7ugDDp h3UPQkxIqnGRRpPrxARTiTc= X-Received: by 2002:a17:903:449:b0:16d:d781:313a with SMTP id iw9-20020a170903044900b0016dd781313amr5599211plb.75.1659683209089; Fri, 05 Aug 2022 00:06:49 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-72-229-62.emome-ip.hinet.net. [42.72.229.62]) by smtp.gmail.com with ESMTPSA id i5-20020a056a00224500b00525343b5047sm2191616pfu.76.2022.08.05.00.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 00:06:48 -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, andy.shevchenko@gmail.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: [PATCH v7 03/13] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator Date: Fri, 5 Aug 2022 15:06:00 +0800 Message-Id: <20220805070610.3516-4-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220805070610.3516-1-peterwu.pub@gmail.com> References: <20220805070610.3516-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 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: ChiYuan Huang Signed-off-by: ChiaEn Wu --- .../bindings/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 0000000..204b103 --- /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 -- 2.7.4