Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3764923pxb; Tue, 17 Nov 2020 03:01:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNylCPIyYaRWS9hC7EEzIJ0HEVG9uemJ6kLBsshUdqOMrl6/FlQLQ9bDzvR1HIeNJYtqgW X-Received: by 2002:adf:eb47:: with SMTP id u7mr24151535wrn.163.1605610880046; Tue, 17 Nov 2020 03:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605610880; cv=none; d=google.com; s=arc-20160816; b=wmRfxCvc3Sip7+1TxbxcmqQvfZrxQPfV9goqqJjOmowF4KOfQbrOhIZxlBsxQoCwls 8iI0m/3lW+4vNfo2UGjReprra/bM8oSlT4eVH9i+Xq7aHL+oOyJ8kpWA9lTth6QQ147D +NdHI7uOcVxtYcFCmi2pZUlrDk5gUn7HdQ6tJ1BpgUvf1Q+3FGAZoIX44vslNheP7oFB S3dKekmgXlEqMdOA/LGjpjAdG/SeBklOeMtXCYrdiakZGSTYmxf7vQ2rYBF8BmIaFnRV KYnOwoRkid37OIrhFhXke+5fJtJyfQEdGiDYs0IYETXPBDy7p3z2uaDCHebJeKi38ynR Bk0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=UFOkrqv8D0s1VQZofj/qpSo54qwXq6P87Ff6S5jSme8=; b=crE6tfzZrPl2MYPw/kFjn1K7nj26Y6vTGKyn5YEqG1/j8bDO4DIWpUaeQ/awuM2HIb ZcwYDdiRt1pOvCjPsV72kwtZAxBqyQcHIKLCQ/hVikEtxnLmQvH5+CD4pecU6eU1jekQ gXKSDzvyJrrntbc+Xx636WxSKoNZOxqw9EUOiBFzYoPrVIesK1VNyHA3Q8hMfSQuL/PQ l+sAlCnB9zbLCwMgJ/hDSJogwomClIBzFjluQletWDQNvB+8ejbZD8WeQg7NTsov3+Zo PnqBrGt/zL75AcSrO1KeOgYyWIoLFAqWR/ArfHTGbhHXZA9Ea/mh+BZt4WFFycauBTfG p9xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6m6c3KY; 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 k7si13666564edo.371.2020.11.17.03.00.56; Tue, 17 Nov 2020 03:01:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6m6c3KY; 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 S1728293AbgKQK5k (ORCPT + 99 others); Tue, 17 Nov 2020 05:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbgKQK4Y (ORCPT ); Tue, 17 Nov 2020 05:56:24 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9BCDC0613CF; Tue, 17 Nov 2020 02:56:22 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id 131so6517423pfb.9; Tue, 17 Nov 2020 02:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UFOkrqv8D0s1VQZofj/qpSo54qwXq6P87Ff6S5jSme8=; b=Q6m6c3KY7pGQ+ilpM3l0lEmH+UZi2wZFw+i5xy7iyvdZWORiDerPbWfF6J9y9Uoe9Q wgPxwa4WBA0tImifzXp3519UCgPTrXClHdjz8zeNuQN6AfF3zq6p9sqPT2PEaxGVfZPQ wh9CbJD1LdvQOZjZm8TEtyCadT+UMORRjJNju3okVd4rnsWY9MfRtJ3zoBw5TwP4d42T nGKPlVw5cr+V23C8mshzV4qXmL6VbGkMD1IGozE01Jw+bcUP8VAWEWl2Gw4GWwCSe9xz x4nMBfSB9pAE7KWUhAIOlx37hx9nODCCiP827xE1LdRvjmbHQ0E4kwjdtYp/ubhRHc6j zn4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UFOkrqv8D0s1VQZofj/qpSo54qwXq6P87Ff6S5jSme8=; b=FqQE3+lQU//J+7Gw4lGjRfwsrSL4ZSSbj7THRNbihhEmICRu6JoEhlhsCi7QYCmyFE XkZ225Gw26NRU1uzmgw2Zyc/185L2qPZgYvVL0L13IQ98NF1lE0e2TxKt0eIid8vgBqh Ct11XXrFNNxa25P3SBrbl3wzgtei6I1KDmy6XF89G4eZe4YoRtln+Xpo9vay0ai7jQhT tV7TPIJ+fZUxRTXbZrMxBE1j47cpbAll+OPPr7BgAiENjdMlrdjW0YcbmPre4E4BfiHI 9BHTJ2JeujSe4rhhI8FENzG4ClDeX5275jXbkxnCTHM6YkCsfitDfJAqhf6fyS8iR/cW GBlQ== X-Gm-Message-State: AOAM532WEPUMxhVk44oUr29nS4Z0ZMYN9CdvAK1vHlRz5JP2qp2s9mcw L43IrBo1dolsdFR/32qebYQ= X-Received: by 2002:a63:da18:: with SMTP id c24mr3089153pgh.12.1605610582267; Tue, 17 Nov 2020 02:56:22 -0800 (PST) Received: from localhost.localdomain ([2402:7500:462:32e6:3119:2966:5eda:751d]) by smtp.gmail.com with ESMTPSA id j11sm17708214pgp.82.2020.11.17.02.56.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2020 02:56:21 -0800 (PST) From: Gene Chen To: jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, matthias.bgg@gmail.com Cc: 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: [PATCH v6 1/2] dt-bindings: leds: Add bindings for MT6360 LED Date: Tue, 17 Nov 2020 18:55:36 +0800 Message-Id: <1605610537-18085-2-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605610537-18085-1-git-send-email-gene.chen.richtek@gmail.com> References: <1605610537-18085-1-git-send-email-gene.chen.richtek@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Add bindings document for LED support on MT6360 PMIC Signed-off-by: Gene Chen --- .../devicetree/bindings/leds/leds-mt6360.yaml | 114 +++++++++++++++++++++ 1 file changed, 114 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..871db4d --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml @@ -0,0 +1,114 @@ +# 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-6]$": + type: object + $ref: common.yaml# + description: + Properties for a single LED. + + properties: + reg: + description: Index of the LED. + enum: + - 0 # LED output INDICATOR1_RED + - 1 # LED output INDICATOR1_GREEN + - 2 # LED output INDICATOR1_BLUE + - 3 # LED output INDICATOR2_ML + - 4 # LED output FLED1 + - 5 # LED output FLED2 + - 6 # LED output MULTICOLOR + +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 = ; + led-max-microamp = <24000>; + }; + led@3 { + reg = <3>; + function = LED_FUNCTION_INDICATOR; + 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@6 { + reg = <6>; + function = LED_FUNCTION_INDICATOR; + color = ; + led-max-microamp = <24000>; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + led@2 { + reg = <2>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; + }; +... -- 2.7.4