Received: by 10.213.65.68 with SMTP id h4csp1111698imn; Sun, 18 Mar 2018 15:14:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELtAQFYpAEWfgYdB3yarT8LpS9+ouVcIXgbiKY7OO5AeMcJ1gpe48Lczo1P3gs9FQCMggNUQ X-Received: by 2002:a17:902:684d:: with SMTP id f13-v6mr241204pln.230.1521411264053; Sun, 18 Mar 2018 15:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521411264; cv=none; d=google.com; s=arc-20160816; b=yylmvfZfSSyzwmRYcZC2wJFS0lHNHcdIqCisjSIlmuyOhES+8pjvycF02oV3fx8TLu dMMIh3Vt1Et7VvKB10wwP/+oydNNrZJez3fhMK+5AOYTNCz4tLGw2fgT9LSi/03Wck+3 Q3xoMZm9f6luEXj7D4CfZqk8k2N5E5+LQC7LXqQrwoq8LAaIeyZ+aq6nJTR3wPV/HNQY XDVXdUwIXc9S+yBNBd6xNQATMT/DFgKjU4TZnswe3LDusOmL1RR8rM+z/3bBNU+MVY9e AsKtysOAal0nV39wCsUuD1vhTcbqZNJXKoLxW7VFp+UMA2pbWbNyHz4XZLw8sT+pEoHS CwnQ== 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=vyy7x6wXqhtvVcRbvqlTmAjhwDsyg/ipBEusO7xfrqk=; b=M7nA+5QqaGRD2VHuMqK1k25ozekYArdlSVePi+GBVGK5APtAjqB/vusUK9yeBuDqJM xTz1zEQyENFHbM57O7bJTBbhR+1A9uNmDuVKqWHeYKy+7pTzNhG3LlWX5r+KmBWBrmax ICkfN0wQuQvBwFhymowfnDGaBPF9qrql+4NlFH7ZoSs0OfCTzDXDk6tl3rGvlkxqUf8b /i4Hs/cfpQZMmKTRbEerDH63rg+Bi8nAG5Lq/Psi6a+fnk/x5gmT49Fv+7TzC/NEDKpy 3Q1nkr1ji+5npM6K+mXLymKP1fGdnUnKvVflyrL0iyM/BjdwD210b0HVqVx6XNdoBBBa sEbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EZshcx6W; 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 g8si8462835pgv.740.2018.03.18.15.14.09; Sun, 18 Mar 2018 15:14:24 -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=EZshcx6W; 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 S1754693AbeCRWBr (ORCPT + 99 others); Sun, 18 Mar 2018 18:01:47 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52903 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754342AbeCRWBo (ORCPT ); Sun, 18 Mar 2018 18:01:44 -0400 Received: by mail-wm0-f65.google.com with SMTP id l9so2770958wmh.2; Sun, 18 Mar 2018 15:01:43 -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=vyy7x6wXqhtvVcRbvqlTmAjhwDsyg/ipBEusO7xfrqk=; b=EZshcx6W0d4sbA6d5OT+ZdtzURej9X0IiEnk+OeAlcVU4IEw+DsKV48oPOFI++Pfvq TdiQLKhJZhyhAnUC46skmOwYE2DFkFgVUiScJMjHWSkHahYYTcVFGW0niJ3dpCBHEesv oFOsu5j/SB6U4QdVN+6V/Jhb+h7X0KTwxGCSC03he6kubca/cO23Bcx3IAwZO6PMoI2L IKL6MTu1sA5G6pWxfJIae97nw/YVnxkkDij919Wkgee1BlXtnVG9cKd7QzHpJf7QM68G 50aOCfQKIfLxEVGFTvxbYs+Zsa1qC9iZBiE7T1hdj6ZxxuN56IShraWP7yok9xjO/p3B xZtQ== 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=vyy7x6wXqhtvVcRbvqlTmAjhwDsyg/ipBEusO7xfrqk=; b=bTF7up/fBtTAKCcdWuzPLW1IgMaYdybIqtcPKwG8RHZuJh0l5lMlHlGYjfR+Nv8hP5 YGuapFPHI1r0Q52vnkqNd9he/+F898fzEsNBoMLSnBkmRN8EdntRZ6AVCrjlIvK6OggV hx6FDJVywOHDltog4omMDf+ICGq1cuLqVOfe117jQLkFi+yFmM+R1CyUy57ZQTrzewKc uORS9ZgJmLGfrarK+z55cJlULikmO7VHuFtj10EsmgBC4YFHCM/bnXn5NYdm47xgK73w 0wbZBSVGY4w9okTLR826JilC8kHQ/RvDh+PH+6vYRIdFSqfhMxlCGGZNxIUHDUDBBXeq PKgQ== X-Gm-Message-State: AElRT7Ev+iQzu0OhVTLp4b+64zTfUKfr8gyB04yQem4vYaNaIlKWsMCr iYHXnwuLx+4lSiT4VeEyXLA= X-Received: by 10.28.178.136 with SMTP id b130mr40182wmf.68.1521410502128; Sun, 18 Mar 2018 15:01:42 -0700 (PDT) Received: from ziggy.stardust ([93.176.145.166]) by smtp.gmail.com with ESMTPSA id f84sm8666736wmh.44.2018.03.18.15.01.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Mar 2018 15:01:41 -0700 (PDT) Subject: Re: [PATCH v1 13/19] arm: dts: mt7623: move node mt6323 leds to mt6323.dtsi To: sean.wang@mediatek.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones References: From: Matthias Brugger Message-ID: Date: Sun, 18 Mar 2018 23:01:40 +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: 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 02/23/2018 11:16 AM, 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"; > + 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"; > + }; > + }; The color of the leds are defined by the board and not by the PMIC. So as long as you don't have any good arguments, I tend not to merge this one. Regards, Matthias > }; > }; > 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>; >