From patchwork Thu Sep 19 18:36:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174088 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1376519ill; Thu, 19 Sep 2019 11:34:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAZlyuLU2p4Stb3F71pWLTtWktiUwFHXYxTOShB733bTSegjCE6lr+FsNi3d3ntsH+Bq5m X-Received: by 2002:a50:e701:: with SMTP id a1mr17982350edn.108.1568918052676; Thu, 19 Sep 2019 11:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568918052; cv=none; d=google.com; s=arc-20160816; b=mbiUZnEnFvvheDOnO7jAdsXcNP5TDInbhTUDmaNoDfyLZq4Tv1z+LrHVE/ZfjMy0cT 6JsUPHlgbrfnUJwi6ZEaBhsfstCXz48LGWmHQMVQ2Rt84TQkGp+oN3mApgiET7n6yB4I 9vHrck/CwX3zKzS8bXe27VG70pCxWFyBcs0M5N2qxPZ7LrmcyeKCf7bCh/WiqVlwI/D+ 3uHuCqT+65sqq0tBvQf7kH2QHMkg8LhKTZXhu2sV9cmVg45wyZCO2UAa5Vn8LZWTD8Fx Btet7S8sm/ye9CF8F80Co630L8zrvgvrnKnE3uyad5c9OBHssII+P0ZRKbfcDoMiAlAr yQpQ== 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=Bww3DmLPInN+74zzf9x1fHcHAM7PHNA7A5KdfU8oS5o=; b=myridaEFrhx4ntoMvEGtK6ui3Xdlyp1FKHmYM9hItMvKd1p+bbzx2d6zTz+gHuTZ2I llxsrPbfcaOjWTdXgT8YczWMKv5YsQ+JG5wXXliTvlIeovr2jrU0txh+ZJcixmxzrdAT HW0Irbw7Vt1si3yDfmiiCeGbIoExXJCdQPwRKMYE4TcfUhnlOCoKT7X/2tCebN0a0nN/ emMqdtqZNvvWtpbWSoNXHnYqTQvzXbHH3YrGLCpwyii9Stsf/x48oEiYhm8rvkUNVBhl n/TdJYYyL1fNdZUhQwsuB7/J/8oN4feOsoW/mwD6JhJJ07h9GWv4BrN0w9kUt2tAdYib z5dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n4O1iT1Y; 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=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 gg17si4380335ejb.294.2019.09.19.11.34.12; Thu, 19 Sep 2019 11:34:12 -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=@ti.com header.s=ti-com-17Q1 header.b=n4O1iT1Y; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392083AbfISSeM (ORCPT + 1 other); Thu, 19 Sep 2019 14:34:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50534 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732834AbfISSeL (ORCPT ); Thu, 19 Sep 2019 14:34:11 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8JIY7eo112792; Thu, 19 Sep 2019 13:34:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568918047; bh=Bww3DmLPInN+74zzf9x1fHcHAM7PHNA7A5KdfU8oS5o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=n4O1iT1YlS2WTKwziF0THN0iEeeF+N/P5gRPN6pQ28CvqCcC1rzr+88oBOiv4bc4L 7AwHGNO2ZhBnhIxbbN1I3Nb1o3uiSaGyieTz2JiUD2BRMKOB1TKdiFp3TvqvOZ4VWa dN2H6P2ihpvkcemt5PB7KL9EnOi41JBBYqwPneB4= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8JIY7Yd107070 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Sep 2019 13:34:07 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 19 Sep 2019 13:34:03 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) 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; Thu, 19 Sep 2019 13:34:03 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8JIY6q6034168; Thu, 19 Sep 2019 13:34:07 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v7 3/9] dt: bindings: Add multicolor class dt bindings documention Date: Thu, 19 Sep 2019 13:36:51 -0500 Message-ID: <20190919183657.1339-4-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190919183657.1339-1-dmurphy@ti.com> References: <20190919183657.1339-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add DT bindings for the LEDs multicolor class framework. Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.txt | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt -- 2.22.0.214.g8dca754b1e 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..215d3c90f351 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.txt @@ -0,0 +1,95 @@ +* Multicolor LED properties + +Monochrome LEDs can grouped into LED clusters. These clusters can provide a +visible output that have a wide range of colors and intensities. + +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_STATUS; + + + 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 = ; + }; + }; + +};