Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E610BC4167B for ; Wed, 9 Dec 2020 19:59:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BF4023A1D for ; Wed, 9 Dec 2020 19:59:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BF4023A1D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cEIsmxkE0JX9lRbh4moGgGXIqHOIujoeIWfKaWUXXIs=; b=ZJ9dRG22VWrKJ1lrEBFn84V4K pp0tWKun4QmPEi9uuAkHZLsFiolTJFJmHMu5gmp0d/zoEXrvmegw2w2tfAYWABVCehdqF+zqabEOX 2bekqiotSy5zrTgOqa9YjQfBX2EUDhcwzVikV0bpnTcSQYfZPPE7VFUhUdiMuucz/FySgL+mWs3YH KCE4gEq5+VYIYcEqlDo6HBmmi2JyUMhXO6s1i+DRgzSQkiBmtPC/yhcdFCT8UzwEi6bKbMGAJoiS3 wHjRSpWrDLk7bjZULr6upNBcEUPYhaxzK8QG2b8Wz/aXxac6OvUBW0fIE/9Zd0n/ILbA0E/Bva/sV MzzY+aSvA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn5c6-0008Kc-6L; Wed, 09 Dec 2020 19:59:02 +0000 Received: from mail-ot1-f67.google.com ([209.85.210.67]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn5c2-0008Jx-1K; Wed, 09 Dec 2020 19:58:59 +0000 Received: by mail-ot1-f67.google.com with SMTP id w3so2598342otp.13; Wed, 09 Dec 2020 11:58:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+pvzbHKq5P+CN5Drt0/pztOsI1TY4xEzgPuXa4sIK7Y=; b=tClRm3sOOHBtk2sX5mcsT6TrS/nXRU0YUAzhzJumWO0WMx4CjE2NT/qVHf4MgfNy1/ NOoOUGuWhaswstCGss+rotYxPgiCZNCBkSq8ynkttsqtJfOx7ffM2D90fsLd8h4FmxYz aQS07Cbfx66TYoGBmDP55Y8tcYSwLEj+pXHsO4O6+HA8QmYK6ChW5HqW/t55TdgDxCMw 4WxOJadrJycuoHBgIZo6iS4JqRIx/b/p1+mxY7DhPpiMtk9edsuTyVB7QUkhBYPwC3MY I8lp9HJSHO4HjAjMuoQw6tYeBj54DGypS69RAsC7ZotFSoLKuEdrNG9cLLXHhcwWDEV1 DZdg== X-Gm-Message-State: AOAM531KkYRwMHMGwIJmA+VYwzYyp/28mdnezj0gilESXWkLVb/HCqDZ vfei51uIrVz6gTfhNoZP+w== X-Google-Smtp-Source: ABdhPJxEVPLrdafqyzcpp1ev7QPjSU0+xop7tvZS/JozmphNa69mJdgiNkDOfyS6uPvlK984SZ17uw== X-Received: by 2002:a9d:7304:: with SMTP id e4mr3236056otk.228.1607543936929; Wed, 09 Dec 2020 11:58:56 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id i82sm506208oia.2.2020.12.09.11.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 11:58:56 -0800 (PST) Received: (nullmailer pid 844417 invoked by uid 1000); Wed, 09 Dec 2020 19:58:54 -0000 Date: Wed, 9 Dec 2020 13:58:54 -0600 From: Rob Herring To: Gene Chen Subject: Re: [PATCH v11 4/5] dt-bindings: leds: Add bindings for MT6360 LED Message-ID: <20201209195854.GA838381@robh.at.kernel.org> References: <1606906011-25633-1-git-send-email-gene.chen.richtek@gmail.com> <1606906011-25633-5-git-send-email-gene.chen.richtek@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1606906011-25633-5-git-send-email-gene.chen.richtek@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_145858_139632_2843FC2D X-CRM114-Status: GOOD ( 17.54 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, cy_huang@richtek.com, linux-kernel@vger.kernel.org, gene_chen@richtek.com, benjamin.chao@mediatek.com, linux-mediatek@lists.infradead.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, matthias.bgg@gmail.com, shufan_lee@richtek.com, Wilma.Wu@mediatek.com, linux-leds@vger.kernel.org, dmurphy@ti.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Wed, Dec 02, 2020 at 06:46:50PM +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 | 159 +++++++++++++++++++++ > 1 file changed, 159 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..73c67b1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml > @@ -0,0 +1,159 @@ > +# 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. > + > +maintainers: > + - Gene Chen > + > +description: | > + This module is part of the MT6360 MFD device. > + see Documentation/devicetree/bindings/mfd/mt6360.yaml > + 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]$|led)": "^(multi-)?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 ISINK1 > + - 1 # LED output ISINK2 > + - 2 # LED output ISINK3 > + - 3 # LED output ISINKML > + - 4 # LED output FLASH1 > + - 5 # LED output FLASH2 > + > +unevaluatedProperties: false > + > +required: > + - compatible > + - "#address-cells" > + - "#size-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + led-controller { > + compatible = "mediatek,mt6360-led"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + multi-led@0 { > + reg = <0>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + led-max-microamp = <24000>; > + #address-cells = <1>; > + #size-cells = <0>; > + led@0 { > + reg = <0>; > + color = ; > + }; > + led@1 { > + reg = <1>; > + color = ; > + }; > + led@2 { > + reg = <2>; > + color = ; > + }; > + }; > + led@3 { > + reg = <3>; > + function = LED_FUNCTION_MOONLIGHT; > + color = ; > + led-max-microamp = <150000>; > + }; > + led@4 { > + reg = <4>; > + function = LED_FUNCTION_FLASH; > + color = ; > + function-enumerator = <1>; > + led-max-microamp = <200000>; > + flash-max-microamp = <500000>; > + flash-max-timeout-us = <1024000>; > + }; > + led@5 { > + reg = <5>; > + function = LED_FUNCTION_FLASH; > + color = ; > + function-enumerator = <2>; > + led-max-microamp = <200000>; > + flash-max-microamp = <500000>; > + flash-max-timeout-us = <1024000>; > + }; > + }; > + > + - | > + > + led-controller { > + compatible = "mediatek,mt6360-led"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + led-max-microamp = <24000>; > + }; > + led@1 { > + reg = <1>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + led-max-microamp = <24000>; > + }; > + led@2 { > + reg = <2>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + led-max-microamp = <24000>; > + }; > + led@3 { > + reg = <3>; > + function = LED_FUNCTION_MOONLIGHT; > + color = ; > + led-max-microamp = <150000>; > + }; > + led@4 { > + reg = <4>; > + function = LED_FUNCTION_FLASH; > + color = ; > + function-enumerator = <1>; > + led-max-microamp = <200000>; > + flash-max-microamp = <500000>; > + flash-max-timeout-us = <1024000>; > + }; > + led@5 { > + reg = <5>; > + function = LED_FUNCTION_FLASH; > + color = ; > + function-enumerator = <2>; > + led-max-microamp = <200000>; > + flash-max-microamp = <500000>; > + flash-max-timeout-us = <1024000>; > + }; > + }; > +... > -- > 2.7.4 > _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek