Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4356672pxk; Wed, 30 Sep 2020 00:19:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYYYwua48QX8qoDHOO+wcDS3tOE8at3TaTz+I5zfZsH1rv3pz8tyzaOCkFJko3ERpFji6l X-Received: by 2002:a17:907:10db:: with SMTP id rv27mr1360869ejb.223.1601450360589; Wed, 30 Sep 2020 00:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601450360; cv=none; d=google.com; s=arc-20160816; b=zvH2DGWtLz4UuzzNkL+IVU4qeq+9pJqktqpsm8+PE7ByyrEt4jFkytORME3CARkCFf +ua5TRS5PN882N9EvxKcO90U/1Qx07jqogpeZjeb9VujGM8xGBuxI9A6TSsjoCR45Yid WY8mxoLtRjt+HOLS4AHpzWjNAoVJO3cl9v9goRVUZRaXRTarBqN76KHj8bog6jpx5Q9r Zumk6Hc9w8Jb3v4UTXY9B7RJb22eYStD8QoFXLqJ/WxMkdVXNQdIUbmLXEPfXF3yG8DM obA5TdFE9OoO1UM2hfBOsK2yP/ur3vjedcvivJ0WYVZrHIqoLDkeCNwQKpWDsCihGsUJ i93g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=psbw7i3MjIvoS2hf9QWQDtYAJuKq8vzar3Jam1ZH0Hc=; b=ZUVa+qX93n3HleWVoL3BoWSbC9sG3YjuBNRBM0F4U8n5RsrkbfI4WF5D6CDtM+Rp9A p+CsDoL1yAYjUOv9WjHyMcZviBlzAtCchkzoBM3w5uZ7eh/QvLhHmZkfX7q62/oIKZMi DUCmViQrhm8glYoE8DYoi9kDe1Q1gDg5KjLU9fqN0ZhqDNhxLnnVxVyk3a7Wb9Ms9rr1 NQ1hGfl5Mkd3NO68XGFWxl2pL/26TxSMh8UQ7ghaMoTOM8MnRzK+k00ckOl34dgr3vQk c14krCEoEcvJO3nhnUP8a/9LPmTcZibW59/XR2kJjEFTMplqZS91J42MEqKLxgooaElD P9mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bo38yM+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si441701edp.364.2020.09.30.00.18.58; Wed, 30 Sep 2020 00:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bo38yM+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728429AbgI3HSG (ORCPT + 99 others); Wed, 30 Sep 2020 03:18:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbgI3HSF (ORCPT ); Wed, 30 Sep 2020 03:18:05 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7F3C061755; Wed, 30 Sep 2020 00:18:04 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id e5so607974ils.10; Wed, 30 Sep 2020 00:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=psbw7i3MjIvoS2hf9QWQDtYAJuKq8vzar3Jam1ZH0Hc=; b=Bo38yM+jEIXzcswNHY6Gromdckl+k/MJVOjA1MHzuDkQoT9nQBpD0amEjmmzjtnVre sXXyFzsFmjOmI4EF68WdzDlaxszOdtuW7OMWv9OdjvZKyeBiPaJQDI/cN51W+owyDrX/ 2DKOi8S1lRxu/wgUVjp8SxE5C0YR8QKPvUeIbPoMiQUlMK0if16AAB5e7S5o3kRitlbk Y0DeD1ppuhY9LyV4A3RcfHyM+OfCvE9ZeCtp708rRlBlRft6cCmnnpMMzrRTrD8iwApe V1gheB01BXK8/vXN1zqZWpOhKbIKT46gN5o3cEslAAyfzXcV5qh9fk8CRfWnVU9c26nc Wukg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=psbw7i3MjIvoS2hf9QWQDtYAJuKq8vzar3Jam1ZH0Hc=; b=hU6IQNMe/DoIWiMslcqAEKpAl0pT6tJQQicaTw2Nh5OXkyuX994+PClFhR7smUhSjM 3dQR/IIC7X8h4U6P2sDJYDE82G7KwK17bhnwToMzMKrMM6dn1fzQWlE1AXvqgafdIgy2 d0nk8UuWmJf5pMpIiRtApkK5mnzwsCOzpx1tmnc+ECa7iVVotLjWvLQfWnAsFhvUZqqD H+kjr0g9enmPcbzE+kzA7yVXnFeZcE320rZZDfC/HtUqoiXb7cFRVhc13Z68I3Zkj3Ff SCVY+2HUVKAhttvygBNw2YEdvNGhFeEgqZKmz0oVpQgJooMpgW4BtEUaaFo1eSYlyEEE GtEQ== X-Gm-Message-State: AOAM530uOR4LkCeMwYMJ8HyuvVLYhzPJ+XreGkAzbBLPPk5jRw6qrLit p1nKicF2rVsZLFHbMRnkdU4fl8+VXM/+0P5quNKccEs2+xM= X-Received: by 2002:a92:1589:: with SMTP id 9mr960077ilv.292.1601450283511; Wed, 30 Sep 2020 00:18:03 -0700 (PDT) MIME-Version: 1.0 References: <1600865452-19649-1-git-send-email-gene.chen.richtek@gmail.com> <1600865452-19649-2-git-send-email-gene.chen.richtek@gmail.com> <20200928184423.GA3041988@bogus> In-Reply-To: <20200928184423.GA3041988@bogus> From: Gene Chen Date: Wed, 30 Sep 2020 23:17:51 +0800 Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: leds: Add bindings for MT6360 LED To: Rob Herring Cc: Jacek Anaszewski , Pavel Machek , Matthias Brugger , Dan Murphy , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Gene Chen , Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob Herring =E6=96=BC 2020=E5=B9=B49=E6=9C=8829=E6=97=A5 = =E9=80=B1=E4=BA=8C =E4=B8=8A=E5=8D=882:44=E5=AF=AB=E9=81=93=EF=BC=9A > > On Wed, Sep 23, 2020 at 08:50:51PM +0800, Gene Chen wrote: > > From: Gene Chen > > > > Add bindings document for LED support on MT6360 PMIC > > > > Signed-off-by: Gene Chen > > --- > > .../devicetree/bindings/leds/leds-mt6360.yaml | 107 +++++++++++++= ++++++++ > > 1 file changed, 107 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/leds/leds-mt6360.= yaml > > > > diff --git a/Documentation/devicetree/bindings/leds/leds-mt6360.yaml b/= Documentation/devicetree/bindings/leds/leds-mt6360.yaml > > new file mode 100644 > > index 0000000..a356a1f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml > > @@ -0,0 +1,107 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/leds/leds-mt6360.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: LED driver for MT6360 PMIC from MediaTek Integrated. > > Where's the PMIC schema? This file needs to be referenced from it and > that means it all needs to be one series. > Do you means as regulator/max77650-regulator.yaml? description: | This module is part of the MAX77650 MFD device. For more details "see Documentation/devicetree/bindings/mfd/max77650.yaml" > > + > > +maintainers: > > + - Gene Chen > > + > > +description: | > > + This module is part of the MT6360 MFD device. > > + Add MT6360 LED driver include 2-channel Flash LED with torch/strobe = mode, > > + and 4-channel RGB LED support Register/Flash/Breath Mode > > + > > +properties: > > + compatible: > > + const: mediatek,mt6360-led > > + > > + "#address-cells": > > + const: 1 > > + > > + "#size-cells": > > + const: 0 > > + > > +patternProperties: > > + "^led@[0-5]$": > > + type: object > > + $ref: common.yaml# > > + description: > > + Properties for a single LED. > > + > > + properties: > > + reg: > > + description: Index of the LED. > > + enum: > > + - 0 # LED output INDICATOR1 > > + - 1 # LED output INDICATOR2 > > + - 2 # LED output INDICATOR3 > > + - 3 # LED output INDICATOR4 > > + - 4 # LED output FLED1 > > + - 5 # LED output FLED2 > > + > > +unevaluatedProperties: false > > + > > +required: > > + - compatible > > + - "#address-cells" > > + - "#size-cells" > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + led-controller { > > + compatible =3D "mediatek,mt6360-led"; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + led@0 { > > + reg =3D <0>; > > + function =3D LED_FUNCTION_INDICATOR; > > + color =3D ; > > + default-state =3D "off"; > > + }; > > + led@1 { > > + reg =3D <1>; > > + function =3D LED_FUNCTION_INDICATOR; > > + color =3D ; > > + default-state =3D "off"; > > + }; > > + led@2 { > > + reg =3D <2>; > > + function =3D LED_FUNCTION_INDICATOR; > > + color =3D ; > > + default-state =3D "off"; > > + }; > > + led@3 { > > + reg =3D <3>; > > + function =3D LED_FUNCTION_INDICATOR; > > + color =3D ; > > + default-state =3D "off"; > > + }; > > + led@4 { > > + reg =3D <4>; > > + function =3D LED_FUNCTION_FLASH; > > + color =3D ; > > + function-enumerator =3D <1>; > > + default-state =3D "off"; > > + led-max-microamp =3D <200000>; > > + flash-max-microamp =3D <500000>; > > + flash-max-timeout-us =3D <1024000>; > > + }; > > + led@5 { > > + reg =3D <5>; > > + function =3D LED_FUNCTION_FLASH; > > + color =3D ; > > + function-enumerator =3D <2>; > > + default-state =3D "off"; > > + led-max-microamp =3D <200000>; > > + flash-max-microamp =3D <500000>; > > + flash-max-timeout-us =3D <1024000>; > > + }; > > + }; > > +... > > -- > > 2.7.4 > >