Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp275410iog; Fri, 24 Jun 2022 03:55:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjzknPR7SKSG90f28C72oGdc83YpR0euuMmJWqlFdd7VWOduF1KOr8xHCHYHmlhbHBuf8f X-Received: by 2002:a63:2160:0:b0:3fc:b8ac:1976 with SMTP id s32-20020a632160000000b003fcb8ac1976mr11617901pgm.453.1656068120875; Fri, 24 Jun 2022 03:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656068120; cv=none; d=google.com; s=arc-20160816; b=o3bNbWMHRH06XIHRAADeCfrlSLhAuaRDOf/+Cjm0NIlKGBlRjLb1ZnEC+zMcGWSTt+ ifiybr49IZCxOeCSH9K2r/tz2rRkxT/NZnxi97ckOhW/TyseeezvX8ZpS/5v/E57oP2r mPVIqw7S1FRmv6XPZOJlfKnGnb0A/xZpUWWRJmtxck5m8/lVDQGCGJy/XUfyOy23I8b1 dYvLUVnpL3BAnZNkzooEKtRfIAAvIcuI98fb6edJU7SPRuL2XypLAIqcNFqjzks0xqXs gESvob0XqVNW3VJsbfiudKrvoypXoppbjMpilw/1HmLHR9yj7eZAG9hognFsz/gCDgpV Hw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GeySHEpfB0/asXQLszsfiLjDcMnpUMVH0jqVoWkX/7o=; b=or2Y7Uv3CHMOugz9tgouKoMMWOtRcpHW3ckRnrJdKshEr2+FiN16gKUHEvkeYoJu7b w38sBXH9pmSf1OKMc0vKvcoA36C/VqUaYNhKE1EdUwST8DjjrT3CVA4OLI2E5qkHZmRF 7SVFwmiallaCLgjpJ6iBksUHCBkVNkwi3hlKoSixz2rlFNLkkfJj8AYa3s2H2XUjN24b l01okEPfdZpWSdG4nC0oV5WrT/zQharhGTpoAE6yuo2Q2bFhjSoaUtjJUUyxME6XyZ4M 4VdizwJeVyPRu2PYIHFCOAa2+BshlvWGWPjdyVu8lO9pVztqmreS5jpQTzLKxSyq7UDa GroA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uZ1wC8VH; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a631f19000000b0040d0684c641si2440869pgf.780.2022.06.24.03.55.08; Fri, 24 Jun 2022 03:55:20 -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=@linaro.org header.s=google header.b=uZ1wC8VH; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiFXKfg (ORCPT + 99 others); Fri, 24 Jun 2022 06:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbiFXKfc (ORCPT ); Fri, 24 Jun 2022 06:35:32 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DF17C845 for ; Fri, 24 Jun 2022 03:35:28 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id ge10so3804033ejb.7 for ; Fri, 24 Jun 2022 03:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=GeySHEpfB0/asXQLszsfiLjDcMnpUMVH0jqVoWkX/7o=; b=uZ1wC8VHxURHrghX2//skAqQ30um2Rme3cIPNULf/p3DBJwzdeGZCHn64BbW1bwOoh MK7I4FRm4lPVfnOutTChG+9M+lYc4y4yEjHQmcsNNibkepmTc5kqbxTtx/VHfIwqpSFA A7a2fOZ7cvl48zaPYnFMhKsgQgSk6uKOAABQ6m5HcNHn+pYfMPqsOfrhh43gWvLbEKIG AMwez5zF4oib8KlCHUoPbdzUVBf2Mmj6iqKOZO4I2HmkzMfM5iXV86deY5+S7vEL+BT9 wv3F9Puov/5GuHxXic5VvIIGs7RASkq12ilmGiKxF+k5qkfHOarvRWT8G3ev/yK3xUvF FD0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GeySHEpfB0/asXQLszsfiLjDcMnpUMVH0jqVoWkX/7o=; b=DIcxASMFHnZtMgQlUjxkH0/O6vYlnjO+WLluSIa0noQ2KZ+BlW13YsfoO40xDG7Ho8 EN28q86FIAGEdbZbJ8AVDH11pE3PofLP86KlC9MIvhU9WLbrHOodQMi6wMzFulh+XlJC 4SFaFEB3RkRItc35StefVROD3DRd974n7ZOFXKiSwZWp3xhmk1J4OrYwrblLs6y8NQgO WQtm3XhC0zcaPmKqw61UyLWqM8woDI3ZWC9WtvKI07O4Wrg8gSrccrSEN6VmdtJwKkj2 983VMXEWIs+lVP1BkBw9+4rbHH4C600GaM6ReEF6AUVYGVBTXHlUV4Nw1JjswNnlj1KM 3Uhg== X-Gm-Message-State: AJIora+bzKMCAwq8yhtWCZVZ8VmnomLLnJZZHn7/aLs/ubvCrmHH9rR6 +hTE7VhPYSuNgmFICPP0jig5oA== X-Received: by 2002:a17:907:1694:b0:716:14a4:fba with SMTP id hc20-20020a170907169400b0071614a40fbamr13073900ejc.290.1656066926720; Fri, 24 Jun 2022 03:35:26 -0700 (PDT) Received: from [192.168.0.234] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id q21-20020aa7cc15000000b0042617ba638esm1683916edt.24.2022.06.24.03.35.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jun 2022 03:35:25 -0700 (PDT) Message-ID: Date: Fri, 24 Jun 2022 12:35:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v3 03/14] dt-bindings: leds: mt6370: Add Mediatek mt6370 current sink type LED indicator Content-Language: en-US To: ChiaEn Wu , 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 References: <20220623115631.22209-1-peterwu.pub@gmail.com> <20220623115631.22209-4-peterwu.pub@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220623115631.22209-4-peterwu.pub@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 23/06/2022 13:56, ChiaEn Wu wrote: > From: ChiYuan Huang > > Add Mediatek mt6370 current sink type LED indicator binding documentation. > > Signed-off-by: ChiYuan Huang > --- > > v3 > - Use leds-class-multicolor.yaml instead of common.yaml. > - Split multi-led and led node. > - Add subdevice "led" in "multi-led". > --- > .../bindings/leds/mediatek,mt6370-indicator.yaml | 77 ++++++++++++++++++++++ > 1 file changed, 77 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..45030f3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml > @@ -0,0 +1,77 @@ > +# 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 Here as well unevaluatedProperties:false (on the type level) > + > + 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 > + > + 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 Best regards, Krzysztof