From patchwork Wed May 9 08:21:00 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: 135216 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5351499lji; Wed, 9 May 2018 01:21:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8JdQDrWyk9YpYtuaXPep19G+JA4zD+FZ6I841BS22q8eRVtzXaIJXJuH33+cmN9zVRBiz X-Received: by 10.98.198.21 with SMTP id m21mr38525815pfg.232.1525854074478; Wed, 09 May 2018 01:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525854074; cv=none; d=google.com; s=arc-20160816; b=QYNxSrx3c9zIrSNqVcAf3I46d6PA5RuPwCI7Yw1JOg+IF//CtLVllrI0SoZYAaPNFm 1SmeKFv/lNzFxrryVVwWRnbqiINbfuVMeA7R0nKPWhLHE00UpBlSOS0ykompVnP9SxR1 bMu9jrPyih/Dd0KpkaLBUTW58pe8csHOzEy8jhwN3ijgM5T7tnhP7PRsrcXKlV9q+k1j k8rbSG8Ljq+xex3aaIl6CHZh9nEKCoka3uKoph91PFk2qAjW23WXUBbREChkQH/Iorav y4kLkNMlJSqQLQnKzxO8w8nLkrtBN8Tc6RestkKEiwl49dh3+FjUSY7SlP52wmp9lXKY 4Ytw== 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=J2EQYfl2Ixe4w/iqZs4MqGt9LwzY8ucvd8/svD8W93k=; b=gYCHuOv5H2RwGhe3QB0nxgLjkjtYP52HVLoTX37WTTfYpyBOkK8tjDgrasPVfQPLxf aRb2ZRnODYbk4qwB+JflBtrckuv3V2nZQgr2wCRBT4ppia9KgxDR5dM0th9mt43VXU0C m1xnH0JEnjNqQu1rRFCCFvYrRw3qvbWYAUAi2GRERoizSsLQ4+eNqcfsEOODpkKhgFQa gjFxSUWuuK9PMBJfqIp6gGvpiZb+Ectwl/G8NOSC9La/IXyBJb2aenH8lM5t8mVpM3Ia Pra4Uq3/4+gMNp0EqY73xyCwi3pGKaDSanGyVxxLiGXqEP7bFDCvaP62NwORhYonScwR /u+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CnF50lAJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 u12-v6si26263986plz.563.2018.05.09.01.21.14; Wed, 09 May 2018 01:21:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CnF50lAJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933975AbeEIIVM (ORCPT + 6 others); Wed, 9 May 2018 04:21:12 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:41854 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933715AbeEIIVK (ORCPT ); Wed, 9 May 2018 04:21:10 -0400 Received: by mail-pf0-f194.google.com with SMTP id v63so25251450pfk.8 for ; Wed, 09 May 2018 01:21:10 -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=WNe7aQF6aTu+ozBhcfa5QB8bSmsSwDrkixdpDjU6W2Y=; b=CnF50lAJnBQVeb0m4RHWaX60S+UAGK9ehzaF1PO+T9rom5Cc2CyO9yUCXwbUN0WQwP N96V0XoLPolE0CcA58bDDkML9rQs8p/tUZQ1VC8JUSt41DUl3DKDRfoIAw22ViKspZMG EE9XVw4PrTtIMwXueLt7gm066pQSt3V5pC6jM= 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=WNe7aQF6aTu+ozBhcfa5QB8bSmsSwDrkixdpDjU6W2Y=; b=Z7FeaFCqWzinGXTK7/ILg2Pu3bbXo9cC8My5Eks5OMusLwLVRXIyR9eCxUcnCvMyMu lGeMhzFLR8VYgak2fCM74u3F5K4Fwehj0P7N2HUuC7SAkd3tZLo6aaUy2zzO6xeErYLX c4cXxmRi2nrdRZfNSiLwwfGSBy7M7OAq6+b+mC2bGtqmc2lBY/q6UEtTsOhoacoPitbp Oy/1ciK8EYunOgZk8TqKNL9PBDfksPilUA0hqXSfyDwNuOpqhLy4o+19dUnc07nmJHha z4vZX/IXPcm6VVuWSNN6srd+si57HEp2EGOouqX+M39IeVSOmIXfoMBMsMHkk/VWT2A9 Z5LQ== X-Gm-Message-State: ALQs6tAHpbHd7cz/3NXOEpd2I3Kb0UVk+t9nI1nECDvspTEYrh7abVxZ 3apwTHgh/lOx55N1h5LPo0udtA== X-Received: by 10.167.132.199 with SMTP id x7mr16251647pfn.195.1525854070177; Wed, 09 May 2018 01:21:10 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id h8-v6sm36872654pgq.56.2018.05.09.01.21.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:21:09 -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 v3 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation Date: Wed, 9 May 2018 16:21:00 +0800 Message-Id: <79934a1cf0b75920c982d60481a647fbb5c4c687.1525851574.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Rob Herring --- Changes since v2: - Add reviewed-tag from Rob. Changes since v1: - Change the compatible string to be one explicit SoC name. - Change the child node name. - Change to be upper case for the first character. --- .../devicetree/bindings/leds/leds-sc27xx-bltc.txt | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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..b3de7fc --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt @@ -0,0 +1,41 @@ +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,sc2731-bltc". +- #address-cells: Must be 1. +- #size-cells: Must be 0. +- reg: Specify controller address. + +Required child properties: +- reg: Number of LED line (could be from 0 to 2). + +Optional child properties: +- label: See Documentation/devicetree/bindings/leds/common.txt. + +Examples: + +led-controller@200 { + compatible = "sprd,sc2731-bltc"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x200>; + + led@0 { + label = "red"; + reg = <0x0>; + }; + + led@1 { + label = "green"; + reg = <0x1>; + }; + + led@2 { + label = "blue"; + reg = <0x2>; + }; +};