From patchwork Mon Jul 13 15:45:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 235472 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2951946ilg; Mon, 13 Jul 2020 08:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzZtPmOTAuswWfBLhSqHUb6U5VsAxnVOZG653GSp1WWN+S8fsyXTK+JvQZbK0MFknWmvPs X-Received: by 2002:a17:906:d784:: with SMTP id pj4mr318496ejb.405.1594655223082; Mon, 13 Jul 2020 08:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594655223; cv=none; d=google.com; s=arc-20160816; b=c6icwPi8mL09jjWYkoLHoI1tlp1hmzbKN8/VOffFrrtMiNCZJKgRd913XNFOkowM7X Dza+mR4fq+nrXrGMwEECSAF11QCe9zITmv8NXyMd6qYyunnZ1ihjGhJJtTwg4FpKDpzN Nn757ZPqGDlPj6jIbX5GDgnRFp7T5EXuWtAWqvKuGN1pSTJJcRka+mGEFbCv+U18aWx2 f58sPbOo/NHLrD/Nv5OIPHqCPoT1ThzEZZ9wJtTVWnYy6+2OUYa0sQg3OPOy9IBLWoXl XkrMXZDGlFSbuSOG/tu7zndEWyAHkkfnI4fS3lz8DT5lRW/tBhfM1eOejeZzh9+Y7RcP BqDw== 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=P76IZRkED7dQ4c2udzasJMAbjx+227B6ANM3Dbv8Q3M=; b=nqRhRahHcRSj8SWDpmjg39KEl4ajmBNR26l8sAOhEIXobL6JEnsZAJoCfy6x3xnJBB bfJRvIGZkzWwbkGX7tzqNHzlvp8+0lRSMdiRCv/whSkAVKp/TWGpRCxeBlvTyjDB5ReZ 4XOcR1RsPF4/qjXEsRQ/ohyUTMh5JJcqMqTBHd6+Z6T3jIAcaxx/R/w8BHdruuNSTGFV 2up6uDHkXgsYm5DY1OIkMPat76lHdwpjCNpVgTvVRZ+niGULXepQrJRmaqegLSUdkG0Y nBvDpjjydoNIq4ek1PL2S2yUAwfAgG6nAJr2Ut26ptayYXKI5G8DjppYohgnWcVNRFbo zxtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Hum+kIBi; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f12si9430221ejb.397.2020.07.13.08.47.02; Mon, 13 Jul 2020 08:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Hum+kIBi; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 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 S1729902AbgGMPrC (ORCPT + 1 other); Mon, 13 Jul 2020 11:47:02 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:55586 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729649AbgGMPrC (ORCPT ); Mon, 13 Jul 2020 11:47:02 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06DFkixQ019082; Mon, 13 Jul 2020 10:46:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594655204; bh=P76IZRkED7dQ4c2udzasJMAbjx+227B6ANM3Dbv8Q3M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Hum+kIBi6ah2BM1eYfUVl+vhY2UzV3m9c5SnYKfIA9YIXGLzN1WVmQmYWTBhsFe3f tmc3+aQ6meR/1/An98hZQIH2K/xnTJMY50QjME5rLfDChF7m3Yobm3MIpPwl9gXvAN fhU+IWnVPbBk2dK5h29hAlNU480IwN1EJO0iaGyM= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06DFkidk001481 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Jul 2020 10:46:44 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) 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.1979.3; Mon, 13 Jul 2020 10:46:44 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 13 Jul 2020 10:46:44 -0500 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 06DFkicd126530; Mon, 13 Jul 2020 10:46:44 -0500 From: Dan Murphy To: , , , CC: , , , , Dan Murphy , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: [PATCH v30 15/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node Date: Mon, 13 Jul 2020 10:45:43 -0500 Message-ID: <20200713154544.1683-16-dmurphy@ti.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200713154544.1683-1-dmurphy@ti.com> References: <20200713154544.1683-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 the reg property to each channel node. This update is to accommodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Acked-by: Pavel Machek Signed-off-by: Dan Murphy CC: Shawn Guo CC: Sascha Hauer CC: Pengutronix Kernel Team CC: Fabio Estevam CC: NXP Linux Team --- arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.27.0 diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi index 2b9423d55c37..77aa90640052 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi @@ -258,29 +258,35 @@ leds: led-controller@30 { reg = <0x30>; clock-mode = /bits/ 8 <1>; status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; - chan0 { + chan@0 { chan-name = "R"; led-cur = /bits/ 8 <0x20>; max-cur = /bits/ 8 <0x60>; + reg = <0>; }; - chan1 { + chan@1 { chan-name = "G"; led-cur = /bits/ 8 <0x20>; max-cur = /bits/ 8 <0x60>; + reg = <1>; }; - chan2 { + chan@2 { chan-name = "B"; led-cur = /bits/ 8 <0x20>; max-cur = /bits/ 8 <0x60>; + reg = <2>; }; - chan3 { + chan@3 { chan-name = "W"; led-cur = /bits/ 8 <0x0>; max-cur = /bits/ 8 <0x0>; + reg = <3>; }; };