Received: by 10.213.65.68 with SMTP id h4csp1145851imn; Sun, 18 Mar 2018 16:49:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELt3GOUIx1rMDk6cheIAmxQFdYXK/qXoul5wRUKyUVZHSOCGJlfBCmQt8T9xIJR0LZ+7ZaTU X-Received: by 2002:a17:902:744b:: with SMTP id e11-v6mr10340113plt.351.1521416966422; Sun, 18 Mar 2018 16:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521416966; cv=none; d=google.com; s=arc-20160816; b=rwnQAfFXPO3WuGVmRJ91IuUWpBHw7HHnhWNVIUCbA56fMslRLUe5b/mK0RVQyNJFSZ r2JmSZ8L4OjeoDg0Mwqmsgl/i3MmLMKGkQhzGsiaQiOLADs3oKXWcbUBAtYKcYfJfqm7 V/8gxSmmfvGfEs/bxmE8qKwTsUeIFGO+nQ9Ol39ZMp7e5d1dAEpI4UXFD00ZBuUD2eSR 5DpKTSUM4fI5vZlmYb4T3JVPkms7WTy2PjQx5cYM9s1xJ2MltZnQvvnlKo1PKKwK+5aE 8ouB12TJ26klttJ3Jjv74LY5DzSf+6kNgGQ8E/29J1Y+qWxFQoccaP3GhXs5TJ2LpptH rj/A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Ue5pdVCjXnxjqGw4bxWMjPFJAFD7IgiBpg2gBdZKeAs=; b=xZiWeLGSKWp5+0HxnEAggaTpPs5SWo1JrcTqsMeQ4PPrpG8AK8Nkys6nQpWiP9f2Iz p0bSCIWNLkV/HSnWbnkYkp9uiuzowvk+SOfIbn2bFloTR2v8J6ZhHPDVicCCv5/zrMTE ipJeQraae9XDT88RSpe4Q7t9lo7QfeE/YwQTy84W3zIG7YKKB9xTvhdixBVk0/2wXRL5 VNY84wLVGwakgSl2cl0a9g0I9g89A+wVPPO5Pm82xwnfOACPaR0pUllKB0Fuxf3+4l0g 1G+LTVGSJl10WD8ek/dIMr2lBAq7ZlYVLDcVWWnhUXviK+Ar7i/k6SZu9WzPxMu5UNJQ BmYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nW8SDwNe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si8779181pgq.56.2018.03.18.16.49.12; Sun, 18 Mar 2018 16:49:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nW8SDwNe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754454AbeCRXqq (ORCPT + 99 others); Sun, 18 Mar 2018 19:46:46 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40331 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754155AbeCRXqo (ORCPT ); Sun, 18 Mar 2018 19:46:44 -0400 Received: by mail-wm0-f67.google.com with SMTP id t6so12347795wmt.5; Sun, 18 Mar 2018 16:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ue5pdVCjXnxjqGw4bxWMjPFJAFD7IgiBpg2gBdZKeAs=; b=nW8SDwNeHE407UgfSOMplbbuL1jH36Hcf3rC+58cmm5Rci0W5NuYlP27hkINqAeVkZ 8VIBNcKgNhNZ36VHNactWQiT3npUugV0kill3p/rTEYXid80bZInEtc7NIlo91MAnQ8F IXr0c7GNYJcoXxuddp5i2YwWgdSorqSEbVefl8PGxapXsxtR7N/sgYgHBejZOPcB6KQ+ XWYFXW3RTn9CMQDxC0cWEfWHnDs42UYyAqbM70PB1OxsDZZuysWHCJXGRd7ogVEBfffH a/DrSPDpnc9zZo/uO6+/SQq/o/mPJppDpZktao5pA8kVcaiLFb/CMqLOb7EjOwtutjqc UzOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ue5pdVCjXnxjqGw4bxWMjPFJAFD7IgiBpg2gBdZKeAs=; b=Ai2cAC90MSxYnHUjN0RFzYD9wD5KZW5IU6lgJ5MxGWlEwk8x55VSvoEmXo+n9hY8HI /AyakrQWu9gvOLoFao9Ei7ydBrXTm35th5Wo/ZJn/GtQejQPj3iMoAhlWG0tVALSrC1C 5qMsKkEgjHOnCgXh0XLkQoXLSmbM1X1TWEnWlEbf77yGxU6Ge2/Q0LmzDWQn3yq9qJeR hge0tW3uEzmcKY1BUL/EhAmnhh7HUOqy/43fvc82d4mKxUn9tIU9YdULioyLTrDXD44E OIn1ppcJ4MCOhCsZOGP6dU7oGcSgdm1zdXRErV6Sol0vb9Ttp67G0xpwIIOd8YdwDn77 LuBw== X-Gm-Message-State: AElRT7Hnjr0AusNLg6KZ42xIc7Bi3TeryPzHLh0IOkFsNWbRjTSVCU+3 Pl1ZyuOQHT7+3lnBr6LdF88= X-Received: by 10.28.164.1 with SMTP id n1mr4731565wme.75.1521416803265; Sun, 18 Mar 2018 16:46:43 -0700 (PDT) Received: from ziggy.stardust ([93.176.145.166]) by smtp.gmail.com with ESMTPSA id j4sm22331964wrd.53.2018.03.18.16.46.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Mar 2018 16:46:42 -0700 (PDT) Subject: Re: [PATCH v1 13/19] arm: dts: mt7623: move node mt6323 leds to mt6323.dtsi To: Sean Wang , Rob Herring Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones References: <20180302154050.lfxojro4woucl6lh@rob-hp-laptop> <1520030818.8089.190.camel@mtkswgap22> From: Matthias Brugger Message-ID: <457d4fb4-dd38-af89-208d-31477a2eb20e@gmail.com> Date: Mon, 19 Mar 2018 00:46:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520030818.8089.190.camel@mtkswgap22> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2018 11:46 PM, Sean Wang wrote: > 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! > Sorry I didn't see your email when I wrote my first comment. Yes this sounds like the proper way to do it. Regards, Matthias >> >>> + 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 >>> > >