From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, 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 94798C433E2 for ; Tue, 15 Sep 2020 15:51:22 +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 3746C208E4 for ; Tue, 15 Sep 2020 15:51:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0b7SNCxp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3746C208E4 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=2moZXt1iZ/dLuunPPNytY0nfAVhOODKosHgx2lLYNTA=; b=0b7SNCxp0xOrD6/bgyO0qrHgi WE1ee3UomHydzhgrKZwZBn72Zz6yNiKpcu7A2FZHrIVFHx3TJ2PjgqJ708ZFaaWYPbam+S6YM7X4v qRMQ9+bBijYweAQNDgGSSEyngtQbE6DrrMbmQTYHgbvF2DLylswSq66fLOpABQjGvxpEDtNmBZJuW GJGFrDjOX692qXbdtQPBamHdhr9ZnoyBEZcpWoqVr+eVFfG2bZKkgISlQc06LtfFZye5YqZOsLPpx 046swkzwgPYdRINUrPxIyesGG91dnRjddG2geiPNkd0Vxu9cqk9/rEnG2toMnezGRN0xUhspd3C9Z 7JZ11Z2vg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDEe-00061g-J5; Tue, 15 Sep 2020 15:51:12 +0000 Received: from mail-io1-f65.google.com ([209.85.166.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDEY-0005zX-Dk; Tue, 15 Sep 2020 15:51:07 +0000 Received: by mail-io1-f65.google.com with SMTP id h4so4614210ioe.5; Tue, 15 Sep 2020 08:51:06 -0700 (PDT) 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=2fs7SMwS/+kOOtqsTbeeObOSneugEnlEWVTIUPzi7/M=; b=aUK1SO5TB//RCOpRsheRzj9lFS6z6IRIJ/90985xfTgcw+XGyCkXmCx2q07tsKn+zt kx3F/1vieU5Rd6MKoSyazo9fadcKN9WIM5WSK6zyEFEhAI7ULEbepa9PexkzN2KLG31e EWP2t2H0JKtpoib8Xd4pGVsUlIQfzsR1wcurFtQ86Jc3ArwZcENw1khR5sh7ICxqBiUV wUTyYEHzP3bGRrs42BEUdi33J4PRaAeVtkLgHwyT3XgPRJ/lrUopZ9Y0xjPDhAx+JQr2 r6SH7AeL36w0Py5hnqsO501snCPTg5xDpa9AFXhNa9GasM0z4V7OQvL07xyURK30RWsA ATHw== X-Gm-Message-State: AOAM531egHPmrP1FNHT/Bmsn0J9gKmJ699QQ8hUv6Qv9y7kBqI8ij8zx Q2HLJvPI6fxhE+6Wc+G80A== X-Google-Smtp-Source: ABdhPJzMu3VnLfAfdGcQC3WYkoaqFWuwnuHMMcFql1ck4IO2LlmOdlqYTm35tPLkkqNHvjD2Mqi7mw== X-Received: by 2002:a02:ac5:: with SMTP id 188mr19022733jaw.79.1600185065853; Tue, 15 Sep 2020 08:51:05 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id a23sm7600985ioc.54.2020.09.15.08.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 08:51:04 -0700 (PDT) Received: (nullmailer pid 2013916 invoked by uid 1000); Tue, 15 Sep 2020 15:51:01 -0000 Date: Tue, 15 Sep 2020 09:51:01 -0600 From: Rob Herring To: Gene Chen Subject: Re: [PATCH v3 2/2] dt-bindings: leds: Add bindings for MT6360 LED Message-ID: <20200915155101.GA2003197@bogus> References: <1599474459-20853-1-git-send-email-gene.chen.richtek@gmail.com> <1599474459-20853-3-git-send-email-gene.chen.richtek@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1599474459-20853-3-git-send-email-gene.chen.richtek@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_115106_483735_51CA736C X-CRM114-Status: GOOD ( 19.16 ) 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 Mon, Sep 07, 2020 at 06:27:39PM +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 | 105 +++++++++++++++++++++ > 1 file changed, 105 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..72914c6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml > @@ -0,0 +1,105 @@ > +# 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. > + The LED controller is represented as a sub-node of the PMIC node on > + the device tree. > + This device has six current sinks. > + > +properties: > + compatible: > + const: mediatek,mt6360-led > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > +patternProperties: > + "^led@[0-5]$": > + type: object > + description: | Don't need '|' if no line breaks/formatting to maintain. > + Properties for a single LED. This needs to reference leds/common.yaml. > + > + 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 = "mediatek,mt6360-led"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { > + reg = <0>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + default-state = "off"; > + }; > + led@1 { > + reg = <1>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + default-state = "off"; > + }; > + led@2 { > + reg = <2>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + default-state = "off"; > + }; > + led@3 { > + reg = <3>; > + function = LED_FUNCTION_INDICATOR; > + color = ; > + default-state = "off"; > + }; > + led@4 { > + reg = <4>; > + function = LED_FUNCTION_FLASH; > + color = ; > + function-enumerator = <1>; > + default-state = "off"; > + 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>; > + default-state = "off"; > + 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