Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4271024pxu; Wed, 9 Dec 2020 12:39:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZXGb6g3gzWNuHwipgNQuBM2+qWv48eHSdyww1S/CKgUa6I5I4FciEhCKnZSAZTYzK0QQ1 X-Received: by 2002:aa7:cd44:: with SMTP id v4mr3758510edw.156.1607546390942; Wed, 09 Dec 2020 12:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607546390; cv=none; d=google.com; s=arc-20160816; b=y8Lavj6MoTM3rGhz3iP4qV+mLNpTArx/E9MeysYcaUU2S3Sc0EjCBoS4sng/0O88Px DQAsrySB4nNckVgdL8g3jjVOjH1+Jk4Ytkj5byN3K052E08OgTuUNbhFxqxwQh/ow2Ce 0PngzDQzZGM4IJTVOjSdq89iiirbZRFcZGRm42vhVK2/b3F53fVOaKFFDvU3K47hkE07 J4mYuadZRlY8bIuJ9iG8+EKMUOGlCx0Rphupy8UiInBHjobAiKBFe1sqqrHGdhnerKl/ udhJAs0cQo8PeKi/WVAaVESkS55WkkoT5c2hRjQ+Fn1+sK6ML5y0vFhXRzQ95zKkMuc2 iIYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+pvzbHKq5P+CN5Drt0/pztOsI1TY4xEzgPuXa4sIK7Y=; b=riH+0CrqqdFyuJoJXnNHYEAFKrZAADHz6CD+b3Z8MdcZobowJbXYhvN5GIlGD6HTKg EtajPf+PnQylYwN98DJ6RT1IUaG2zXMeRqoxdQELgx7L84KN0vXVVnXM84MSOQKTP3Yw HIQ88Xf/uSnMUqiDXsGJVcBCWoWZBI0bEK+664frwRb9m7jcZiqRP+Lp1p9djBF7CuXh wuomzePtDTteKmiybYRq0lLSw1ZFvt7B9JBTXi+OHZlzy8+DHKQriu26NB+yLyLy6rCT w0teWm2HW3pL7f5g500PzpZ6Pa+oBpdCHF2Fs1cMo0BpiOFqehfZ35aAyjlrn+xrTBj4 C8vg== 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 v14si1298940ejb.322.2020.12.09.12.39.27; Wed, 09 Dec 2020 12:39:50 -0800 (PST) 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 S1730553AbgLIT7j (ORCPT + 99 others); Wed, 9 Dec 2020 14:59:39 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33710 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729464AbgLIT7i (ORCPT ); Wed, 9 Dec 2020 14:59:38 -0500 Received: by mail-ot1-f68.google.com with SMTP id b18so2618858ots.0; Wed, 09 Dec 2020 11:59:22 -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=owRw0KWslDkSOGupNtTLmDFEH2YcK7oBKc2H6inJ93GYYmY1a71abqyVhSgZ+P/dSV zT8M481pbEj/PqqVW3bwGZB5ieyoqtlJJO+BsRd7uoFMfyGfyKAqze3S/Fr1zQ8wRUv1 cSX8dsecdRAMrejJoP+NSSYhWahUfjVpJY37F/tYkGbeNAhfuVx7lfzU5aJJTusKsrE4 GXx/tY6oRID+T9AXzBvAJQSm9kWa+Y8qkjcmIhev/wQa4QN/Y98ODSlUyAWp1i4Wdxog yxsj73j0Kd6dMXmRXr4DMZto95dQi1UQmU4ROaCaOOkhbOxuKrDF/nXtejnudgp+Zi0S Q3Rg== X-Gm-Message-State: AOAM533U0fDab+D4cjJfbMpvORu8lEB0KqPN29QVP01jkQhjCBgIYGbM yETp0CvlqllubJphAL0tWeQjEVilPw== 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 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 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606906011-25633-5-git-send-email-gene.chen.richtek@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >