Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1279441imk; Sun, 3 Jul 2022 22:57:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+YZfuPr8aVINUlHhwWMupfvVu31gSn/0wH9y7b/G3DPHxT+IEcZY6BxXeKfha++oBbmTp X-Received: by 2002:a17:907:3e0e:b0:726:602b:c19b with SMTP id hp14-20020a1709073e0e00b00726602bc19bmr27656599ejc.117.1656914241833; Sun, 03 Jul 2022 22:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656914241; cv=none; d=google.com; s=arc-20160816; b=afr7DhOTlqfuQdV/HaNAGzHg2MtNcef9IRxp1kXRx5t79YLqiZ1ccX1scGhkKmHobK yF2duDHp20ruK1sJxB6k2Q3q+5t0rI2Nxk49oX/7iTSeGMWME9/VKAwZAuLob/DNKTzT RCNruIR9zoLPliAH6I4sbDpAJOUuX+MuQxZ+SuWhxEXvfOnWaHrTn9cz8WyvaxTe37Kn YeJT6FYHudzC1HDCohDRk2wdsHBJwak4zp4E0Ccjw2uHbOtOk6w9xMUf5vSIFM8Eq1cq j9uPFESNwAN2tPiZLKYAoxpD4gwp94gGIvp0XU8FYaTPpRp7Ofj+tKI5++B+G+cRNIy3 M1gA== 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=ZBFds6olkH7qZWoO3BcF5jnp49SAncP60CSiK32nvCU=; b=k88CBUhgxBSZOtN6BuG0KoQjizNUJWGxf+rY3ybuYD2EfIic2l21LZI7GUBxmIlTY7 ywsdB8NgRx5j+IycosQfvt/QXVgudsPlIxjG4f93EFJ3wrt08JpmJYSHI6i0pJavbOWn BJl0psOob5Gh9IQPkKx2MBR8M54JgamkA67bpsL8JUHaRSuZZL9EGtJ3CwTPDlhK5LS+ jncXV9SuLByxqvX3srmYqtvabo/h7ztowVnW+o7QRNibSiEKOhNd2hc288EJmyDvPBDG SlTjgDIHO8BMA8di9cmVOioVNXWi6E+u6BYIQQ+y3gm/a0zMbPy9CpRcVFNd2TwT7JXn WOaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ghNOEPKf; 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 f17-20020a50ee91000000b00434f9d93b4csi33446703edr.312.2022.07.03.22.56.56; Sun, 03 Jul 2022 22:57:21 -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=ghNOEPKf; 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 S232805AbiGDFke (ORCPT + 99 others); Mon, 4 Jul 2022 01:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbiGDFkN (ORCPT ); Mon, 4 Jul 2022 01:40:13 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1CF7667; Sun, 3 Jul 2022 22:39:53 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id v126so7964395pgv.11; Sun, 03 Jul 2022 22:39:53 -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=ZBFds6olkH7qZWoO3BcF5jnp49SAncP60CSiK32nvCU=; b=ghNOEPKfW/M7m5HM4dYGeASvfcvcu8tR3I9lSRY/mX2exs/qAsP7+hQu8z0Jq2sH+g PevP2yOfgvyAoRpCblNCliFPwxd3Q9GNxuK7ZFQjUSFDA21mWoXzgrUntgBPAfN6rb9z tA4ST2OpyzlVrguhxGijOhgZbKrTfC7nTyb50T41oeU2ugCxKrNj73JnoWnssIDSLkL4 5OH8BZILuCS5slgVW8rQNv2RGNazxPKs172ETLIOuXr4hPqFMz+JMBwe7LAao3IaNVo6 6pOEVj+V4yHLVv5WWbwqjIURYYhfBJ6s4+vLOO96roMtrpuLOoVPCTAOt2ajZDwKIawC TvQQ== 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=ZBFds6olkH7qZWoO3BcF5jnp49SAncP60CSiK32nvCU=; b=ILu+gndjm3Flx2VxRmZEDS4JE91gzqEiyTtKPULA+ggbtPKD6xakWNsySvFgct1Z7m GvT2v70dR9daLQrCDKL0pt5EQscZ7y5iW3UCLLSlZAgbkh7H5/TvOIYLw0wORnAsYRoe 8BldX66N6o9LGW8ESgC2K7F8m+oT8tL8hna/n2Tp+ehU8nR6L2CBKZtKb6lhhEGXCJ1E QbXf66+p8mT9RJsVzbWLxYnGYOfQn/uo0Mbxmiv3vKifFsu73J1NyrE2oTpo3lfUdHn1 xoMKyF/3nDqibSbR0shN13tdVKL61HuA9e/l5pxWJF3vFOPimD3fjn6QdRTOLhIHyhLN vyVg== X-Gm-Message-State: AJIora+L+OIVEpCicCALyDPAQsTNrxL9IgtK9RZ+2cKG/eJa7TUOXZcx Syv4ldHCukFvs4gT4D36NH4= X-Received: by 2002:a05:6a00:140a:b0:4e0:54d5:d01 with SMTP id l10-20020a056a00140a00b004e054d50d01mr34348533pfu.20.1656913192917; Sun, 03 Jul 2022 22:39:52 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 22:39:52 -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 04/13] dt-bindings: leds: Add Mediatek MT6370 flashlight Date: Mon, 4 Jul 2022 13:38:52 +0800 Message-Id: <20220704053901.728-5-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: Alice Chen Add Mediatek MT6370 flashlight binding documentation. Signed-off-by: Alice Chen Reviewed-by: Krzysztof Kozlowski --- .../bindings/leds/mediatek,mt6370-flashlight.yaml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/mediatek,mt6370-flashlight.yaml diff --git a/Documentation/devicetree/bindings/leds/mediatek,mt6370-flashlight.yaml b/Documentation/devicetree/bindings/leds/mediatek,mt6370-flashlight.yaml new file mode 100644 index 0000000..e9d02ed --- /dev/null +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-flashlight.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/mediatek,mt6370-flashlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Flash LED driver for MT6370 PMIC from MediaTek Integrated. + +maintainers: + - Alice Chen + +description: | + This module is part of the MT6370 MFD device. + Add MT6370 flash LED driver include 2-channel flash LED support Torch/Strobe Mode. + +properties: + compatible: + const: mediatek,mt6370-flashlight + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[0-1]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + enum: [0, 1] + +required: + - compatible + - "#address-cells" + - "#size-cells" + +additionalProperties: false -- 2.7.4