From patchwork Mon May 14 06:34:50 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: 135666 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1354633lji; Sun, 13 May 2018 23:35:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqxVIT084W8hEWjtofjhq+JfXhz5EIxGka8FsFmR6joqkR+9Fmo3eRsibGWzUBhMgbajJ8Q X-Received: by 2002:a62:bd18:: with SMTP id a24-v6mr8940631pff.30.1526279714698; Sun, 13 May 2018 23:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526279714; cv=none; d=google.com; s=arc-20160816; b=ejr33q4QzKQmbOpS3qAZGOhmy1n39YEgcgvRe7JbAl6Rp1QBIOv6vz9WV0W5xSQEO6 M83ALdBhNBlKLg4SgywitWvSqJlpDu6uzf3JLSVxMFhp5+uw+EbF+p3unbT+YOCcFHiA eN8ymg7Y5vii5uTfPmIUGf2SIReixRfm8JhaabDfVEYEyaUP2R3TnTRVKBQPLrgE4XAi JS0H+ewDX/+A6729B9QnKpYq4ROfZmN+P9WHVPaPpwKEi+akI1aXbg96ySEf5J4rjpn5 hjoUDGrmuRq45ciirRqMmaSWUaid4T5y7NxwR2aPhdKmVbKmfdpekOK2+6GjGtV/cHPI F19g== 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=/bfjD1r/FggVF4MgR2tB2OatMj51JbXQw4bDxnvXZec=; b=TzdELqIwWPMhzR6Y7jr+v30A1t9ejXc7h7fXEmoXuR4TSFEe0Yl1yGiRNc3YADxhRS neoc1eCz5vbJAacx2Y9hMGtA+EB0my60pcMQbeM0Af41yrtCJdSFGdf/Xv9CJ0uI7FA5 N5fEOULna4ESEUF4JIpT1uTx+f5Mln7cTwVZi3RJ31poVjSMxai26NZMztssbi+NHVFR UIlcbJoXQQc9bj49/lFTDJb1tkbMCKvlF1B4HvXA8Io1xz738XbVg4QAH0eceu3Qr8t1 BRoAav7rctsrb5MwSQwuaGBIJbc2Vn9SezzdBW4ULx5NOZmhtOC9vZ/NYATKWan3WAsQ 2jEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HKyhlpT2; 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 o13-v6si2986772pgs.491.2018.05.13.23.35.14 for ; Sun, 13 May 2018 23:35:14 -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=HKyhlpT2; 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 S1751780AbeENGfN (ORCPT ); Mon, 14 May 2018 02:35:13 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46672 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeENGfM (ORCPT ); Mon, 14 May 2018 02:35:12 -0400 Received: by mail-pg0-f68.google.com with SMTP id z4-v6so5027170pgu.13 for ; Sun, 13 May 2018 23:35:12 -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=/bfjD1r/FggVF4MgR2tB2OatMj51JbXQw4bDxnvXZec=; b=HKyhlpT2CD9wec5qqgffJHqPY2M41vMoM5PLHBfTJl0U1gbL70iRazqfE9yg96yCPe veJ8ZzTy+GlJbP34nSUklV9moU1iMROGHfT7yXlqLmGOW3r8dLYvyS5Kl2Z6kSleLw2I HW5yfQ+yts8m8FFFGBB5qRBAHPUesPOqiOe4w= 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=/bfjD1r/FggVF4MgR2tB2OatMj51JbXQw4bDxnvXZec=; b=lUCmo7UndMP4MowwlBmRsPznHVBYJPThXFC4JYjH1AOdtPfUspIZUtvs/SUJgBbuTJ 85kw3wLP0KIN8bgMeTpgs+ri92pOfqDVq3DFyMgqMdKmreE2icHrLewso5h4sMe3UMw9 zsd3mLvglCWw0h9b3/Tb5I5bOwBFBvSgRwkotvjR8twwY9mNHvPpvElYaao2S2nzv4+5 RQPrLR1VdpNcX+5V40mfR1ZS/if0pBSeqMjQDO7ZVZSNpXuCuoFE45RujNfKC2VemRVC jbcXesY/rb+t7gue5fgR/M6kCofPMrziMAbYghT8AbFUf7zAzFQKVGwlFKWvROYVkUWc zxKQ== X-Gm-Message-State: ALKqPwde+WxvOf4V/EQU4YaLHhPWIG++1xVGCPNtRLqJ8NyxF8DtQefa 3ZZOGtxPptVBgVoa0LBaKWKq0w== X-Received: by 2002:a62:a111:: with SMTP id b17-v6mr9154933pff.132.1526279712366; Sun, 13 May 2018 23:35:12 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id h130-v6sm17000383pfc.98.2018.05.13.23.35.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 May 2018 23:35:11 -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 v4 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation Date: Mon, 14 May 2018 14:34:50 +0800 Message-Id: <392631974080542c43b8e280a225d430d73b5ed4.1526279287.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 Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Changes since v3: - Fix some grammar issues. - Add acked-by from Pavel. 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 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..dddf84f --- /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 the controller address. + +Required child properties: +- reg: Port this LED is connected to. + +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>; + }; +};