From patchwork Mon Jan 21 21:56:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 156252 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6848694jaa; Mon, 21 Jan 2019 13:57:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN5o9EPGzlGK8OO9OLdqmcp04oRQMaXdkvd65VnItdnfDtYH9jEJwDSB3agSbll1/Qy1dpvn X-Received: by 2002:a17:902:28c1:: with SMTP id f59mr31745147plb.37.1548107828667; Mon, 21 Jan 2019 13:57:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548107828; cv=none; d=google.com; s=arc-20160816; b=P7j2PZIcs6FB188ay7a8GK/vyMb9yeSigsVGSDfRtj6n1BxJN56HuUIBkANGmKpQHE XkINmQEOcN96wN/iE96MsFF/0eD6/2EAYie5JqxQZ1tjjVG2NeTU6+A0TwGwMH+ixm2e eDrH9IpSTHXD0HWosLxpzv3uc/Uwioti/H0rUhCP1BgRv/ghIFF2sUXxjTbtIMA+dDI7 4zI7AzWn3pu1X77wV7fvFsY36CJYCaSSzJFydciPVqq2cmIAUNXeh4kg52qKULEzdXwj ueIeMqo/kkS3R4UwIEMSkmgHnsv88pbVXvXLvDdqnPl69q8oQcfwgJc6hJkp9Qox64cz 927g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gVbHm6NjtR0uqlq38Ijt0M1g1n0Ufx4QUl0hap9n3Wc=; b=F/wRgpcXGXxkmPeQH9+LS3CUDukXT6yPlOpxCMUw8OHjUm9+eiclt52m/YmYY1riC9 rJ2gubwgkWAm/x80dXrrd/4LDrgF3WK2FvYkuO22yXU49e3JPiIVer2heBTs/2Bs7Go0 4paaxqv205E4YFGGao+4q/cBTJ+BGl8xZRrMTTwuqRfp0/XNgkWBUh0x36B5HqXSVcjV g0Nqbx8lF3DkwdrrFJ2wOcui56DNFqo89Zx2pdXPIfCzVU67XRELnTh5FJWq96J7plBt 7urYCIiwUEsI1SQlr26qbnaF3JqJT4tvFL2+jTHNLx4nJnPQAau1lDSpaAoxbD+iE3Wx 3yoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HkBquUu5; 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 9si14124932plc.40.2019.01.21.13.57.08; Mon, 21 Jan 2019 13:57:08 -0800 (PST) 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=HkBquUu5; 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 S1727798AbfAUV5H (ORCPT + 1 other); Mon, 21 Jan 2019 16:57:07 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:58852 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727457AbfAUV5H (ORCPT ); Mon, 21 Jan 2019 16:57:07 -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 x0LLv3LV114961; Mon, 21 Jan 2019 15:57:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548107823; bh=gVbHm6NjtR0uqlq38Ijt0M1g1n0Ufx4QUl0hap9n3Wc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HkBquUu5sJ7kBIAmY6uwKaeR6Pzlz4eOGCqvEFVkNdbOETR2W7qkm2bu7lIVnxNEm zKC81iUL6VJVyXwfax0GOj5gkNROBJgtWnKr8YeJRjJB3Ict1HJVdyAzZp9QDZtjV5 CPaTHMV6bkXQvs/AnrApE4cnG0Vl4HoGfmFNmsfQ= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0LLv3QB081619 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Jan 2019 15:57:03 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 21 Jan 2019 15:57:02 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 21 Jan 2019 15:57:02 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0LLv2R8009410; Mon, 21 Jan 2019 15:57:02 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.78.123]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0LLv2U20724; Mon, 21 Jan 2019 15:57:02 -0600 (CST) From: Dan Murphy To: CC: , , , Dan Murphy Subject: [RFC PATCH 1/6] DO NOT MERGE:dt and defconfig Date: Mon, 21 Jan 2019 15:56:54 -0600 Message-ID: <20190121215659.31125-2-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190121215659.31125-1-dmurphy@ti.com> References: <20190121215659.31125-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 Signed-off-by: Dan Murphy --- arch/arm/boot/dts/am335x-bone-common.dtsi | 58 ++++++++++++++++++- .../arm/boot/dts/motorola-cpcap-mapphone.dtsi | 8 ++- arch/arm/configs/omap2plus_defconfig | 7 ++- 3 files changed, 68 insertions(+), 5 deletions(-) -- 2.20.1.98.gecbdaf0899 diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index 456eef57ef89..c36f623375f3 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -255,8 +255,62 @@ status = "okay"; clock-frequency = <100000>; + led-controller@29 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "ti,lp5024"; + reg = <0x29>; + enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + vled-supply = <&vmmcsd_fixed>; + + led@0 { + reg = <0>; + label = "led1_mod"; + ti,led-module = <1>; + }; + }; + + led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rgb,framework_test"; + reg = <0x30>; + + led@0 { + reg = <0>; + label = "rgb_test1"; + rgb-sources = < 0xff 1 2 >; + rgb-white = < 0xd4 0x01 0x16 >; + }; +/* + led@1 { + reg = <1>; + label = "rgb_test2"; + rgb-sources = < 0xff 3 5 >; + };*/ + }; - cape_eeprom0: cape_eeprom0@54 { + led-controller@30 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rgb,framework_test"; + reg = <0x30>; + + led@0 { + reg = <0>; + label = "rgb_test1"; + rgb-sources = < 0xff 1 2 >; + rgb-white = < 0xd4 0x01 0x16 >; + }; +/* + led@1 { + reg = <1>; + label = "rgb_test2"; + rgb-sources = < 0xff 3 5 >; + };*/ + }; + +/* cape_eeprom0: cape_eeprom0@54 { compatible = "atmel,24c256"; reg = <0x54>; #address-cells = <1>; @@ -294,7 +348,7 @@ cape3_data: cape_data@0 { reg = <0 0x100>; }; - }; + };*/ }; diff --git a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi index ddc7a7bb33c0..42aafffcb3e4 100644 --- a/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi +++ b/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi @@ -117,6 +117,12 @@ vusb-supply = <&vusb>; }; + led_rgb: led-rgb { + compatible = "motorola,cpcap-led-rgb"; + vdd-supply = <&sw5>; + label = "status-led:rgb"; + }; +/* led_red: led-red { compatible = "motorola,cpcap-led-red"; vdd-supply = <&sw5>; @@ -134,7 +140,7 @@ vdd-supply = <&sw5>; label = "status-led:blue"; }; - +*/ led_adl: led-adl { compatible = "motorola,cpcap-led-adl"; vdd-supply = <&sw5>; diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index 9c6f436d1b12..a4e7159325ae 100644 --- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -453,8 +453,11 @@ CONFIG_MMC_OMAP=y CONFIG_MMC_OMAP_HS=y CONFIG_MMC_SDHCI_OMAP=y CONFIG_NEW_LEDS=y -CONFIG_LEDS_CLASS=m -CONFIG_LEDS_CPCAP=m +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_CLASS_RGB=y +CONFIG_LEDS_RGB_TEST=y +CONFIG_LEDS_LP50XX=y +CONFIG_LEDS_CPCAP=y CONFIG_LEDS_GPIO=m CONFIG_LEDS_PCA963X=m CONFIG_LEDS_PWM=m