From patchwork Wed Jun 17 15:09:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 190872 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp538685ilo; Wed, 17 Jun 2020 08:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3jQwrc0Tx938AF9wAQY+wH2SugbDCrdItqwl2ckBbpT2xZO17i4784xQpm22nD3n6MKG1 X-Received: by 2002:a17:906:5652:: with SMTP id v18mr7613842ejr.72.1592406618953; Wed, 17 Jun 2020 08:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592406618; cv=none; d=google.com; s=arc-20160816; b=G88owbZagd108g9nUfKJv2xHq7CIvyY+akW+tA0mqAiahd07cyX82Q/D/Xxp2yZ81a IDQ+SpC1C9NGIJzU3Odn+Mxbnqk5gWIaQ0hFQV82sUm3em3zTZaIRD0Fv9o9bRkNMer5 ZFY1GG7yuxjkJT2SQN1xSOSBl5fMtLFma/4cKE4uIiTM/7rLsm15tG+SepB5AeS51NHB KNzHC7k/szaxGSTV88kthc51+8onjw2eJfwO3+RdjS0b0BvvAPMm3NKHUZV5YJs2P6QH XRMMUEqZcHRsWt8HIzIZ40n9FQzTtVOMPSyFDWV+mCVDtGnwHQtj6Qy9ZTzJFKD3QXGM waWA== 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=6kv4oPPzDnEU5/icPEIdws3eUefH8b8hua+2r+1UQCA=; b=h4JJr37rVwlgcKXZFrfTp3UXE3zBoTDYza1OnGlseSGeTUo21k/aLquwz2goOmHdDY 4wPNv4WGrzTgB2P97YXlqm76fVffBSgzebyZ2mUEPAFmGntGI4Xf0ksNBp/DKGm5U5cp qfKuxQVP9fZYd6yGjTqRqqVantq6O7+w52kKcV81p4tWrM0hfzypHk332RL6Y+GQ4hVM lO2Y3oBf76B0nKsz49ajh6JPBiVhfpJc6HV8EjezKmZFedEQIWs7hATGyrXEZKM8PR7u y7QRHWYLK3KZaa6J8WucQ5wub8mSpEGPr38FFZVHuEH4MAZtyB93a2Q9xdCl7MaIHvKN 3gYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RJpGoT7g; 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 dj24si166723edb.266.2020.06.17.08.10.18; Wed, 17 Jun 2020 08:10:18 -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=RJpGoT7g; 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 S1726940AbgFQPKS (ORCPT + 1 other); Wed, 17 Jun 2020 11:10:18 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40532 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbgFQPKR (ORCPT ); Wed, 17 Jun 2020 11:10:17 -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 05HFADhZ005071; Wed, 17 Jun 2020 10:10:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592406613; bh=6kv4oPPzDnEU5/icPEIdws3eUefH8b8hua+2r+1UQCA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RJpGoT7gkdz/7ELsfFzAxz2w4YQlVQYH0Z+8D2AoMuSDPdUH5OoixSqBDHLKLAD0+ RwrP27nKR1zdbZeGzLz+PurPu3euSY3yAai6KTYi7s0dYp+MVqmprFcArsULG0q2XF xn7d4lO5/uFRfiAai9DOYEsDeJl3Bx+Csya6oa1Y= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05HFADOB110690 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jun 2020 10:10:13 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 17 Jun 2020 10:10:13 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE109.ent.ti.com (157.170.170.41) 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; Wed, 17 Jun 2020 10:10:13 -0500 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 05HFAC0l107424; Wed, 17 Jun 2020 10:10:13 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy , Linus Walleij Subject: [PATCH v28 09/15] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes Date: Wed, 17 Jun 2020 10:09:18 -0500 Message-ID: <20200617150924.12665-10-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617150924.12665-1-dmurphy@ti.com> References: <20200617150924.12665-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 CC: Linus Walleij Acked-by: Pavel Machek --- arch/arm/boot/dts/ste-href.dtsi | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) -- 2.26.2 diff --git a/arch/arm/boot/dts/ste-href.dtsi b/arch/arm/boot/dts/ste-href.dtsi index 33e3b0b3c53d..ff47cbf6ed3b 100644 --- a/arch/arm/boot/dts/ste-href.dtsi +++ b/arch/arm/boot/dts/ste-href.dtsi @@ -58,16 +58,21 @@ lp5521@33 { reg = <0x33>; label = "lp5521_pri"; clock-mode = /bits/ 8 <2>; - chan0 { + #address-cells = <1>; + #size-cells = <0>; + chan@0 { + reg = <0>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; linux,default-trigger = "heartbeat"; }; - chan1 { + chan@1 { + reg = <1>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; }; - chan2 { + chan@2 { + reg = <2>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; }; @@ -77,15 +82,20 @@ lp5521@34 { reg = <0x34>; label = "lp5521_sec"; clock-mode = /bits/ 8 <2>; - chan0 { + #address-cells = <1>; + #size-cells = <0>; + chan@0 { + reg = <0>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; }; - chan1 { + chan@1 { + reg = <1>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; }; - chan2 { + chan@2 { + reg = <2>; led-cur = /bits/ 8 <0x2f>; max-cur = /bits/ 8 <0x5f>; };