Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3298965pxk; Tue, 15 Sep 2020 15:49:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHZ1iUdYjO1aChuou6NW9ZHK2u1VPdHtxYwP09NG3iuo8YLsTj+yoJ0BQ/VYp0TcOLXXfM X-Received: by 2002:a05:6402:a51:: with SMTP id bt17mr11447889edb.186.1600210176487; Tue, 15 Sep 2020 15:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600210176; cv=none; d=google.com; s=arc-20160816; b=wU8tOxU99BtYJvxDJJW94KseAmThwdeTC6ntGAF0DI/gEtgj3QSsLOyOecflwqECvr W2dKFnX+fDEjYrCL32sy7L0+7WtSzBAeK8pp25y3/OS6GEenjCiBUofZuYj7JNKQfBSa dXiy+tv1upd/kAUQLYotrb16/x/+dgnENYfT7KHVqrWMdYwL3DxcSIoyAK+QtwKog2Oi rWYbxmtKu0Zss0sZxu3qGWCr/jdXnLD9WqMy//slJF1xPvRUfDix6MIWQ/1R4nvz1Dly 2fUaglcr+xqk0PopMykuX1UdjCZUjLDei4csOgNWSoy4keTGVbKGzy3M2vVtzPFMTW4E 9DOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2fs7SMwS/+kOOtqsTbeeObOSneugEnlEWVTIUPzi7/M=; b=dMXIBSmbZO3aRbkEmzUaW4qb/xF0sjvKQcYsFPr3dGWINR+h9QbmizNFTeWH01iZyC yGOMeC1ZtoY67rFO0DgIZu8XeP1RYBdJOfMURMTAC8o6MPT2ZUWbwBWGK7wpk9R82Q1P Gmqv/NmQhEotAy76ecucK2ea9gfebPEP549IH6CKkjY1nRBf/1dCEUjoaU3wFc7+PRxd yn/AnbL7KecvAgsqeQIXTP3AmTpko+Hp0JiTOqUZqbRyZ4CxKf0RAjNlUdWCn/NsUClV 50ZiyDh5ET2uqubvjnO2AOjqdLFlmOMWjxUW160xcGFbTG8IVcGLZbpoRCuiVgqp2iU9 tOxA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si11279771eja.484.2020.09.15.15.49.14; Tue, 15 Sep 2020 15:49:36 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbgIOWqe (ORCPT + 99 others); Tue, 15 Sep 2020 18:46:34 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:35247 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbgIOPxm (ORCPT ); Tue, 15 Sep 2020 11:53:42 -0400 Received: by mail-io1-f66.google.com with SMTP id r9so4631228ioa.2; 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=mYPxP3+zoN72jtvbR3yoTLrZS7IgoynqekRfcs5HAKHailfSmYWgOzXN5vyMHNnofg a/j/dQCy6QFKVcd6Zi7dlEHPeAoZIm0vrhaYHaWuCfFLqs/06u/UdfKpRCTwQhI64KrJ eDIbwli2zvswkjmBElLVdfmTOej5OdNvn/6lVFPdUGl4JYB1mWp8F9v+TYK4UHs/NBjE YXYtd8LklH8OQ6QNhZbROoViPccvOet/yRroEye6l7MQevdXGM45wAildFjExcsT7jMZ cgOtE/8DoQKajLwJZC6bBCsKHPFDk8vWgIRpE9ZoZQUDZZtaskAc4K17QPzUMQVmmnjM SJRg== X-Gm-Message-State: AOAM5330M3gDLZItOnGiwEcHyvr9IvxKUrX82zTarkSgyAK9bNl6VUo0 /p6MjSI77Tokli0v1qpSLw== 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 Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, matthias.bgg@gmail.com, dmurphy@ti.com, 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, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1599474459-20853-3-git-send-email-gene.chen.richtek@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >