From patchwork Mon Jun 8 19:39:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 187619 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp5141092ilo; Mon, 8 Jun 2020 12:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL+2XMZjcMjsgpit2MJGYRtwa7+BAb0k2w9UtntpBFTPv2iFDaJ3mx9lwbyb6FG2w/GOCK X-Received: by 2002:a17:906:d923:: with SMTP id rn3mr22772077ejb.261.1591645247885; Mon, 08 Jun 2020 12:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591645247; cv=none; d=google.com; s=arc-20160816; b=v4TgyH3+gOiQz+l8QR1uU0B1pX1P3F5UdO57BiPyxA7vouWFUAp51ntdtUEuJD7/96 LtofTq2GGlIxzJSQk4yvq5y6ct5w2gcCF46jOX7HVeNAOAa3QMwVM/IDASk8w8TCXr4M Mwn26mRpNa40fcKjRkOQH5CsrNb5lnHe+dmsBvZqGwUANV+++MO/Rn1QWatFDEFQA6dm qp7px9LnfQ0Ptj9ZXFwuVsFD8RkQchKVD8h2Sc+HWFrOCSxzqcXik5XujekH8nbr7V6c Po3xocP/I1O1fDPg7f2lR9FV/p6lNX6R8wBO7OHMHcUXr1g0Glzx3nazMBmI9plBuaxm 6YZA== 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=Jf6MKK966/6Olzk1qJChUoSjiHhXr8OEtTXC2DBLRbo=; b=uTEma4UZwwShVkJ8y2QtYAF8ideM9u8PBQ20IbelQdklA2IbF/hStjwE/nxKObTbbX eR7xX9hOo+YARPS6xBi7bg25epkjvSQDQD1UAr9jmJcBPC4dGqFs/nFW595nUtAff6X7 +s+/xtvFypU3AYnyMeHPlAfw5vkNoOOXb/I1QhbLXAnVO/nKYXwGt1XDLrBvRTtDbzJi hGjHXhsWKBt6ZWUPyAFB1tVONkBj90v/CN+jb2K3nFlOGwV/6wmnoUhxzR46y8x2i8/t vu2pXXcQ6WwkkKo+SjnEsHVEi/xHxEsx/9loyIBiGDLavd0smcRZP/Cc2uUIaWTxOCgq ZNIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aH+ynJQ8; 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 b23si10061256edj.441.2020.06.08.12.40.47; Mon, 08 Jun 2020 12:40:47 -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=aH+ynJQ8; 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 S1726700AbgFHTkN (ORCPT + 1 other); Mon, 8 Jun 2020 15:40:13 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58344 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbgFHTkL (ORCPT ); Mon, 8 Jun 2020 15:40:11 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 058Je1Yq102401; Mon, 8 Jun 2020 14:40:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591645201; bh=Jf6MKK966/6Olzk1qJChUoSjiHhXr8OEtTXC2DBLRbo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aH+ynJQ80n+suOapwfIRSa/974qomRMDb2TLcci80YCC+iJ9I1ranO1kVjYQeuVXz t3dgu6GR072S/2P5n+YV8OYeAVdSIkKWrtfU2ebNtajixydFuoJVtSZ+xFSGYafTRC ZOSQiG46Dh2o0MytJgEtOhg2dA9IgySEgteV7A70= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 058Je1iQ108926 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jun 2020 14:40:01 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 8 Jun 2020 14:40:01 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) 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, 8 Jun 2020 14:40:01 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 058Je1Kg062377; Mon, 8 Jun 2020 14:40:01 -0500 From: Dan Murphy To: , CC: , , , Dan Murphy , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: [PATCH v27 08/15] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node Date: Mon, 8 Jun 2020 14:39:10 -0500 Message-ID: <20200608193917.13084-9-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608193917.13084-1-dmurphy@ti.com> References: <20200608193917.13084-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.26.2 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>; }; };