From patchwork Mon Jun 22 18:59:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 191369 Delivered-To: patch@linaro.org Received: by 2002:a54:3249:0:0:0:0:0 with SMTP id g9csp421967ecs; Mon, 22 Jun 2020 11:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0m4sjFhTPZr8fox9P1BwgwmUCxSfF30yp51t5gXYt66NktJmrKdMUZwS2OgddjO2cNf1g X-Received: by 2002:a50:fc0d:: with SMTP id i13mr18123808edr.260.1592852384646; Mon, 22 Jun 2020 11:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592852384; cv=none; d=google.com; s=arc-20160816; b=zRbRQEYJsksbb3A+zzkv9xiPGQ0LCMzm5ND/IQKCzp4q3/Z/uj9suLk2w8DgRz9WYR 887kuEEbrX1QZK8k/oeKBHOdlYXOi1ZnJJW7KWKlsLn0zwE2QaUSDEyi6L7lxqh22yM4 8PSBs8xzeTzJoiHVL1Zabh9/q5hmVQkRmu+CLT3czjbXchecc1NPEtgsGmzCtmjxzWeH MfR9TKAhf/9DRqMUCNH5dEewl89E39a5NAFPGQIbPli9EiSYkOFnckgjZ9+JrzgIO4i8 aIzmgaLzqgBjDvlSqnDC+79X+3Rw/KzR7fU5Cc15hqNM4Q1I3sO2FzLPH9JURbC6ImsN onAg== 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=mObHF0p2IN1MXbwWpCT6v8TZY9MswrDQj+oH5JAl1+fzB4kj2c1/zeKIbNQmdvQMr0 e9btPGzOFab75pvYAaKJfaIlxsLRYjhjbuiUR4PuR7v275rd0EzY6SyyMl1kZhoINm8o zI00Gmbg2Au2ipfwXeM0AYs0Q33QUc+ZiReqYRfrK5dopybNcfAZnh4aBK3xSXsrSz9f geVLaMaIZdKUe/270nvKxd0NCekdtiX1kcWRtnCjTlEyveru6kWhkGrCnJKfX/wG9ZL1 kge1lskXVe0xSAyfL3nmDo7R9HvXPEZK3F8nCQJdqX+HBA0EQ0GTiMjaV3qs/G6cabpy HzYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wgyoJuOC; 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 t3si9376855edr.560.2020.06.22.11.59.44; Mon, 22 Jun 2020 11:59:44 -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=wgyoJuOC; 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 S1730407AbgFVS7n (ORCPT + 1 other); Mon, 22 Jun 2020 14:59:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:60932 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730384AbgFVS7l (ORCPT ); Mon, 22 Jun 2020 14:59:41 -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 05MIxSUV053502; Mon, 22 Jun 2020 13:59:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592852368; bh=8IVrLn2oGajwW9HenWpKeQ4KhS7i7iRwTrL7dy0Erd8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wgyoJuOCcg3kzz4B5PmLkUW/zX+WsoJkFoCWVbwCn4RZyYAxD7DkqnVcFgoMl8+bL WWQxgDxmTNSXtAPWrKnu/AImjItqWMDVR1vd2vHn3kBo2Zl9gHFk0SWBTi/+hAM9li WLV7he37fMDhjBY7kiwNPPu3zpQ6FQCykvW43hnQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05MIxSkw096029; Mon, 22 Jun 2020 13:59:28 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 22 Jun 2020 13:59:28 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) 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; Mon, 22 Jun 2020 13:59:28 -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 05MIxR1d078691; Mon, 22 Jun 2020 13:59:28 -0500 From: Dan Murphy To: , , CC: , , , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= Subject: [PATCH v29 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Mon, 22 Jun 2020 13:59:10 -0500 Message-ID: <20200622185919.2131-8-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200622185919.2131-1-dmurphy@ti.com> References: <20200622185919.2131-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>; }; };