Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1028799ybz; Wed, 29 Apr 2020 13:42:16 -0700 (PDT) X-Google-Smtp-Source: APiQypIvrHoeYxUzDb03cZv3tp//WLns3nmBX+SnPUDP2bLGPidRMH8OzLHQPHXinTcd4TnfrVyx X-Received: by 2002:a50:b961:: with SMTP id m88mr4278317ede.4.1588192936157; Wed, 29 Apr 2020 13:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588192936; cv=none; d=google.com; s=arc-20160816; b=OX4vBK0aNjj9FYX6fJG+BTGhgYmhyrre8UerWdJUoNpIlkH8FHYG5ixm4GDQrF5Yhl 4rin3P2aKQmN1tc3jYjOmHH/T2C2SOB8UYcKNOPb7nlILA4c4ySR+vtxh0YLDZMp28VV aWLkmX1xuNuWee3PYEb0v9B/UFULcJrf1zDpJESzk1BvVfSu5wDh0SHJ1UvPXu9XUXY6 YQUDNo5hxYWDwcUFksM597YkzQG2lOr8qSWhC3nUORY4vV0ZbJRR7Q/jCjWLvheqBnV3 mt2GJt8bZCjnDbna2SKpPDEX2lEEWSv2GEkTKJdzi4VXWgS9HdS2FhAjSp29rbSFYPyr CaNQ== 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=JVuHq7/5uZf9v1Kex9j0T50EFcRdC8TXzYwYmMtLpyk=; b=xDbFPbtU7WjBbPsHO9/QvvWG6NE+uVEbjMl2vIlQ4oLL8Zscx7/+qQQsXbcVdsQK/R ww0gUoKThqeriTVAXImcbqWOr/gHvNv7JDiLpnLcCr+BihU9CVBZOk7JmJKvAQRjQ5YR nsERk+6cPMXfJ4a1TDWjgURNJBvUeLYY7k/cUdJ1zb65pbbyh8RCVPEf4dk6bC+ppN2E W3Z1LSKnoGsS+0TcbJB/xK7piDNb8L8Psy1Pb8L+9HYfKYUEZUrC18VdgxKo/LYC2dml 7BVa9mPDjiU2eVA1mj+X2v06POOD324Qry/oufo0roFT3gLYwPR2DWjVzKkLGY/4BVT1 eLLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Tc16Wqqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e25si5001520ejl.159.2020.04.29.13.41.53; Wed, 29 Apr 2020 13:42:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=Tc16Wqqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727996AbgD2Uhr (ORCPT + 99 others); Wed, 29 Apr 2020 16:37:47 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50560 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbgD2UhI (ORCPT ); Wed, 29 Apr 2020 16:37:08 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03TKb1JX008726; Wed, 29 Apr 2020 15:37:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588192621; bh=JVuHq7/5uZf9v1Kex9j0T50EFcRdC8TXzYwYmMtLpyk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Tc16WqqsEt/M9rvZjWWsCxz908OPMDzDos7Rn7Hdxq+HDhBxQ5RkDXKL4IhE/P7ur YbUG9uheCI9WofwJbA+r5TJ78/GG3HVkRoxsGJVwWYIoAQ6QN+bSZuYXNXcxzqcQ6g aHniSSQR/oRG6jOpdqtXWV/R9N6ggYOLSQriq6pQ= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 03TKb1E4057201 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Apr 2020 15:37:01 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) 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.1979.3; Wed, 29 Apr 2020 15:37:01 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.1979.3 via Frontend Transport; Wed, 29 Apr 2020 15:37:01 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03TKb0o3129110; Wed, 29 Apr 2020 15:37:01 -0500 From: Dan Murphy To: , CC: , , Dan Murphy , Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= Subject: [PATCH v23 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Wed, 29 Apr 2020 15:28:07 -0500 Message-ID: <20200429202816.26501-8-dmurphy@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200429202816.26501-1-dmurphy@ti.com> References: <20200429202816.26501-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accomodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy Acked-by: Tony Lindgren CC: Tony Lindgren CC: "BenoƮt Cousson" Acked-by: Pavel Machek --- arch/arm/boot/dts/omap3-n900.dts | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 4089d97405c9..ebe93b06b4f7 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -618,63 +618,74 @@ indicator { }; lp5523: lp5523@32 { + #address-cells = <1>; + #size-cells = <0>; compatible = "national,lp5523"; reg = <0x32>; clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */ enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */ - chan0 { + chan@0 { chan-name = "lp5523:kb1"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <0>; }; - chan1 { + chan@1 { chan-name = "lp5523:kb2"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <1>; }; - chan2 { + chan@2 { chan-name = "lp5523:kb3"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <2>; }; - chan3 { + chan@3 { chan-name = "lp5523:kb4"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <3>; }; - chan4 { + chan@4 { chan-name = "lp5523:b"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <4>; }; - chan5 { + chan@5 { chan-name = "lp5523:g"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <5>; }; - chan6 { + chan@6 { chan-name = "lp5523:r"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <6>; }; - chan7 { + chan@7 { chan-name = "lp5523:kb5"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <7>; }; - chan8 { + chan@8 { chan-name = "lp5523:kb6"; led-cur = /bits/ 8 <50>; max-cur = /bits/ 8 <100>; + reg = <8>; }; }; -- 2.25.1