Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3738340iog; Tue, 21 Jun 2022 05:06:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKhK3VZTIuXb+6blAgy5QBJhPuIIhbEhMfeHvtdOHmDQWMiq5Qi8VM1EAn9BxlGbIeesob X-Received: by 2002:a63:751c:0:b0:40c:f042:5686 with SMTP id q28-20020a63751c000000b0040cf0425686mr3727412pgc.462.1655813180958; Tue, 21 Jun 2022 05:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655813180; cv=none; d=google.com; s=arc-20160816; b=qElO2pK7PuHKnlcptXhsIFV924AtivNxAnoY+nMIGuqMVt58uzWEjOIJx0QjAcUTxA vx2OH85FwXX2htTheO/SjyiXJUWapFVcWB/mlMMpN6fGsbwFvWrvsQTlqCrbLI/Mz/u3 mgBP17QNM0qgmt2ALZ+dvD7CCHimYXraFc7VP5V6/USt8oKMYNKBYtXDMi5gHYtQP+f6 2nT6vEmNexQ7zpAd7JF10m45vion0s4opHNzQyr/UMcRcDt8xjYSgynvNYQExKQGx/6C eSxhxghqM2YFY/KDVrPuECpNGAFdLjDV2h6ETI3NtfzoOIBYdqhxL+kbBPXFajx6s3f0 HUqA== 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=20hOXgHS4fSMKzf2+VEVhuMt/xTY7rwW+BkuR688jQI=; b=ijSZ+uambVGuDWZFHjgjxpWlyywdT8DLofBI28iMhkOV1Nd2ZyCbwGIswCT1ORzD9S dLTyfC27VLa5BYlKol4pqzM0dzyaWqpBKd9Is5ZIkFYw11BD7xdmIjOzosamKTM61Cgx WjLhbCTjZ0Lk4Xr+RK0+NXHxFGnKqwtmBPdWeFaHSz8Wdh1A8hNwUih86s32h2K5GjZy euZQMkHC58jmVNWHNwf7GtEQme06pAAxgLbbmWMxNMSHpkZKPZnCgri3Ruz8+1PDxOr0 WKd3TFx2GvUwenGvmJkzci3di7FqAF/SsW2TI63vNix5OOFQF9+HcZZ/sQb8a3M/Qazz r/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G0fDoM6i; 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 y65-20020a638a44000000b0040cf5db76dasi2370760pgd.595.2022.06.21.05.06.06; Tue, 21 Jun 2022 05:06: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=G0fDoM6i; 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 S1350393AbiFUMDt (ORCPT + 99 others); Tue, 21 Jun 2022 08:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350390AbiFUMDq (ORCPT ); Tue, 21 Jun 2022 08:03:46 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E822B243 for ; Tue, 21 Jun 2022 05:03:43 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id cf14so9275069edb.8 for ; Tue, 21 Jun 2022 05:03:43 -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=20hOXgHS4fSMKzf2+VEVhuMt/xTY7rwW+BkuR688jQI=; b=G0fDoM6iYkilX2J2us0oDAnu2OXLTFoGwQGcIQ61gW+KroUP3F34RD4BJ1IlsFeOKi 8f8+8bvCxI+BjoQhqGDC8Bmih/uM2UMNh0HfP5LHcTP5thFbXw57Wl/JjRk3EIaphPgC /r9iH8r0MZLQ/ZiseG3jh/J+adm1eZ8inUGHNLerNsDK1bRyGyI9t7y5tTAvDDVdeB1B xwLgffZMmNEJhBSsXCtiJaQ53o6MWqYnFwBx1ozBtod/JlyyMz+pR8DZEdtPNbe/8IO5 pZskEbg504lpOOtekPsnMcsUaoBfJ2WNfNfE5rDxevNShYsJWXp++OGVY0izxGKuJIRl k4pQ== 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=20hOXgHS4fSMKzf2+VEVhuMt/xTY7rwW+BkuR688jQI=; b=H9bf6yEuco2heIyon0GWEV5s3uLOUNTxdajnICfG7aLVNmblSvgUk1uoeL3SO43j9B Cn0tTqv/K5vfW/tDQSr4+kauU1IWe16WgflO6IAZ8DZm6IqouDfQXoPMsXX9przzBS04 3Ot8O2DWAQEJrtDl8dWJV3QnOFnPiFQkva9SMqavffyg6+6KCkj2pv9Mr8PSUiIir5qT JR5CF0Ugok7Mr8uez1X+LktWmtdlswmaown2YO8PEeT0uUU3XL0xU+9seOxzXqoj0NsW MaNPgToDhrt5tPI95MkqSJNWerXwZOc1gnKkYt+pvjN666U+4y/0bYZYnCUFhG9hkPA/ 08WQ== X-Gm-Message-State: AJIora9j9+K8ZlHKkWEIA+00HUlR3UZjAwuLOw90Ddt3khzsxmtea0R6 b3FI56hXwjoos5Cwy9hzA2tDtw== X-Received: by 2002:a05:6402:3689:b0:435:95b0:edf2 with SMTP id ej9-20020a056402368900b0043595b0edf2mr3480378edb.279.1655813021696; Tue, 21 Jun 2022 05:03:41 -0700 (PDT) Received: from [192.168.0.220] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n12-20020a170906840c00b00706c50870a0sm7470520ejx.194.2022.06.21.05.03.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jun 2022 05:03:41 -0700 (PDT) Message-ID: <3e02909d-131a-7899-f02b-fa0afcbef1d9@linaro.org> Date: Tue, 21 Jun 2022 14:03:39 +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 v2 03/15] dt-bindings: leds: mt6370: Add Mediatek mt6370 current sink type LED indicator Content-Language: en-US To: szuni chen Cc: ChiaEn Wu , Jonathan Cameron , Lars-Peter Clausen , Matthias Brugger , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , linux-iio , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , dri-devel , Linux LED Subsystem , devicetree , Linux PM , USB , "open list:FRAMEBUFFER LAYER" , ChiYuan Huang References: <20220613111146.25221-1-peterwu.pub@gmail.com> <20220613111146.25221-4-peterwu.pub@gmail.com> <91e9e3af-8208-7535-1864-08744f934593@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 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,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 20/06/2022 05:07, szuni chen wrote: > Dear Krzysztof, > > Thank you for the valuable command. > > Krzysztof Kozlowski 於 2022年6月17日 週五 清晨5:09寫道: >> >> On 13/06/2022 04:11, ChiaEn Wu wrote: >>> From: ChiYuan Huang >>> >>> Add Mediatek mt6370 current sink type LED indicator binding documentation. >>> >>> Signed-off-by: ChiYuan Huang >>> --- >>> .../leds/mediatek,mt6370-indicator.yaml | 48 +++++++++++++++++++ >>> 1 file changed, 48 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 000000000000..42b96c8047a3 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml >>> @@ -0,0 +1,48 @@ >>> +# 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 >>> + >>> +properties: >>> + compatible: >>> + const: mediatek,mt6370-indicator >>> + >>> + "#address-cells": >>> + const: 1 >>> + >>> + "#size-cells": >>> + const: 0 >>> + >>> +patternProperties: >>> + "^(multi-)?led@[0-3]$": >> >> If this is multi-led, then you should reference >> /schemas/leds/leds-pwm-multicolor.yaml >> >> See other examples using it. > > In my opinion, leds-pwm-multicolor.yaml is used for external pwm > signals, and needs to assign an external pwm property. > But our pwm leds use an internal clock to generate the pwm signal. Is > leds-class-multicolor.yaml more appropriate? Yeah, I meant the latter but pasted wrong file. /schemas/leds/leds-class-multicolor.yaml# Best regards, Krzysztof