From patchwork Wed Jun 17 15:09:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 190871 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp538588ilo; Wed, 17 Jun 2020 08:10:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOL2RIJaBOSmubvoXOpccjdP49q++Tnoix5tZUZ4KVvQsefdKqfBvNivhENJmfziCyV0eI X-Received: by 2002:a17:906:3e0c:: with SMTP id k12mr7718770eji.441.1592406614258; Wed, 17 Jun 2020 08:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592406614; cv=none; d=google.com; s=arc-20160816; b=wBoc0PFXgkfE6IWN149aFNBPqMB/P/nl8X200XQNFF8vWg0RJ0UUwCVgXhSCI7cF44 dl+kHPuA2pRFPP9zgQr7qvQe5wA34dqmcV04QexhQLiHKNnYu8CjLD7usQXWbVz6RT86 6+hVLPxcXWJ9SEplrNpJG3ip9d525BZ3/Get45i8fNh1mmARHwYLMdzIej7TXIkS4ePL 55jywAj/8aSyBXBF4rUlPxQPg3S/CIgqR22DB5qh54Y0bH5e6769D7nUJIh54AafN147 WxMsFlzDy7MuvQV8uq2lPPLNdoxY3gtfKRp7RnDD3IeHvomEBkl/y5g9525WU/Nq5h0a 7DrA== 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=HPixf3x0gv/T8+4u7U8MzAz5OsVr5rkJMp4xjiWqeDHADHY83g64GI6mhS4l22KxNW j28fzmVBAfp6LpHVdOa6Qta88Zr+rBov7z1Vsjrw6VEiseWxqIZ1W+IlgHEZdvo0nUR2 FCd9rADncUWxA5LJpFXpUf7yeeELvIWWs/8C/jvqn1k9t2383WKlIvsSTN12EzHm/9+d +MZm2AkBUhc65SKj6J66503FjrCcaatSVWlav9yE5FF8VC/TwvthMamaPAehzD79bH4x UeDyP8R/4YDsj44+JaRa4hN+IQlYfCHQlm1StmX1gvMA8nYSKukuo8V6Q0XQojaTA81R Wmhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fwikWo4w; 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.14; Wed, 17 Jun 2020 08:10:14 -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=fwikWo4w; 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 S1726853AbgFQPKM (ORCPT + 1 other); Wed, 17 Jun 2020 11:10:12 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40512 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgFQPKJ (ORCPT ); Wed, 17 Jun 2020 11:10:09 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05HFA3Bc005046; Wed, 17 Jun 2020 10:10:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592406603; bh=8IVrLn2oGajwW9HenWpKeQ4KhS7i7iRwTrL7dy0Erd8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fwikWo4wlJ0pVdEnxwRQptMeO2xI5zmjZ3aPVmLzb6HMRRc8FwfpDJpOKxn/8N3QL +7QH8YxdfDnSLQhCziFlORB1Wk+542Jt8qGXVsHeyiJrLed9U7iiac06xbXGkvSJzl ioZU7C/V/IkoD/QscBnwEbVGR5R3gXUHBFaAzuiw= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05HFA2aw111646; Wed, 17 Jun 2020 10:10:03 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) 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; Wed, 17 Jun 2020 10:10:02 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) 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:02 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05HFA22a041222; Wed, 17 Jun 2020 10:10:02 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= Subject: [PATCH v28 07/15] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Wed, 17 Jun 2020 10:09:16 -0500 Message-ID: <20200617150924.12665-8-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 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>; }; };