Received: by 10.223.185.116 with SMTP id b49csp299365wrg; Fri, 2 Mar 2018 19:39:55 -0800 (PST) X-Google-Smtp-Source: AG47ELtshD3g2kCMZikbiXDu6XXlnu5h2FVW1PW9EKGDfZNoM4f4jsQvbcPvnBxWFHegyzsBvP94 X-Received: by 10.99.64.66 with SMTP id n63mr6365224pga.204.1520048395771; Fri, 02 Mar 2018 19:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520048395; cv=none; d=google.com; s=arc-20160816; b=q2O7kVEPV83gx8tXXXdJWk2Ga4JKnmTqwFM2kH3WPlxF64LTjA5iSHqpcf6cCtghvL MNdV8wff/qPbUg6H4yvCpCTVM8Y60n10kKGxvJZZ7o/od0Ta//cYm/tQvHj8zB3PWGLh OZR8Vs+hkg94rhZRO17qZQ0Le+3UKHdtEaE6OSNmd6OgLTSlK5Cw2+QMQN7jH1XqQNT0 WzmvTBZ/CrQpry10qx51Iggi/1e3CXmPL/LkGAwkTGzE+lytsui/MFLOCMPFlnlZRwIA Pn7sv+aqk/SewE+eacD4hmNABe6Ziz83sdP+5J63lpIMUp5cqiuPHwVZjZLG8wB78vjI mf0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=QDGYxx7NcUIpWp+Nzw9Yt3i4WHZWFP8Id5dJbvJ5iB0=; b=jUxx8GojlpATWlHX9k6lAolOIRLyvtC85ym9axggTIyzpn2XGsUlT7MfAOi7FUyxzj BVcWgrQO4EjxlA0aiSCEQ4IYL6yu0zysw4NZQiuuXfnwBx2Lr4YauaS+ZIBoOQtZbSXj 4GczLs5/n6PuUzjlvNsX9eqf3iUF2+Dt4XSEu/RAPyPGV0NF58j2oPNCi/fEyGtKVmpr ArmdLYFnP7Rkvx2kGhu2A/OfP+H0DpmD1oDA9Hi3bbpSn4MCyNPDVd+k8yLh8/8ou2WM AajoYKpKjXUfoJ94OZywxnGddxzsTfzzwEaBxfu5ac1pxxcfuV3GcCqF3diRmrOycRmo 1C2A== 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 j33-v6si5854446pld.442.2018.03.02.19.39.39; Fri, 02 Mar 2018 19:39:55 -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 S932852AbeCBWrI (ORCPT + 99 others); Fri, 2 Mar 2018 17:47:08 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:48195 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932482AbeCBWrG (ORCPT ); Fri, 2 Mar 2018 17:47:06 -0500 X-UUID: 2b02e25cd0fb42d4b0e603b1d9e6d4fa-20180303 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2122536744; Sat, 03 Mar 2018 06:46:59 +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; Sat, 3 Mar 2018 06:46:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sat, 3 Mar 2018 06:46:58 +0800 Message-ID: <1520030818.8089.190.camel@mtkswgap22> Subject: Re: [PATCH v1 13/19] arm: dts: mt7623: move node mt6323 leds to mt6323.dtsi From: Sean Wang To: Rob Herring CC: , , , , , , "Lee Jones" Date: Sat, 3 Mar 2018 06:46:58 +0800 In-Reply-To: <20180302154050.lfxojro4woucl6lh@rob-hp-laptop> References: <20180302154050.lfxojro4woucl6lh@rob-hp-laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-03-02 at 09:40 -0600, Rob Herring wrote: > On Fri, Feb 23, 2018 at 06:16:33PM +0800, sean.wang@mediatek.com wrote: > > 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"; > > Changing the label potentially breaks userspace. And the fact that it is > a green LED is very much board specific. So I think the old location was > correct. You could put the parent node here and leave these child nodes > in the board specific dts file. > yes, I really made a mistake on breaking userspace with a label change. I will keep the parent node here and then leave these child nodes into board specific dts files. thanks for your idea! > > > + 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 > >