From patchwork Mon Jul 13 15:45:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 235470 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2951867ilg; Mon, 13 Jul 2020 08:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq7aqpiZitmo+Oq0xLsHEv+bnvrSemfmZBkKmsEJcy8pXi2ulA9rt/adEnwh7FxwvwM3yZ X-Received: by 2002:a17:907:376:: with SMTP id rs22mr373395ejb.47.1594655216693; Mon, 13 Jul 2020 08:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594655216; cv=none; d=google.com; s=arc-20160816; b=LLmYFqUd/G9GKET+A+niw71eWjvmM9J8UVahFTo90Ji7fiCkSz4mvser7EMb7su6DA 0+kGwhwd5EScMmfR+lpkg/3fJE5ceuR69iGTzDyJEp2LFGULLqp0DIkIJ2lMUqFBc0AC 7X+iD74nYpxZTnucaCnlzb9eR57cwrkEkeK0y77Q0ZhE8/ywSP1868QX01byS6sRZF5Q O69c5eqNCrMEvrTxHQnkRWkKFEKu9jNSV+D9QMeQ/sEI7xlV2f/KxDDB4NanuQezn4zP BjJgG4vxeIWkGdhcxCSNoQsuopBDETVkeRE8FFlAr+s1JTmHK4gxRfV9kmu4KWGQKkzf rORw== 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=nI1WykSuXzNrA+OiEhHT8fptabUcXeYaiJoIrmnxLZ8=; b=ANqkZXUQlxr++PuwfMRDI9Z2ljLXs6FOSGfV1weerzakHHVdx5lxG9VHgWX51n/L37 r1bLlreQARJfg3GEtOrIdDTFp+4DqeNc7QZ7Y17GUeiinfbVHXT55Oe8my57PumlM3oq 6UBosYYOJHiMVQWf9xK2CPGI5SFwW1zSLYnxg6Ms43ag1v1hk3VE+MNJg2dhqJI/VXit gdRipVwMyAPeiNP0dfR9XriQ5zrVcgy3bKwAezotNDdT0AxB/AWBX5H0JbdM6QRl+Dxo +0kocTuYhieqOt58vaJOq5NGRtTlgS7QbhUqv718pNZNEB9/6r+3wWEpVse/4Q3AK3iA wduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fl01gJ8L; 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.46.56; Mon, 13 Jul 2020 08:46:56 -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=fl01gJ8L; 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 S1729492AbgGMPqy (ORCPT + 1 other); Mon, 13 Jul 2020 11:46:54 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36006 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729884AbgGMPqx (ORCPT ); Mon, 13 Jul 2020 11:46:53 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06DFkdcH043774; Mon, 13 Jul 2020 10:46:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594655199; bh=nI1WykSuXzNrA+OiEhHT8fptabUcXeYaiJoIrmnxLZ8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fl01gJ8LuN9eMbpKgE4Ey77zjxU47U8+mkub25zo6rmEdmO54RFjsRagXoCtz/5xa KX2gMKsfX5Lt7Nr0op4zrm44ycOCNlFvTbAuza7Cpvps74iQcMhe/c5Zc2ZKItodEX +7gXQAtArVlmuVEw3N2nxWwXaCbn1tZeENr7aIQU= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06DFkdLt068161 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Jul 2020 10:46:39 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) 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, 13 Jul 2020 10:46:39 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) 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:39 -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 06DFkdIZ103659; Mon, 13 Jul 2020 10:46:39 -0500 From: Dan Murphy To: , , , CC: , , , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= Subject: [PATCH v30 14/16] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Mon, 13 Jul 2020 10:45:42 -0500 Message-ID: <20200713154544.1683-15-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. 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(-) -- 2.27.0 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>; }; };