Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1802316rwb; Wed, 5 Oct 2022 05:10:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aQP+FGmxzyr+yGDrYehZ5howwnKNpEzBFwLLxrjmSB6LIZPARVIbvFJKOeH7cG4Zk0/As X-Received: by 2002:a05:6a00:2918:b0:535:ea9:791a with SMTP id cg24-20020a056a00291800b005350ea9791amr32850711pfb.54.1664971833085; Wed, 05 Oct 2022 05:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664971833; cv=none; d=google.com; s=arc-20160816; b=ST7ZWwrJ2M9YB4wjcsiiqM78gD78+foDMluu68c5b3/83C6HC++ZQoAulwKvCaJd3b s4HgC1mZ4P9+RDdjOd5SFqsjEgTZZQUdVEQN49niLKqmHwUhBnzECDBfsX0f923TfVxW bcBm+j849XZWuCOFNE8OWRQIgCiObZ9ElPN1XZzyYu1vePPm/0OWUs9NpNCMuZIEtkcj 1LLekt6pFveSrQEaNe5Vg1fA5lLX9GSclLm2RGyT+ySX++M/TkKb6WNGO6bRtuv0uBpH WPzs5Q3Axk7ZJEOuXzZMLfHP1j/h4aO9RsscxtHk6U55HbAb9t4RYObP9PQwDXqAYTMX UZ7A== 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=8hLDzEimJnt0JEICQzW/RTVmaSOcB+cnJU9SOjYDEQo=; b=h9kUM5LqPmf4tP7isdqfNPJMeNqBhSS4i2hSnYMJEMWBCkLRXa9J6ulYqfAk9j2Gd1 Y8gVHMCAAr5csg7JxZVDk11H8BFKifRK8XKhcDP+rmmWPlFQOhzftfjOj68AgOKQGndK fdW24bIThXqVsGVMLWTDtaU7P+O1ULWG7/qK+OYWlWW98eAoS1HJQyCi8CD4mubPdIk2 daU6xm67YA+z5FGCFb0hdazXC3dLmh6mS5W6Q2d8CWkXtZZ9WspVrQoitGmKkg/VtJ3v NDdY5lA90h7b8f+0JkYr/RxTLsp6xSx9GPKZVsAKw88qDylA6RgBBunyHzTxM63hYdFH 42Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dkstLcB4; 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 c2-20020a170902d48200b001783aedb84csi16777586plg.370.2022.10.05.05.10.21; Wed, 05 Oct 2022 05:10:33 -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=dkstLcB4; 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 S230420AbiJELrj (ORCPT + 99 others); Wed, 5 Oct 2022 07:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbiJELrW (ORCPT ); Wed, 5 Oct 2022 07:47:22 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 092BB201B5; Wed, 5 Oct 2022 04:45:01 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id a23so7351246pgi.10; Wed, 05 Oct 2022 04:45:00 -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=8hLDzEimJnt0JEICQzW/RTVmaSOcB+cnJU9SOjYDEQo=; b=dkstLcB4qT8u80g25Ulu4vSdJ9OeiwxLxyJgB2UFAaPg/Xhk/3paEAHVsM1FO76lTx HRLAQzg3H+UzCBq8JE7ObheXjYFN/AfPeiBLui/S2K2BCKCRO948orlpJDZovmcRjQ7/ xjRAar4Fu9Pe92fmZYdJMJc5q0vPHlzseaYq+/gbNkEo4wNF0hLI4vrhVRHGrruhlAp4 8IwWuHvghAHAs0MuXNLwqyXDv1Qo6E4XuRLWO71XyYDnJeGCNUd2SCMNFWHcG3aVDZOy jbceYf2C5EBMKybezEGR43r2P9jv1igACt4YBWnemviL6H6k63uesQBOpnJQ+XhPgxuB sO8w== 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=8hLDzEimJnt0JEICQzW/RTVmaSOcB+cnJU9SOjYDEQo=; b=uiPzxp0aXJNREvC8wCx7ARHRab1/eRWHRFSsmR06YKYOt9NOFc9LEXY3/wAQviXYys TtrowJsmkk7biXcy1Rr9jPwXym2/o1eYxJUeMuUDylTFiJtVHQFZluo0mi0GBbSq3uOC druvM1173ORLL+O+DzkWNU0Z3y3WyqJJm41zxmC+yQoXClYLVCcVoSWezFYDwX41EvmT IpBwwYMoXQKuSvJT8rab9ihtCgo4HWPokrQ5X81L6cDVwERU6gSZS5Pi68flktHmnBsY F8iNF00NDb/B4g1P1+JP/sfQfq3ZfZHdXaUgC1H4pcb1/TrseL3idGkuAO4wAoJyMMU1 D0kw== X-Gm-Message-State: ACrzQf2yVBIcK/jTnwevpA5pVw7QRi8VVcp3KaxWrG111hkZFVE1BLqP QD95RBQvu2mPasgtryLgW3g= X-Received: by 2002:a62:e911:0:b0:555:8c06:c9eb with SMTP id j17-20020a62e911000000b005558c06c9ebmr31915818pfh.52.1664970295432; Wed, 05 Oct 2022 04:44:55 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-73-126-108.emome-ip.hinet.net. [42.73.126.108]) by smtp.gmail.com with ESMTPSA id y23-20020a17090264d700b00176e2fa216csm10477447pli.52.2022.10.05.04.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 04:44:54 -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 v13 1/5] dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator Date: Wed, 5 Oct 2022 19:43:54 +0800 Message-Id: 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 --- v13 - Remove 'allOf' property - Add '$ref' and 'unevaluatedProperties: false' in 'multi-led' --- .../bindings/leds/mediatek,mt6370-indicator.yaml | 82 ++++++++++++++++++++++ 1 file changed, 82 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..7a41647 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml @@ -0,0 +1,82 @@ +# 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 + + - $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 + $ref: leds-class-multicolor.yaml# + unevaluatedProperties: false + + 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