From patchwork Fri May 4 10:08:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 134970 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp648999lji; Fri, 4 May 2018 03:10:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZofx8zT+qtMPPJG43/R28ABcyqrzZXIjpUr4Ll+69prya82UiH4VPO3b9XemPNFTlNelhdR X-Received: by 2002:a65:538a:: with SMTP id x10-v6mr20645395pgq.181.1525428606134; Fri, 04 May 2018 03:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525428606; cv=none; d=google.com; s=arc-20160816; b=KKRGVT5wAqjLfS7pJXQ4OvFis4yWjScp3572g/RW/5IAXE06ekXBMrm+Box5dEge7T keZMeDryTKWCC5pTpkmwwErif77LWxzqX+huRk6HHrIPOn/avWHAVc6WAEy7EQ+T0Adu lLF/M0r+iz7I9/YfHk25uJQkqNXkdxTu5iUIcpIa4CJX0VzbgIEqpXL9oyB+HK99V8TJ DCL7+Y7KPuYUjdxjPlrVkRVAyN2TccdSDdsyoppo/fMSGrnyV8wblkRns4e1g7rBlmNV YjDVfrn7PABCyIEthNIMHpLpR7xjmvibVehFkUUirlv3kayXAIgZs1piHodVmVnTO5/W e+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Bo++MVkJ8KGb4KWtdQb4AzkLHNwd3mQU6I4uAJKloWs=; b=D99+HDzGv/x7K6jcrnV2F2MsCJGj6Vv7h4bNwv/i0WST2nTjYTVYPxRmUwCHamTW0o I4RJDla2jWtAwr2ZpCWhHYF1ZOKu0fpwZ172orh9qy9cvYh6tSDBXsIh1Qj4yrqKSJKU FSMETGlm8656MJ48Cks0gygDYyizUjPuOJQGdqAMndjqjqirwYPrPPO58zS02cnMnniE Iqj2WhpMwBGpywo1AzSAsgM0hIbCYeLkwSNJ7W2duQg1dYfiGT96vu2cMcBAX/DHq6ah Fs8qChZvQl3x6O47zaW9kC/v4fyztcGGqetNiciEcAfl/AVOIQ5X1MPukhpuGPbPz8rq qTMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6beUgq0; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z80si14121255pfi.7.2018.05.04.03.10.05 for ; Fri, 04 May 2018 03:10:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O6beUgq0; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751199AbeEDKKF (ORCPT ); Fri, 4 May 2018 06:10:05 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36184 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114AbeEDKJh (ORCPT ); Fri, 4 May 2018 06:09:37 -0400 Received: by mail-pf0-f195.google.com with SMTP id w129so11650418pfd.3 for ; Fri, 04 May 2018 03:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Bo++MVkJ8KGb4KWtdQb4AzkLHNwd3mQU6I4uAJKloWs=; b=O6beUgq0RIItaBWnJ6cVB3rfIP8Oav51fPIIdqNNxTiDtul+oP7ir06ipWGixwmEN0 RqRwViO7LCWFd22wbLWajzEutZDCWzr4A+RxlItB1VqGsK0/WAxEcXtYx8X94N+AvxXl l04tmKQ+SGP2ftwy8wjA5/I+4I4LmbkoaBGjw= 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; bh=Bo++MVkJ8KGb4KWtdQb4AzkLHNwd3mQU6I4uAJKloWs=; b=WnFYEjpalo9tcfPWTcsb9YmO94/wPJNpSkYAVw6DnqoNB1N0fltGDujDoc7nRa6ah1 1B+vYpiLhPIqdHJNLFXYPJqJM9ppladIGip5k+g7cFG0J/5EYleBkh9GIngsrvuCvNX8 i/MMVZbCvrN5w2kqtoaSEsnuqGtFysoq4n9NoQCds2MMztgQAvCJTgL/9dEzyLFlwHCW 0jK0wdoSGwSmPclq/Rilofnz+QtGk1reR1RWel/2z2+zMtM2KwmssLmBEbVZyIX7iw2K Ps0t+6msbkhNewIjrJUry7dK3MBVMxO2kUtGs6CYAkdFfgsE/U0ARumSBeLDvlar2WG1 DZgA== X-Gm-Message-State: ALQs6tCwkPIrKGuv/+EGR8oJj58qg+tqk/3gsElnbMfoFP1/KspHD9bH VkCQ7t9PJK+cqycY7/EWTuAKJQ== X-Received: by 10.98.138.193 with SMTP id o62mr26495343pfk.141.1525428577000; Fri, 04 May 2018 03:09:37 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e126sm31991269pfh.5.2018.05.04.03.09.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 May 2018 03:09:36 -0700 (PDT) From: Baolin Wang To: jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com Cc: xiaotong.lu@spreadtrum.com, baolin.wang@linaro.org, broonie@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation Date: Fri, 4 May 2018 18:08:35 +0800 Message-Id: <099f4075ec489e425b5f1e7668a078c05f0d8509.1525427961.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This patch adds the binding documentation for Spreadtrum SC27xx series breathing light controller, which supports 3 outputs: red LED, green LED and blue LED. Signed-off-by: Baolin Wang --- .../devicetree/bindings/leds/leds-sc27xx-bltc.txt | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt new file mode 100644 index 0000000..d4e267d --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt @@ -0,0 +1,39 @@ +LEDs connected to Spreadtrum SC27XX PMIC breathing light controller + +The SC27xx breathing light controller supports to 3 outputs: +red LED, green LED and blue LED. Each LED can work at normal +PWM mode or breath light mode. + +Required properties: +- compatible: should be "sprd,sc27xx-bltc". +- #address-cells: must be 1. +- #size-cells: must be 0. +- reg: specify controller address. + +LED sub-node properties: +- reg: number of LED line (could be from 0 to 2). +- label: (optional) name of LED. + +Examples: + +led-controller@200 { + compatible = "sprd,sc27xx-bltc"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x200>; + + red@0 { + label = "red"; + reg = <0x0>; + }; + + green@1 { + label = "green"; + reg = <0x1>; + }; + + blue@2 { + label = "blue"; + reg = <0x2>; + }; +};