From patchwork Mon Jun 15 20:15:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 187957 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp3052641ilo; Mon, 15 Jun 2020 13:16:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXAAZtbYFhFeJH1ApsCBGLHnoI+fskJDJ8w9tBd+rXMK1CLIzx6r8u0zIide5BGIxZWZnS X-Received: by 2002:a17:906:e115:: with SMTP id gj21mr26092120ejb.528.1592252192456; Mon, 15 Jun 2020 13:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592252192; cv=none; d=google.com; s=arc-20160816; b=UQ84v1NkkUwmyNaVHviY/W2CXrjEaBqm3P+ge0dJuVB0SXXHrhWrNlEWIgeRYfWGtA Pdi7l6ZDXJyYqzDwTeAwHJeF9NJhvX+LVe3bmwfH6JMwf7csCEQSqag6Ybt1uQyj9jWm 52Gnq2PuZGCZfU8vUAWGyQocI619Tt6OQF3eQ5iMlpCvO8ydoxEKU11Rr1wOrDIPPojU titDUdjLvXB/KnAZldVaDKjxyWU38WlRZNDSu5WSt17mpuqZRyP96JC3uSkKtCdhP59T LDx9lPzJS8EOH6aStOdM60+8MUblUVxvILzOuvemx2QMRQqC8cUuIDTFwlbFHPfPLwEW dWBA== 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=8IVrLn2oGajwW9HenWpKeQ4KhS7i7iRwTrL7dy0Erd8=; b=WM8gZs/0zc/HdWzbyK321LDv3E31car1pzxZLEslz1acD/vH1Ct/zutu6bJ2j30RB+ i7EI3toQTPvFQcZIO9Hi5mDugnar1SEWDPqGNKe78inK7XVhabJjCqF/jP1EKCOeKaYq aT6votAgXHk7uhj3OF+OhbD93b9F/FgeLGB7cTPNlOvmAFG97j2WIH5nAxObpzODQ2vU wYRbT4HqYd8rrAVMiubzw7XSz2aZM2/BXyMWWkBC/3pxr8ZwfAVjxFJ4Tvnrcye14hxG j/FDDKoh6bOvUO94YiEERHoM5TR9vQILXgHLQeDN8ZkEQqDvMgN11b4EVeM/++bgaov1 LfIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qQJq5VzY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 i14si9253541ejz.362.2020.06.15.13.16.32; Mon, 15 Jun 2020 13:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=qQJq5VzY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1731494AbgFOUQb (ORCPT + 6 others); Mon, 15 Jun 2020 16:16:31 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51526 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731017AbgFOUQb (ORCPT ); Mon, 15 Jun 2020 16:16:31 -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 05FKGNmD094522; Mon, 15 Jun 2020 15:16:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592252183; bh=8IVrLn2oGajwW9HenWpKeQ4KhS7i7iRwTrL7dy0Erd8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qQJq5VzYKHHv+HEdl6Yg2NLYcBJcsk7lbpHS1xSH/n98uhy/XoAq+EhRw7pbSrUv0 J1UwQQkCQG8k6vo3/wPUkL43hDsDIYwXGFtVJoZqK5h3ZaBiENKEBLI8UwPZeWsOdT yhaV/Y29FSIV28LhMebVa7my+wkajIz7opEzgYXU= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05FKGNow129440 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Jun 2020 15:16:23 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 15 Jun 2020 15:16:23 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE105.ent.ti.com (10.64.6.26) 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, 15 Jun 2020 15:16:23 -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 05FKGM9A015099; Mon, 15 Jun 2020 15:16:22 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= Subject: [RESEND PATCH v27 07/15] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Mon, 15 Jun 2020 15:15:14 -0500 Message-ID: <20200615201522.19677-8-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615201522.19677-1-dmurphy@ti.com> References: <20200615201522.19677-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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.26.2 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>; }; };