Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5815387ioo; Wed, 1 Jun 2022 13:10:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyvAtecDp5KpnU892W9pL5Arlf+UbzQciN+J23TViBJgw9/aaUlSFyEZKWIzOZu0d3NknW X-Received: by 2002:a17:902:7e01:b0:15e:caea:d6 with SMTP id b1-20020a1709027e0100b0015ecaea00d6mr1168985plm.33.1654114234699; Wed, 01 Jun 2022 13:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114234; cv=none; d=google.com; s=arc-20160816; b=S7SyA3L6PE3xFjzwnRFlBWGNehAVLiEZaL2VsU5JX1wCVWYcUc9o7KhRVDhlubokfe GKYhWHmKP9/YAbrIDAN5cwMHljoreZ9frLA6Q+hP0cThcwJ2of/rFXf/HmxN+xoJZf51 PZ2lwuy3rkLwCUipphbUyJX6faWjQVkuMBe7y22P5ZkQChEr9mp4lVmAnUgMdOOMA9Uv xvkxin36w0+w1v824EM+JB0kfgf0lWvSn8asbi9ocCKJb//ISV04mgtamq/bBQFcMNAz WBjwVamqEFhD13Pp7+rdUdExjObvEmV45cweGsCjT5a547maIGkaeaWtQcV5rb6Ppwe9 tRIQ== 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=LnHG31HXQfKnbhGg7cjs5q5dHO7sV+EO7splsWy9LeQ=; b=AyKhXNvyOXsIEk4NQ2S1IHrBis/oK71T7TCFONNPmZU1U8zvSUyC9J51pg+BC+tz03 zcKnqtZXV4XmHI0Z6h95EvtjJ8VlbfaPmRrbz7SZ1x/t8tscKuVDhHb1KkDVe/se7HxU 9rxoLBgv3yHhI0I0S4T5z9BjYsNespBIJ3388sHi6ZTCBQK9xMvw+tCT4ORjUDHBdbsB pEeUZhDkAEI2BluXREN9ANFpbhdcQMDhYd/3kL5x9Ti359JQ+Px+IYUuEpz4GqdLs8Uz VCz6V+qpYp4gpDV6mUqf/ugORXTxmR11hz+ipUt/hner5IRX2tzXYJaNOIVUrI36PAgg I/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4bpmdn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x7-20020a170902ec8700b001649cfacec6si1719179plg.10.2022.06.01.13.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4bpmdn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B5532346A6; Wed, 1 Jun 2022 12:26:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347804AbiEaUiq (ORCPT + 99 others); Tue, 31 May 2022 16:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347793AbiEaUip (ORCPT ); Tue, 31 May 2022 16:38:45 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A973764CC for ; Tue, 31 May 2022 13:38:35 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id t5so19118807edc.2 for ; Tue, 31 May 2022 13:38:35 -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=LnHG31HXQfKnbhGg7cjs5q5dHO7sV+EO7splsWy9LeQ=; b=G4bpmdn50HXz387vl8R3y2JvcN1BMO8J4TnlELbvBC3hch09KoDJys8Gb1VxVKVfMp WF4/5Bl7r3o0N8kDIFXar10RdRAF2ERfMar+yaboTm27MUMOFUcQYMywTvJn4plszWu8 Ezu6XeSDZVZvjILJcLyo9KEkUpJBiujNlQNxKeqylfN4Z1m0gwC/cw2quZMAy9Tl2zNe 8VT/AW2zGVespv4TQu1Zz7OhJPEKNhKrS9X+3H43j6OKle3lQ4bHS3gfG7NjX7SzzA4Y 6dd+Ty88BqnmRjplgHfH6NgwyQ/L5t4nymBrZrAKk05FYWSm/8zJsHLfWc7dmq7YPoJ5 1mTw== 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=LnHG31HXQfKnbhGg7cjs5q5dHO7sV+EO7splsWy9LeQ=; b=ek9OvyQerccH6hvrqejNH+5pwnIh+aUrZrH8Lz4KKLDrjMfP0ypkXRqQx5o2Sm7di9 R5lTHt+iMuQklEO3Puoo/PeoHbchVIUeOwCuo8joRN0L3VnOA03nckKdmJoN/hinrFcs fGMYwzToBkZWoZMr9UaIZb6dmj5vXxwp8J/ed+biNifzN09n1RWLrSAdH2UFIA0+aCmJ Dz+9FDp0TEMayzu157xmN5kJ2T7AWovfkOBIrVaViA4bOcvBhB6CkMVxmIHafVWTuXNs J4oNOCjzK9+aYiTe9O4OGxXGfkXarZQRd9tTrvcIEedWqRSJBSeutU+MZSGLfP3hPtrI PR7A== X-Gm-Message-State: AOAM5301GYf+hKaLRdH3+ePp1ohYvfzyhYtA+lKOO6TVAPG2qLAXvJbn 0q1AaV58v8d2niVrcOannJLzSQ== X-Received: by 2002:a05:6402:1f0f:b0:42d:d4a5:a38c with SMTP id b15-20020a0564021f0f00b0042dd4a5a38cmr10987637edb.140.1654029514252; Tue, 31 May 2022 13:38:34 -0700 (PDT) Received: from [192.168.0.179] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id 12-20020a50874c000000b0042bc5a536edsm9094727edv.28.2022.05.31.13.38.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 13:38:33 -0700 (PDT) Message-ID: <0036b3f3-fdf8-4635-18e9-461b93a87f19@linaro.org> Date: Tue, 31 May 2022 22:38:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 11/14] dt-bindings: leds: mt6370: Add Mediatek mt6370 indicator documentation 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: cy_huang@richtek.com, alice_chen@richtek.com, chiaen_wu@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 References: <20220531104211.17106-1-peterwu.pub@gmail.com> <20220531104211.17106-3-peterwu.pub@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220531104211.17106-3-peterwu.pub@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 31/05/2022 12:42, ChiaEn Wu wrote: > From: ChiYuan Huang > > Add Mediatek mt6370 indicator documentation. > > Signed-off-by: ChiYuan Huang > --- > .../leds/mediatek,mt6370-indicator.yaml | 57 +++++++++++++++++++ > 1 file changed, 57 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..823be3add097 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml > @@ -0,0 +1,57 @@ > +# 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. > + see Documentation/devicetree/bindings/mfd/mediatek,mt6370.yaml > + 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]$": > + description: | > + Properties for a single LED. Not useful description. Just skip it, I think schema allows it. > + $ref: common.yaml# > + type: object > + > + properties: > + reg: > + description: | > + Index of the LED. The same, regs are usually not described. > + enum: > + - 0 # LED output ISINK1 > + - 1 # LED output ISINK2 > + - 2 # LED output ISINK3 > + - 3 # LED output ISINK4 > + > + mediatek,soft-start: > + description: | > + soft start step control, support /0.5ms/1ms/1.5ms/2ms. Why here you start sentence lower-case? > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1, 2, 3] This has to be in logical values, so in ms, not in some register values. Use proper unit suffix and enumerate the actual values. > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - "#address-cells" > + - "#size-cells" > + > +additionalProperties: false Best regards, Krzysztof