Received: by 10.192.165.156 with SMTP id m28csp463150imm; Wed, 11 Apr 2018 01:58:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+bs72CTj5sJaDd9kLmivY/nvWS9EQFSkiirJ3TipLaauMHp2lduEvG7XSbI91t+2zV8RUp X-Received: by 10.101.83.198 with SMTP id z6mr2830251pgr.105.1523437103958; Wed, 11 Apr 2018 01:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523437103; cv=none; d=google.com; s=arc-20160816; b=VEBfNFaKmGphaYnfWFkUudoPgO91oWna9tJ8LJiLveBH3HNVIe8ViNXNhG36GQPNt/ NxrdULchWaefXFkgB00H1BJqwogoqY4G2IEz7mWkkQT9KpGcnoZwJU8NkoEBxfYvId4c G/MR/I6fLnry2ND2bUZhpaqGiOqyu2/ZvlVdZt1NDC0o4I0/hK6+GWMDi0WorXdWfJla IZ0KztTw++4PzKmV3AwR+jnUS7qX/FRxRbsfPNW5uKMWU7ffwidiN8Ql3UjeqM1jNBTU 4AnoMzY+POeDHCx+dNTOIniuxXY3tm0FVSG9mP5HK+XPTChS9ivDI0Tm5drZV6zmNYVl hdLA== 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=4DaWprDwm2Kd6AgLo33O9tFaIAKW+dWvNYbqISx+d7g=; b=VXpRpaceDiZBa4ObnIfo5bHX1y4/PaXSpUxpRghbvr8sgIkGCsRWT9kocEbCt5ww8B WbfpkFjcAacFH3QmOtCTOuuBgmj9TGX7+iZT6LXUNsPTj6pC8yC/ZXlnSxU+6o2WywQ6 ALbnuOX58L3359wgV9YayoXz4LDRsukG2TPtEo9GtGTJff6YMOjQxwNGlWH5fNJAkizL 3nvjZIjnxOWPw9tI6PbQ/D/gIRbXUqh0Si4FZtLv/EMvxwGuYf4w5YMWnYCDIx2CgUh2 DCUABwmcVPE7msUcfUaFZ6UTB5YtxZ/ta+oMbnNYXtck19LPIF3q8zgpBqUOzFshK1cC KZbw== 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 o3-v6si602999pld.384.2018.04.11.01.57.47; Wed, 11 Apr 2018 01:58:23 -0700 (PDT) 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 S1752850AbeDKIyZ (ORCPT + 99 others); Wed, 11 Apr 2018 04:54:25 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:20664 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752809AbeDKIyU (ORCPT ); Wed, 11 Apr 2018 04:54:20 -0400 X-UUID: 179d2487e09e4ff88c710d67411cc601-20180411 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 724945204; Wed, 11 Apr 2018 16:54:10 +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; Wed, 11 Apr 2018 16:54:09 +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; Wed, 11 Apr 2018 16:54:09 +0800 From: To: , , , , CC: , , Sean Wang , Lee Jones Subject: [PATCH v2 07/12] arm: dts: mt6323: move node mt6323 leds to mt6323.dtsi Date: Wed, 11 Apr 2018 16:54:00 +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. And LED is very much board specific and thus the mt6323.dtsi only includes the parent node here and leave these child nodes in the board specific dts file. Signed-off-by: Sean Wang Cc: Lee Jones Cc: Rob Herring --- arch/arm/boot/dts/mt6323.dtsi | 9 ++++- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 50 ++++++++++++--------------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/arm/boot/dts/mt6323.dtsi index 958980c..ba39740 100644 --- a/arch/arm/boot/dts/mt6323.dtsi +++ b/arch/arm/boot/dts/mt6323.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (c) 2017 MediaTek Inc. + * Copyright (c) 2017-2018 MediaTek Inc. * Author: John Crispin * Sean Wang * @@ -14,6 +14,13 @@ interrupt-controller; #interrupt-cells = <2>; + mt6323_leds: leds { + compatible = "mediatek,mt6323-led"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + mt6323regulator: mt6323regulator{ compatible = "mediatek,mt6323-regulator"; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index 1fd6f55..395912e 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -237,6 +237,28 @@ vqmmc-supply = <®_3p3v>; }; +&mt6323_leds { + status = "okay"; + + 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"; + }; +}; + &pcie { pinctrl-names = "default"; pinctrl-0 = <&pcie_default>; @@ -482,34 +504,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