Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3904991pxk; Tue, 22 Sep 2020 05:54:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3H6jcrDCLHq65+s46NcMc0zMJisfRIEpfJwggd+wn3udqtsTceP9ENNDCVu61tW+2nLxS X-Received: by 2002:aa7:c896:: with SMTP id p22mr3720665eds.382.1600779253680; Tue, 22 Sep 2020 05:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600779253; cv=none; d=google.com; s=arc-20160816; b=J5lI7xiFUljvld9YxtOx5AkCBeH2/lRHFfl8H/PgwwFcGVTH1N7asKeoppyKvMCgHu TPNxFQ1wQRffjwj0h0eeOxNdgn7d7sm9V7omp/989gJ0MXxY3D8aJ3nlsD0VdZV4aLju jbz2aPyw8oEh3UsrKon2UjD659x8HzhMbDhw/YBilisQU7CfSArsKo0LONTeMyfQFaK/ 6HyrRKlm4anVfk4YFLGppWw5fKHkWTKMxwZyTntTrNKdcuPzCp5dVk05OxkXKDMSEiNo GD4AOqJDzZyJ62xkS5YO24pZ4jXNqWirQGSmxK4kpWPMxC5QvMvRifTvxmBrBLUBxOPB 7E0g== 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=cI5BHwp+MlxCTXFP/uAUll4x2qI1gUgr+gdLHHRNN+8=; b=CSpucbDMM85ZS/ogW6wEt8nkL7mqb1XUJ5x53qaW2sGGuCfe5tm5c6TmqozFLJGsYY cRuIBnDGvUD2HfB0bcvuf8UEcYiBQx8dmw5MBDmZbANTqWUYcUtmflSs+LY4jMa4OFzw nwXYEHHd3Qjm+NjBqkTelwR3hCoi2mAhGiZrWykjFzJBOlfKWVhmb1hYyIxRA6K4R52D W/5JH8KcWpdy0S3Y/9jCAm11sz2dtRIRYGTyYy8TiA4S0v+zL0BtJmOzvGM09gkO3gmU 0nV3pCcivX61ksISW+Nrjcxk44vyNhbaOuKWLfJ1l4fdDK3QwYFoeCwoubZxHadwLr2p ZH8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dbhh2YTP; 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 d4si10583674ejt.59.2020.09.22.05.53.50; Tue, 22 Sep 2020 05:54:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dbhh2YTP; 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 S1726657AbgIVMvZ (ORCPT + 99 others); Tue, 22 Sep 2020 08:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgIVMvZ (ORCPT ); Tue, 22 Sep 2020 08:51:25 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2328C061755; Tue, 22 Sep 2020 05:51:24 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id z19so12339981pfn.8; Tue, 22 Sep 2020 05:51:24 -0700 (PDT) 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=cI5BHwp+MlxCTXFP/uAUll4x2qI1gUgr+gdLHHRNN+8=; b=dbhh2YTP65ilBwuzIUG81L5iMBu5AqRJHerUVn8gUQjr8ROkC9fqfxIe5q2deRvuoB Fu7pSH2QO4qvvNgmifzhXwaoVE4U9R6jOkipLPIM5T5msnN/R1xX1oWpB1UeEmo2YVYw 2BsUDMv/PlR0Frz12xTyk7bfqfnd9u72U2dfRe8HRZREwo/74JZSXNr4xrWyBcAPI7Lo Rkt5l3Oi/YKJI6qHv6ANbLHhnqF25WJnCsuPgu75gK2e1dHOlwmygOk2JYhT06gcwChD UgPyiC4DikJdbovTB7kWa4sQf/b7cYM5xIyS2dgGk20p0/vaIRiippWCuAAsLmJx2YpM rImg== 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=cI5BHwp+MlxCTXFP/uAUll4x2qI1gUgr+gdLHHRNN+8=; b=oZ5IYAXvze7r0XrPNMoRM6BA6lScczSIA6sNho04KDBseSw7NUlNClfLZGdnmb/PBJ oVIC5XGgwV15xS0VnXiBvLgzAx57PoJmPuJVgzrxmJhAO+bGzsqnH7pjt+9aBWHX2pkV F7GiOeaiP95R3KNC+yObDFV6FgqUn0OyERcfO1zYq+8qB+mxcy1L2JAQVUw5mGjrRnRS YgA/BhvDdfR4PZ55MgSWH/iMKHUfkWGvIhio2ophdgGSjiVc462Sw9PYcMmQ0kUmESJc vSXkquwATyCIeZF//53HWJpndZcP0H3U1M0eDRTC3DfbR/f6ziRRrjsDcVa+eMGkgyGJ cUIA== X-Gm-Message-State: AOAM531/7xq58mvEUBA2bjkR1TjzjW3OlaIUzE9WzFDmApAZSnv/lPFt O2ye9BkRRP9CJSCaqz8v5yA= X-Received: by 2002:a63:ce17:: with SMTP id y23mr3447908pgf.447.1600779084478; Tue, 22 Sep 2020 05:51:24 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:489:56d9:501b:f524:c013:2733]) by smtp.gmail.com with ESMTPSA id b18sm14995695pfr.4.2020.09.22.05.51.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2020 05:51:24 -0700 (PDT) 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 v4 1/2] dt-bindings: leds: Add bindings for MT6360 LED Date: Wed, 23 Sep 2020 20:50:51 +0800 Message-Id: <1600865452-19649-2-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600865452-19649-1-git-send-email-gene.chen.richtek@gmail.com> References: <1600865452-19649-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 | 107 +++++++++++++++++++++ 1 file changed, 107 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..a356a1f --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-mt6360.yaml @@ -0,0 +1,107 @@ +# 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. + 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]$": + type: object + $ref: common.yaml# + description: + Properties for a single LED. + + 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