From patchwork Tue Oct 1 14:56:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174875 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8663711ill; Tue, 1 Oct 2019 07:56:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwV3Py1bQH+rLgie4XCdsEM0nrLyKDmUoQmoXIZBUuLXgYAsy8vd3xvrLXQrGW7bJxo8Hrj X-Received: by 2002:a17:906:164d:: with SMTP id n13mr12030363ejd.75.1569941776097; Tue, 01 Oct 2019 07:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569941776; cv=none; d=google.com; s=arc-20160816; b=yzN6BninPa2Vij7Q1vAwMW7Uhf4fUQyFsO8pnCSU/IaakZZV1ZI4knYNuiBqiuTstZ hAskpGtLX6ag5eYxzm72c7UankhuSh4nhmhOa+tHPqih2e0cr0J/Rcw49VmQPC/Fg9nf 5koRX5R51m0mkLaEWwmNdfRzShEw0iUjvotXp6SwG4fC3XZgiqGGyuGcga+b+UvD5INK 33ijHgwwas4N2qFfPmRmH90IthB1CSeFF/yehYMpa86nN1bAbdufzK9esbr4mmuGdX/8 4dVywoy7R06xDHy3TbinKJWnibxgzAhmx12DpfW3hFtMvW4ec+/LbTQ85sgk8OzZzzAi UAHA== 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=0CPOm8eM1uD8XbD6J4VdzkHXSOBHZ4mtmjsY/tl59e8=; b=ghtLA/ewjUdJbqwbdA+8ztNp82QftCRS3YQ/NaFU2lCzuu/dXBzynreU6cuMwCFF8v BI3JCFTobE8Wtc3w7QHx+wfRGzpRmVrj/UXhwGsfjDS41G7S1gCy3tPwIAqKDwLKwvF3 1qIB3fBGaCTOXa3vadFAOZKZemPvA+GkRWlpULMJVt2K6763ctAj4Z3by8gUWJhq+Q+B M9S4UG/w6YIQSRCJlYiwj4Qwqih4hUq9DPFwm73x827FJzbSNZ0uRZR12SSymn/dvsAd qSSy2na3KNwqmTVz19LTgLZjtw5l0EZhGUcIvpNoKkJOPya7yYnJfRaPQuQa5ximCewe 7yIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qK9rcvNG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id c6si10069815edc.291.2019.10.01.07.56.15; Tue, 01 Oct 2019 07:56:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qK9rcvNG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2389422AbfJAO4P (ORCPT + 27 others); Tue, 1 Oct 2019 10:56:15 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42454 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389379AbfJAO4M (ORCPT ); Tue, 1 Oct 2019 10:56:12 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x91Eu6Ir016105; Tue, 1 Oct 2019 09:56:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569941766; bh=0CPOm8eM1uD8XbD6J4VdzkHXSOBHZ4mtmjsY/tl59e8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qK9rcvNGrIKYqiPA7RDYo+oWJvmd2ndNKk/Tkcv3W1H4Ce7NEhSTcO8hbv6syUVyh nLsyPW6irnPzIjkLQtcJJAoe+b8K+tX8zNOn8UMY9YoDvd/8wia51msPPAC5xdKueJ F5UTh7HBlUF/ukXmxSlDYTMJLAWFdzKwncWLar9A= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x91Eu6T4003601 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Oct 2019 09:56:06 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) 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.1713.5; Tue, 1 Oct 2019 09:55:56 -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.1713.5 via Frontend Transport; Tue, 1 Oct 2019 09:56:06 -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 x91Eu6uq044711; Tue, 1 Oct 2019 09:56:06 -0500 From: Dan Murphy To: , CC: , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno?= =?utf-8?q?=C3=AEt_Cousson?= Subject: [PATCH v10 09/16] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Tue, 1 Oct 2019 09:56:13 -0500 Message-ID: <20191001145620.11123-10-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191001145620.11123-1-dmurphy@ti.com> References: <20191001145620.11123-1-dmurphy@ti.com> MIME-Version: 1.0 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 CC: Tony Lindgren CC: "BenoƮt Cousson" k# interactive rebase in progress; onto ae89cc6d4a8c --- arch/arm/boot/dts/omap3-n900.dts | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) -- 2.22.0.214.g8dca754b1e diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 84a5ade1e865..643f35619246 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -607,63 +607,74 @@ }; 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>; }; };