From patchwork Tue Oct 8 20:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 175561 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6206430ill; Tue, 8 Oct 2019 13:48:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2UubUEWnxNczhtiJgXfZhdP9FFR/QtRrD6p9wg94vbLrw6uIfyi2tivhz5PD0E7IU5S9s X-Received: by 2002:a05:6402:290:: with SMTP id l16mr35945509edv.178.1570567711919; Tue, 08 Oct 2019 13:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570567711; cv=none; d=google.com; s=arc-20160816; b=FP3sQMt2pM3RvJkuEFh23Lcu+NDLsP2SOQxpCFIgz3IEbs4w92ThOmFoHRFWqXuZ8f QX28j/P3AqME5ebTANrMRFpgcOgprcS/tP1LQXxtRJWiiXjyRVeSYmIGZUqLMoKz4Op9 Oj42KR4AV/J/6SGavlbYUri/bcd4Bx5K3jpOo/lYeyjdiuzlew/I5DF6Z3V3CKV8BMHQ ZlqkwPqSKKTEi/Q4acU7lbKxHzW0qwO+DTmKsbaf+YPOYXrXkz8RHMCH65Yxn4BrVMF+ wsr+D5zfARMetu368+hF29dP+A8rj9QD6dPgotEns+Y1i4HCdytOouTxheCu9WIWN/u6 bp7g== 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=0uBv0kt3qMhVk5kwH39KUnGMU70WnTgByW20/uotIqeR+VFosj6ScZV74D4xKXtsJX VwemVhJBje6oqVfmOZttYt6mKTUiG1BQ/PvqEFnn9QH9CNy7Nk/b2WjQIYg8Hph++/7x Mi70p+dRpv7UVyjPn3iovLiBIJLGJTEe71X4UcvAniTAqDrE3IPKdI5rzyVQdxAoeCES GnvTLcO+cIG8uxKna2meTZ99Pf+jE/5xsyeNsa6OiIsPBW/csHA0MBS+VntVY4M6vQER AX8+B16YhDamROZX9GSPjWRc+Jd5Ie+ASYT2fLXVbY8O+H4mFv9dzpmp4bBa28I9/hN+ BS4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="XOJv/Zsn"; 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 s27si115462edm.226.2019.10.08.13.48.31; Tue, 08 Oct 2019 13:48:31 -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="XOJv/Zsn"; 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 S1731184AbfJHUs2 (ORCPT + 26 others); Tue, 8 Oct 2019 16:48:28 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45060 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730720AbfJHUs0 (ORCPT ); Tue, 8 Oct 2019 16:48:26 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x98KmLYb092695; Tue, 8 Oct 2019 15:48:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570567701; bh=0CPOm8eM1uD8XbD6J4VdzkHXSOBHZ4mtmjsY/tl59e8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XOJv/ZsnSMX3NlOxuZFEV7vdaLwJ4QTAINlRrbBmV3R+bxZXda2FvAX7VKch9nkFT 7pyB/vrnn4lmTTucnphGQU5i4WhqW6zcuPzi6AX1hK3/CK5LwQOD1lv6fdVcEcjaD0 lMuoYZODiMG9j+V3XVyrpwXi8wwGMRtUi3wxpeE4= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x98KmL6K027706 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Oct 2019 15:48:21 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 8 Oct 2019 15:48:20 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) 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, 8 Oct 2019 15:48:18 -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 x98KmK5j095745; Tue, 8 Oct 2019 15:48:20 -0500 From: Dan Murphy To: , CC: , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno?= =?utf-8?q?=C3=AEt_Cousson?= Subject: [PATCH v11 09/16] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Tue, 8 Oct 2019 15:47:53 -0500 Message-ID: <20191008204800.19870-10-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191008204800.19870-1-dmurphy@ti.com> References: <20191008204800.19870-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>; }; };