Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2136843ybb; Thu, 2 Apr 2020 13:57:09 -0700 (PDT) X-Google-Smtp-Source: APiQypL8msVTe5hu0lb0LLlPTHXgnlPB2c9mwMxx5LikO9DFh1kImgRt2vj1utxkd0mOjHkUnYy5 X-Received: by 2002:a9d:480b:: with SMTP id c11mr3746765otf.109.1585861028858; Thu, 02 Apr 2020 13:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585861028; cv=none; d=google.com; s=arc-20160816; b=p+xiSr/jlChu8/stw1uEb12U8VgUg8AllJ+iIQTTaMFZDdCKL1AzZQLrgIPatPjXKW 2Pfvyq2GohHQ7/dBH1bMDm/47rSWc8V7qKOxAPQgEQeF/V2YvOeJkpRxM5eAy1tU2nq3 rKPhSDv3WBdmlbmgcwgyIkB8hhLwtHk0cUhIOxr9zp+LL3godOrs+1oO8N+kxQT1EPeP JgTPTHrj/E3GsfdiGGT3aMaLoh8TtpLLIoAH1FgxrtyhCM4OA4Xzu5sB57qrQXxV+zy6 j9o775uo5qLSwu7d8bOarGahOhmsJkr7u4XAfFoxE3HU19nJU7IlGLV3FDYwJEFHTmng YBqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NYV50fzHy4fz8SE/IouUJBoUW3NYh0OXNkuUnT+9Gdg=; b=NefgpjlMmjDTQRbJdGY7+87PWc5w/tIY0Za2DWezfCyLN3mVSNuVUTOweJd76e9FDx kOHW1aJoVb64tAo3HRKHvr+LWiL37E52/CHOIgiocanT7Wvlp4QDrnwNG0EG2sfxoKs9 VJSxBGuyk1mAWnlFwWJXxYeDF/g+U8EdrdP6f4it8qvJL6gKgyXVEduK27U4hYFHt5vf iEER+EkOym5KbeaVf9uYwClLJrABqv11R2V1uK1HIDsDBFdFWgtkzdYe8+ZopFymVQCz abmt3ZpgtALKaM/Qe4QlC/lSvnLC2VpNHkb7nyq+CzsKU8ZLHxXr7Itddc7Z3boX2TNz 6NlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=d+6Kcmvd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si2881784otn.57.2020.04.02.13.56.56; Thu, 02 Apr 2020 13:57:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@ti.com header.s=ti-com-17Q1 header.b=d+6Kcmvd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389239AbgDBUtM (ORCPT + 99 others); Thu, 2 Apr 2020 16:49:12 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:59730 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732218AbgDBUtM (ORCPT ); Thu, 2 Apr 2020 16:49:12 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 032Kn98L031431; Thu, 2 Apr 2020 15:49:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585860549; bh=NYV50fzHy4fz8SE/IouUJBoUW3NYh0OXNkuUnT+9Gdg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=d+6KcmvdRF8zhTXB18QvehA7roQ6YdUG6BRSRTNloBDC9I4p/J9zjUeqQ+9o55evN d0DPLpqZOwQiLrYimdY45zhtTvrZrnlIMg46GjMV19ToFscmZraUvdAZYKROOPzDK8 gjx5+ZLSLERW3dSt9Nqy3X3EeW/UyVx8wEhJQ2MQ= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 032Kn93p033691 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 2 Apr 2020 15:49:09 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 2 Apr 2020 15:49:08 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 2 Apr 2020 15:49:08 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 032Kn83t086517; Thu, 2 Apr 2020 15:49:08 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v19 01/18] dt: bindings: Add multicolor class dt bindings documention Date: Thu, 2 Apr 2020 15:42:54 -0500 Message-ID: <20200402204311.14998-2-dmurphy@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200402204311.14998-1-dmurphy@ti.com> References: <20200402204311.14998-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings for the LEDs multicolor class framework. Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.txt | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt new file mode 100644 index 000000000000..4b1bd82f2a42 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,98 @@ +* Multicolor LED properties + +Bindings for multi color LEDs show how to describe current outputs of +either integrated multi-color LED elements (like RGB, RGBW, RGBWA-UV +etc.) or standalone LEDs, to achieve logically grouped multi-color LED +modules. This is achieved by adding multi-led nodes layer to the +monochrome LED bindings. + +The nodes and properties defined in this document are unique to the multicolor +LED class. Common LED nodes and properties are inherited from the common.txt +within this documentation directory. + +Required LED child properties: + - color : For multicolor LED support this property should be defined as + LED_COLOR_ID_MULTI and further definition can be found in + include/linux/leds/common.h. + +led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5024"; + reg = <0x29>; + + multi-led@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + color = ; + function = LED_FUNCTION_CHARGING; + + + led@3 { + reg = <3>; + color = ; + }; + + led@4 { + reg = <4>; + color = ; + }; + + led@5 { + reg = <5>; + color = ; + }; + }; + + multi-led@2 { + #address-cells = <1>; + #size-cells = <0>; + color = ; + function = LED_FUNCTION_ACTIVITY; + reg = <2>; + ti,led-bank = <2 3 5>; + + led@6 { + reg = <0x6>; + color = ; + led-sources = <6 9 15>; + }; + + led@7 { + reg = <0x7>; + color = ; + led-sources = <7 10 16>; + }; + + led@8 { + reg = <0x8>; + color = ; + led-sources = <8 11 17>; + }; + }; + + multi-led@4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + color = ; + function = LED_FUNCTION_ACTIVITY; + + led@12 { + reg = <12>; + color = ; + }; + + led@13 { + reg = <13>; + color = ; + }; + + led@14 { + reg = <14>; + color = ; + }; + }; + +}; -- 2.25.1