From patchwork Thu Nov 14 13:30: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: 179417 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp11064319ilf; Thu, 14 Nov 2019 05:32:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyT/YdoT0ypr9V4pBVrJEAbesP+M24A+CHie+9Hk4F5+/oiFGAPmh4gJfOyZoqNDjfNu7Tw X-Received: by 2002:a17:906:b6cb:: with SMTP id ec11mr8507877ejb.145.1573738339516; Thu, 14 Nov 2019 05:32:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573738339; cv=none; d=google.com; s=arc-20160816; b=KR+g+NJp6H1tzPWG+dGmaQZAGSn6nfSaZNIZ2tAlsV6m+HhyJ8Y7OdxHTc5eAz1kJo pu2yX36yrYcVH4t0a3wDQWt6139FhHVxZfacWKBtc83ix/KRoQzGML+7j94NVb4SYkpb 3yOFQsLamPncU8HJZndVk4Hr5GzCavkaoDqmenpZ2yTgG2gyxSNfIXrIHJDH39bNIei8 lZ4r5ZxMo/e+2W4T0RVBq3+gCBPwqAr0TwwUv6ufT8pMzhN5tN9UYxFfzXgMKOSVaY5a EJn7sUN/V1I2kzWIlBDD15rp219l3j1ouxD1ZFhn2D14eDwkLQnKRsGjM52MnmVx1Cce 77xQ== 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=IhBf76ZkV825gD29NdnMc9uoR76ENOTa4bPn385iiJ0=; b=tf8PWHIuBq0iO+Kflmh0arrNkYj1J/fZT2VnOLXiyYjrMPu0GIZ5sKtun9EjzWJFxb jfLVXyR5mrPGRQrZrrLoP/ybctalsD4Dk/SYFLWLbyfsANuVrPPBs7AUPvbYmD/rEdmv GCoGMYmUT3y8KNY3RDvC6NjI/y+nhtuCLYtSebsg9s8sSIlOOMlfASzk62bhueM25nKd MeF8oKbceQnG5hdyQQQ4ubAdY3gIm5BVNNC5Q2TThcHk82vf+FbfpidUevr5yqoOrnpa R/kuUmc1wKp1rIrFpntEdXJlAQqN9HSHrMpci9qAyT2EF08y7WA9aKzPpdNCT8SQ7XuN dZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yecRGpHq; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g13si3270467ejf.99.2019.11.14.05.32.19; Thu, 14 Nov 2019 05:32:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=yecRGpHq; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 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 S1726678AbfKNNcT (ORCPT + 1 other); Thu, 14 Nov 2019 08:32:19 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48144 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbfKNNcS (ORCPT ); Thu, 14 Nov 2019 08:32:18 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAEDWDhk007554; Thu, 14 Nov 2019 07:32:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573738333; bh=IhBf76ZkV825gD29NdnMc9uoR76ENOTa4bPn385iiJ0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yecRGpHq9lvVYPHvxKsq0NOd80gI0K/9hBCe+vjYNzwWJ/Cd5rK7nX0MMjYcFSkY9 7LwFCngHs7wiU7qmZPu8+pUChZVnx5GdwWX5AKXIV4Ys3C2Dkeq6Pe5tZxiz3I6k6s 74y6V2TtKrN92bva5Ci+fiGoCjSkRWr2gc7cwV2A= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAEDWDaf005283 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Nov 2019 07:32:13 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) 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.1847.3; Thu, 14 Nov 2019 07:32:13 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.1847.3 via Frontend Transport; Thu, 14 Nov 2019 07:32:13 -0600 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 xAEDWD1m031637; Thu, 14 Nov 2019 07:32:13 -0600 From: Dan Murphy To: , CC: , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno?= =?utf-8?q?=C3=AEt_Cousson?= Subject: [PATCH v17 09/19] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Thu, 14 Nov 2019 07:30:13 -0600 Message-ID: <20191114133023.32185-10-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191114133023.32185-1-dmurphy@ti.com> References: <20191114133023.32185-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 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" --- arch/arm/boot/dts/omap3-n900.dts | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) -- 2.22.0.214.g8dca754b1e Acked-by: Pavel Machek 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>; }; };