From patchwork Mon Jun 8 19:39:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 187620 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp5141122ilo; Mon, 8 Jun 2020 12:40:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWzGI+eQAXdqiYc1XBuD3ezfZHoGfoIzwmvyNh4/BL5//d4wHRvuuaeOOUOL5wMZAf/OaW X-Received: by 2002:a17:906:b04b:: with SMTP id bj11mr22280916ejb.516.1591645250725; Mon, 08 Jun 2020 12:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591645250; cv=none; d=google.com; s=arc-20160816; b=Vjlm3qpm8JyD42zTp/EWkaLw+KnqwxEdRcEnWulylcfrz9juweHUrqLd6chXTwnGT+ DBirkuKkAxpJFreFDvJg1wuYzhBTBR9T91B5aTmm2e1Dw7SMEjT6PTO8rMVDt7MHlORL 7lDj1Y1RykOaX64VEvJv09PiriIntRPGEvlNIDlsPam2GxNAIQU2DF0aO8XvzeGbYJsG zCulPk2rp0dbtJn7X6sLRM4oPqJwSpReM5INDiUAMBtlqeCEKj+R8BRIAn40yXx01P3P ru7hoj0gftLDGxgEpj4X23TmJnopsRFEyZQUy3RBHYeYiONMi4Pv/0US8/I6KhfFyNK9 cjvg== 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=de2gZSq1pQAEmnCzYUVKzO1kKnZWwjdGnFZ+hv25rz35cIY4hI6ck6IphYdzg6yW8L 0BqwWclPFpjRMOr0qcBkXNTkhoZe+zd5rgmuPv6y36psYczFFfzsbyUwlzeEbMcFv0du kUlyNGW1GWdVsUUnsKlhB/cdIIfp7Ht8NGTm/Ix9p++uBMPQ/yaFpGvvz75mL7R7Xd/K YkFzBiN3RFmYObXMQoRl8H6eJOFnJasoB/jbKNFfMRVlm3ULXPfyBu4BUPwidYC0Ak2g QXXaWls00jsrHOK76E/BkjMCJUWDhoGapHaIdPlQYhfudJ9ndwclYSEBpd5Nlw7LcCwv 8cUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SdcClVAg; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 b23si10061256edj.441.2020.06.08.12.40.50; Mon, 08 Jun 2020 12:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=SdcClVAg; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726680AbgFHTkG (ORCPT + 6 others); Mon, 8 Jun 2020 15:40:06 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58322 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbgFHTkF (ORCPT ); Mon, 8 Jun 2020 15:40:05 -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 058Jdu76102371; Mon, 8 Jun 2020 14:39:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591645196; bh=8IVrLn2oGajwW9HenWpKeQ4KhS7i7iRwTrL7dy0Erd8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SdcClVAg56W9kIUiCliEUddolo9m8MnhZjogYz+JwQjQcZzvgqBDUY7JBJERUFeIP EUJtkNMX3/UaJG1n3q20hBixssAS7d5wQ3pd+zoRsCtdxY7uxC3J8W3TcgsPlPtMOE ioDltyWI0eudi2rpZN9JHGQcZ58ay8ci1/pz7viU= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 058Jduml002042; Mon, 8 Jun 2020 14:39:56 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 8 Jun 2020 14:39:56 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) 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, 8 Jun 2020 14:39:56 -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 058Jdtrk068837; Mon, 8 Jun 2020 14:39:56 -0500 From: Dan Murphy To: , CC: , , , Dan Murphy , Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= Subject: [PATCH v27 07/15] ARM: dts: n900: Add reg property to the LP5523 channel node Date: Mon, 8 Jun 2020 14:39:09 -0500 Message-ID: <20200608193917.13084-8-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608193917.13084-1-dmurphy@ti.com> References: <20200608193917.13084-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; }; };