Received: by 10.223.185.116 with SMTP id b49csp510674wrg; Fri, 23 Feb 2018 02:19:06 -0800 (PST) X-Google-Smtp-Source: AH8x225B1YQxG+kRpF9+4vvj9vTnXKuxYEl7MzZBEDDifFwFs64G1jbygTTbat/l6Hh0Ekw3Dzdo X-Received: by 2002:a17:902:6e0f:: with SMTP id u15-v6mr1239319plk.78.1519381146625; Fri, 23 Feb 2018 02:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519381146; cv=none; d=google.com; s=arc-20160816; b=QKl6lNQbDTqGSjA9FIfMSkAfXWegMk45GjIyrkDG2itLZrnKewQ1tWIFpF/vGERLBu goFmVSNYjnc4L/FEZanc7wjRpmNVP8WDB7+qbZgi/lCFe7MLdHbe8L84R/4oXNh7kNm2 amgnV0GT7fUie23A7LEMqKkfdc5JTSeQ6FZa0VukhBHej2wqiidONb8u/taeTSTXZLDq 9NO+/FNMMPKRZ+yFAsLRc6kHSRBs1iDEutofDVfz5PLhioMdNPOX7YDzlxOXZp30fVcg cbLUjGACLUkFU5JuCfZN4zOgwPPPZ/QBDxrmOeCyqpHBNVtruWD3RGzeRf7FNg66TiDB S52A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=X6aEX9qYEqKkWuzNc3NCJNPMWyCm/wjNcFgakmXiSsc=; b=LJNsfgHo7Yjr3AxtW5URI9QIFisOWwFqRj7JRqO6ysHna191QF0V7f/vZCVvaqlvJ6 t7R2GKBWq8EQlADB3g/QM4TOE9bim3UTktUQNnbxLbDnmrZDLkXorqWkhrNmkaFPG40t VP2RPq0kpeDOQWNRWMhV5uaoBUIy0lDQHxqTb7lC+tmZ4BtDta2p3wH3jCSEKTEDGrmL Uu6wp7IkK6qOyw8sbiOvObCDTL3rGwMXSVABrZn9GW7um4+oaXNeBqLAoSJPpPbWnu0V uLivdaxNem2wCkEIx8lWnE5s7zlqX73/FaSewXRAnRx4f8UzcknMx9SJC5KmjTGnynC6 g05w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si1625553pfg.38.2018.02.23.02.18.52; Fri, 23 Feb 2018 02:19:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751757AbeBWKRE (ORCPT + 99 others); Fri, 23 Feb 2018 05:17:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:59743 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751329AbeBWKQz (ORCPT ); Fri, 23 Feb 2018 05:16:55 -0500 X-UUID: fd6b1f6efc43454cb6de4a901ce93de9-20180223 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1104633334; Fri, 23 Feb 2018 18:16:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 23 Feb 2018 18:16:50 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 23 Feb 2018 18:16:50 +0800 From: To: , , , , CC: , , Sean Wang , Lee Jones Subject: [PATCH v1 13/19] arm: dts: mt7623: move node mt6323 leds to mt6323.dtsi Date: Fri, 23 Feb 2018 18:16:33 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Since those LEDs are parts of PMIC MT6323, it is reasonable to merge those LEDs node definition back into mt6323.dtsi. This way can improve the reusability of those nodes among different boards with the same PMIC. Signed-off-by: Sean Wang Cc: Lee Jones --- arch/arm/boot/dts/mt6323.dtsi | 26 ++++++++++++++++++++++++- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 28 --------------------------- 2 files changed, 25 insertions(+), 29 deletions(-) diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/arm/boot/dts/mt6323.dtsi index 7c783d6..44c5642 100644 --- a/arch/arm/boot/dts/mt6323.dtsi +++ b/arch/arm/boot/dts/mt6323.dtsi @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 MediaTek Inc. + * Copyright (c) 2017-2018 MediaTek Inc. * Author: John Crispin * Sean Wang * This program is free software; you can redistribute it and/or modify @@ -237,5 +237,29 @@ regulator-enable-ramp-delay = <216>; }; }; + + leds { + compatible = "mediatek,mt6323-led"; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + label = "mt6323:isink:green"; + default-state = "off"; + }; + + led@1 { + reg = <1>; + label = "mt6323:isink:red"; + default-state = "off"; + }; + + led@2 { + reg = <2>; + label = "mt6323:isink:blue"; + default-state = "off"; + }; + }; }; }; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index 75e61c4..767b225 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -483,34 +483,6 @@ status = "okay"; }; -&pwrap { - mt6323 { - mt6323led: led { - compatible = "mediatek,mt6323-led"; - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - label = "bpi-r2:isink:green"; - default-state = "off"; - }; - - led@1 { - reg = <1>; - label = "bpi-r2:isink:red"; - default-state = "off"; - }; - - led@2 { - reg = <2>; - label = "bpi-r2:isink:blue"; - default-state = "off"; - }; - }; - }; -}; - &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi0_pins_a>; -- 2.7.4