Received: by 10.223.185.116 with SMTP id b49csp8809962wrg; Fri, 2 Mar 2018 08:18:43 -0800 (PST) X-Google-Smtp-Source: AG47ELvW+PU4q997gwL4/Ed6y5IyHCM92ARPcwqhAXIRWnpcrxkPb2VBfAAVPctokDEIwLFDY6yo X-Received: by 10.99.1.148 with SMTP id 142mr5089429pgb.24.1520007523594; Fri, 02 Mar 2018 08:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520007523; cv=none; d=google.com; s=arc-20160816; b=eXaPKgEYMsIBMTU2dVxHjv6nsCPUPwEJ2UvjLIgxxfUBymMngvOXhOvNabR3NG7tVH 0Rh8ks+A394KF/HlMufG0ArZoOg97CzjVqOKVLeegNidqBy5vo1iWqcVPrT+23AzxmaP 1Ab3cJ0NSNGz/XQX5dDjRjIjxx4cJWdksc0k2TFOr1z+yXI6wvI6LCNdbcv1j94U3hHL /cC7hXPtctvEACrRyZG33cOzUIzIc8sKYFUwiIe1xsl28N+JlDrHJTv1TSnZkAE5fNkv dDNFuq+3C414NTSQN+4Pp9nOnk7vgOymYFze6fHapR8X7u0H5arIDzU0hHCGd/RI+mXN KHKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+r3JhRd98TDFGqdTp6d9E8RHUHHIqq+gQNAuYge16bg=; b=t/sSMRtslh7kwbQygkn4fYKw3UPknOCzMLdZ7vUkH21woopNhoRonJwhH1rytok4BM YonIeYgwK1Wi3xQc1JiNGrobRjSB3RaViKl7BUYxZea5nE6YNFWdSk1CVAWOBow/hR/L eD/lWvVCcB+Dy3iT6O96X9JaqgvJB1ijs3dGfrrjUjUAKFouKD+vZ+vTKtgS921gLEb4 hpkNahXT6YoaMB8eywyM06eT8VLJFAHE2r4yU9dDcgKenlYkAmd34VmcSlt0HFemtmh2 C+ZE5UkapsTQPKW9rrswbojSNDr4raIVPzP52P1bNplHXaDcKhwkaSLRayPahudhp89/ +6LQ== 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 f4-v6si4874738plt.765.2018.03.02.08.18.28; Fri, 02 Mar 2018 08:18:43 -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 S935234AbeCBPkz (ORCPT + 99 others); Fri, 2 Mar 2018 10:40:55 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:42175 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932648AbeCBPkw (ORCPT ); Fri, 2 Mar 2018 10:40:52 -0500 Received: by mail-ot0-f193.google.com with SMTP id l5so9048488otf.9; Fri, 02 Mar 2018 07:40:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+r3JhRd98TDFGqdTp6d9E8RHUHHIqq+gQNAuYge16bg=; b=QBFVqWSWfAScpF6L253q1tS89l8MnnNboBoyAZUNN81nY8mmnSiCaBvNgt6qCzHmPs zLNTnLVPig7a478WI4kI+YLWcdpNUcX2fNtcMNd0W7XyhnzrUzdSPFft/Wrhv/3RGYBj 6rjgciDcBJsPKANNPocbJqKamWMWErMz9loXIzswzhKQ+RdHQK4lBLt0amUvZ4Q3ctnU I8201mnMuqdXiaZH1C/7aP60j7bZYDvwMyWF+IggzfK4CE063wMjEsdwMEbb2f/MJ3oj DinbwLPciLrfVqyM61tGATbUF4n/QLgyo+5m3MRh1jFspEyOvFLu/kobjRdxeBFCBAsN E4bQ== X-Gm-Message-State: AElRT7HXMMxZjZu+OCkJsjVNas7NNYClHZBQaGmTLxCuU9POK+HxA/fP SJ8n6K576gwd+YuzYquCug== X-Received: by 10.157.61.130 with SMTP id l2mr4464894otc.49.1520005251568; Fri, 02 Mar 2018 07:40:51 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id w111sm3570138ota.41.2018.03.02.07.40.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 07:40:50 -0800 (PST) Date: Fri, 2 Mar 2018 09:40:50 -0600 From: Rob Herring To: sean.wang@mediatek.com Cc: matthias.bgg@gmail.com, 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 Subject: Re: [PATCH v1 13/19] arm: dts: mt7623: move node mt6323 leds to mt6323.dtsi Message-ID: <20180302154050.lfxojro4woucl6lh@rob-hp-laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + 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 >