Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp49074ybp; Tue, 8 Oct 2019 13:51:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI8gI/tagSXpgqQnrJJhcc5RAfJjihgLvOdiJi2kbQhbpfMVwwgSXkJ5Lf6LW9Rt58oCe/ X-Received: by 2002:a17:906:81c6:: with SMTP id e6mr30313861ejx.284.1570567865482; Tue, 08 Oct 2019 13:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570567865; cv=none; d=google.com; s=arc-20160816; b=FkHUAuJ5nyxGScxuQbkDltXjFa/ZTTG6lrGMdT8LJf1p0OTFP1jPQEQEH5XippCbwg 8T0Ldo+19AnLUobxuP4rrhmkWszvXjU67EbW5WZKExIPiunajjDjZf8BqbSaGpdJZGAw jLoV91SNWWZ0a/wKFA3feMDddqqXYI8bkr9CW4UeH9JxElOa7dmX7yH25EFjrOOpLvvk LKMcU1cSJDUNVI7LUAy+pSOWMtmN3fOj9hHzj+1uNasmyu0NIdQp430VDjFScwNwBdpv 8Y0SFn6JeD3CzVG8kHt+gNK5olfHhoYbpgYoIw3rd7L6+BnQUueaMBEPmBUSBsLYPPH3 XVBg== 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=U/CdL3ky1UgHUUHC2UlJw+Bp+HRLVkYO6pdXvDYGyfg=; b=uoaDU2QRDsxGprBgk4QK9P7FuZ7V+HChA4AMdcizMt6bbvCtYkLOdAFu4az5o1yOck A1aUThsWk8TmTVDNSXc2ygfyqub/FVk1RWIFz4/mIllFr7oCEtXZpv8vXgjaJzzrhzMB xypAhL2WObQub+2hu3fnhec9aPd/gvsddcgYGnggaLNBvmVGH9M0jorfJiw3lTSFAShl 3Octch1iejDrmGXx9QBsfaYjNoKibjrfyzBEQajE+gcLKlvJAqmKXgVAPBdIXe8e/mh8 7LLTxtYyjoiqZKyzT7VAE/NIjYjlz6JR5+vhuXmGmWzBVYELTBPVulNRH2apN8XDAOx3 oyqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YiRkzoaN; 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 g15si114619edm.349.2019.10.08.13.50.41; Tue, 08 Oct 2019 13:51:05 -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=YiRkzoaN; 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 S1731333AbfJHUtN (ORCPT + 99 others); Tue, 8 Oct 2019 16:49:13 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:43362 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730873AbfJHUsY (ORCPT ); Tue, 8 Oct 2019 16:48:24 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x98KmJLD092455; Tue, 8 Oct 2019 15:48:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570567699; bh=U/CdL3ky1UgHUUHC2UlJw+Bp+HRLVkYO6pdXvDYGyfg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YiRkzoaNhMOK8w4ftTS/+h9j/q5yNpDnDt2+h8huFK2tR/BspQ21vaWoD8IMjtWLs +uWZu4xfb9BwsldpXlumHg5nArih7w2bjkVJeHcn2WX1EXQE1V8oKN1z6MCkfr4uIq IGC3XCx7rDTBGkh6Beyyt1p26NkjB4ZEOmcFBulk= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x98KmJe8042335 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Oct 2019 15:48:19 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 8 Oct 2019 15:48:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 8 Oct 2019 15:48:18 -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 x98KmI5w022723; Tue, 8 Oct 2019 15:48:18 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v11 01/16] dt: bindings: Add multicolor class dt bindings documention Date: Tue, 8 Oct 2019 15:47:45 -0500 Message-ID: <20191008204800.19870-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191008204800.19870-1-dmurphy@ti.com> References: <20191008204800.19870-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..8619c9bf1811 --- /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_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 = ; + }; + }; + +}; -- 2.22.0.214.g8dca754b1e