Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3895207ybx; Mon, 4 Nov 2019 04:39:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyeTaJVShH4GajH+D3gvv5RZMSpjNpOkA+l3st+l+n47mua6kseaWeJ2L+BGgRE5VfczQ6X X-Received: by 2002:a17:906:fc13:: with SMTP id ov19mr18667322ejb.184.1572871157833; Mon, 04 Nov 2019 04:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572871157; cv=none; d=google.com; s=arc-20160816; b=sNziyp1ZDu2L1mst16ipK5zE/sEelhHM9jlEdiLNpLchVr+C/uSR1jILvg9R97I4PY 5o/vRbCb82Z86EYIIQTVWh7JWRqjxc1CkzpUtJzbaTbnVIt+WK27kz0yes1BopQ1+p+n Ictf4HUY1SANOKMCp77FVXzvGVvJwyDzRcEAxibYcTlUf3Y5lpbOkl6Bbn+qPf/xAYXA zzIsf+vL86xBDPEgKrzS6VsIlRgfr0mMeNEybtHZU+ZWG0Rfg/pHraZqbc8p4/JaCDqq DGsULj01NoLAYXt6+tj96u54FvpSSQGZxYMys1phWT73NyNVZjorj66t94OMyt48gB4B Bn8w== 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=Qullg3/iDdm3fXb2oDGatHkWR3NFfKVfLUoihQpmjOI=; b=Rw1yZGeezVxbaKXB8KzA190VWgXH1PjiBpPyNii8lOjYJfmfuCAjLPQooYicPvRQVT OeAM2vN3hhzgv8Mfob3CLdmCOJG4xODBJ3ziCwH0P/qJvU/FOUmU+z5PRbzWtLCj75yv EKizcT9Z7YkSBIDMEz08yq+ynKY1nEY/pdB8k3ut0hhOMqfOJESAxzjFmFPX87cKQCRF 9QcUIiNjRexAo4vcH2OWXWUQ4R4yMLqOJph969I2tEyf7OThSRtu6Ch9cUv5tlgfq6Gq j5hKehTstgmdBKh2O1lEfPcn0i/7WXQ1RZhlMugXLBV+PCjYpsIdXmSfI6tNVbqIeRvH Bw8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=r+PPggqj; 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 d6si8192439edj.28.2019.11.04.04.38.53; Mon, 04 Nov 2019 04:39:17 -0800 (PST) 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=r+PPggqj; 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 S1728811AbfKDMiO (ORCPT + 99 others); Mon, 4 Nov 2019 07:38:14 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:47302 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727267AbfKDMiO (ORCPT ); Mon, 4 Nov 2019 07:38:14 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xA4CcAbd120160; Mon, 4 Nov 2019 06:38:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1572871090; bh=Qullg3/iDdm3fXb2oDGatHkWR3NFfKVfLUoihQpmjOI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r+PPggqjH9R5J4m6m/M/dXUQl2DDJoFhbTYNgmgzNBHXB50l9cLm7WSYZh2ydxYjA TVqk8dPik8s2uwoa7rD349DlingWZQpP2HCkLp2s8NweYs5cd84WdaTcLBBY5heqPv 01gA4KwbGFfFcYpI7wKYv0jDwInuTHOo6E2mowCw= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xA4CcAon128947 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Nov 2019 06:38:10 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 4 Nov 2019 06:37:55 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 4 Nov 2019 06:38:09 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xA4Cc9mV084607; Mon, 4 Nov 2019 06:38:09 -0600 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v16 01/19] dt: bindings: Add multicolor class dt bindings documention Date: Mon, 4 Nov 2019 06:36:49 -0600 Message-ID: <20191104123707.31930-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191104123707.31930-1-dmurphy@ti.com> References: <20191104123707.31930-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.22.0.214.g8dca754b1e