Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp365524rwb; Thu, 22 Sep 2022 20:00:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xSsWLK/3U5iYuBPq9mwYUWuod3Nmo73v6yuxKHE95QWpaV6GuDFvoUYq9ZVh1bsNeWfSs X-Received: by 2002:a17:902:f644:b0:172:b074:d1f5 with SMTP id m4-20020a170902f64400b00172b074d1f5mr6383922plg.29.1663902057569; Thu, 22 Sep 2022 20:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663902057; cv=none; d=google.com; s=arc-20160816; b=cb3fJGLRHtVMqRUBsTeLMBlY5IPIEzYh6p08AxIT8cYM4JJohELuBkbGn8d90Da3Vh cdufueNPx5E4FwvrYhtR3QJ8Fe5UgPBxT1TdicrnmHGZKZwaScA3t+ehH7p9hoOHZ1BR rLuIhLzs3ErvqucqqoEM7XeiG01Vdnfe3MrdaHUpJRP+a0O4LMxXpJKHrcQeuha7YqLB 58xGpZQADS42ev6aqWCtA4ycOye92Snc7q69AortkcgJjw3gykeC2xe3oURspGKtljDw yUMdBCfdzpnBGfudbmEuym09KxXQja3Q0iGhZuGXIm1p30ZLcrE7uBTn7mD2TMqshwng ZIrQ== 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=lGIiOgVBHQszCeS6xtjfzJpDlzTFF+yet5G8QqELThJu87j2iVIvaMr9as/eRaiJoP pDop8Iaqu5x8NKsV7RjkXnVNmnPSYo9gSwA2kF5O8gBomsvsCV5FZfAiF0F/NFva6Nb/ uc+Qv3gFaPZNA1BfnWcsnplpKBZGBfTtC5z33vaVh71DUTuot6saz03qtA8NrGCEqP3n Rav6uFlbf5dD2yd8EVFD7XIYLKzAsMmCZfGgYc0x3bWwG1+VEafSjc9Gxt47pOehN/Wo L0bkbUW0InFvgVCmap2iBa7BX9DBf6WnTwzfXJ2UXbnrfYXDGWED2JuZM0tLRROkRszu Uu6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="AC7e/YMo"; 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 t71-20020a63814a000000b00434dd1885d6si7613055pgd.847.2022.09.22.20.00.03; Thu, 22 Sep 2022 20:00:57 -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="AC7e/YMo"; 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 S232146AbiIWCwP (ORCPT + 99 others); Thu, 22 Sep 2022 22:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232225AbiIWCwH (ORCPT ); Thu, 22 Sep 2022 22:52:07 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBEA211BCC0; Thu, 22 Sep 2022 19:52:06 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id a5-20020a17090aa50500b002008eeb040eso6783961pjq.1; Thu, 22 Sep 2022 19:52:06 -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:subject:date; bh=XZRFVxasDVXXPTfv/lGT5hPcHgNLG3wH8AQQYSGVOn0=; b=AC7e/YMoRs7PdI4zPqf4eIRJ7TGejv/HIaMzTQwnf69CY8SRLkRIFrumEZn+opLCcO GfRpkAGRKXSflmI3c13EP4B+kPpUDmAaesrdD2XOHZxeg2iH5QxzHPncI0o1pAbVVZlv VJgPgp1anJls3Y5GWSO2DojXjLEdUOJQzSJlJX7IKDlsA+3WuzEPwe5FXXNMACQ1QPRa le8Gu2BOcf69I5JfSqo7yPytwattJFdDGGM4xGSxxbwZYofptc0EkKYt+FSvhruAmQWa seci6c3BC6AwTO/9ORAh6Vt4fM7VeJDVEaVXPv55dcPOTYfRRaIT3n3AZQ6w1hYIblHc t/gQ== 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 :subject:date; bh=XZRFVxasDVXXPTfv/lGT5hPcHgNLG3wH8AQQYSGVOn0=; b=Yfgqz4ILtElE+557IjTNU2CVbrfa1IBKnhu8GqTj4dWzt/jP+048gU6roSovtAbZ3K 6MUsipvbCNjGq37kXb40wbb5PryLlBi2UV0baKmGW+0OMnI52Q9eBKLUX048sxXOP+UV 3GOFDOw8wRGxVBswwzqc+YUTPUBd3nXLQ5CNXoHDH3m8EEiZd+YIpm1hDG9CUfF1CFg1 GU8Q2cYLq/tCY2YeeGTVFk8gz2pNQCqlcBqXQdtfX3/Mg+N6wB5UjZOqYw0XohYMiTJJ MHZa5rSnGq2grcdQrFSXDBt521Mu7ge0ICD5QMD/PnSpxuM2k5y4QFcQ+nc4aD/8XoHT 3B8Q== X-Gm-Message-State: ACrzQf3PxksaGe00HbvgHdz3H9WB0AbJR4d9cSgXG2A2UwKH/r6nLZnQ 3rUI1sbozMw2EOUDBwZc15A= X-Received: by 2002:a17:903:40c9:b0:176:e58c:f082 with SMTP id t9-20020a17090340c900b00176e58cf082mr6540418pld.60.1663901526345; Thu, 22 Sep 2022 19:52:06 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-76-89-227.emome-ip.hinet.net. [42.76.89.227]) by smtp.gmail.com with ESMTPSA id f21-20020a623815000000b0053e85a4a2c9sm5167058pfa.5.2022.09.22.19.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 19:52:05 -0700 (PDT) From: ChiaEn Wu To: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, jic23@kernel.org, lars@metafoo.de, andriy.shevchenko@linux.intel.com Cc: chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, 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-iio@vger.kernel.org, szunichen@gmail.com, Krzysztof Kozlowski Subject: [PATCH v12 1/5] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator Date: Fri, 23 Sep 2022 10:51:22 +0800 Message-Id: <27df85c30277a171ae85ff6d5b7d867625765d0a.1663926551.git.chiaen_wu@richtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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