Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2676004ybz; Mon, 27 Apr 2020 02:20:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKGVQuQacgWL+NjXp8FyY4k/78tkvq3KxGcAGB6wqsoyrLlxDGj2pFi5bt3tdYiI2RiRWk1 X-Received: by 2002:a17:907:72d2:: with SMTP id du18mr18908098ejc.7.1587979199837; Mon, 27 Apr 2020 02:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587979199; cv=none; d=google.com; s=arc-20160816; b=cQkFJ08Lg75xK87DvAER7IPXdQFitcE0fo6mz2N9SldqwQlHzwLY0rUdAuy+9ychNx HADDEirX0RzPNGv92a90lia74RSUxHdn6aYthgccZNzE6G/qthbwIWEXjoAruUKeNPP4 Uf5Zcev8saZdIYtXW9ztHl2E1IQKsPk+DibtKrJ9On0VH/ZVHFat5AjXYWX+x42gRfyH JIcN7ozbroTQO/YOp13bXyM36Ibm/ruKj/eCMu0Z0F4wnr67nrNbjOYU5hv8X78Rtct9 rCE+x4OI0g9+5ZmnwxSgOUbdaWDMgYct6ujqlDw8idTA+2BAywb+rMXOd2abxGeYidcP 7Ogg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hMIM4D/4OcEwIiXijaqW2/c3P1i5KnXV3cVbEcPnlrY=; b=gTN3UaI62GxfQROUfueR8nR2NFW0rinY4bsSXmZW17eRWIa0B1UKZNebh1zq5ufa6/ orGI/cEnm3EeT1vlLAYgVVK9DW2r8DPfrA9eDbO9O97IVzZGaURnvBVn8lyB42DZc4bD ziFiDm2CUt6BEbGTa9+M3aQeD1Bm5GJzdzAWAI+X51tJPedszslajepBNqAGwVg6jf+E 54dlp+h+IIBLdm+aLONOyGkHdwtyilGnHqnIPxXxIKWfsv35dZCGW/ndgFf8Ukc2EIzw m0sxCS/QT7OhvSHK0+lppM63GXP6I/EzSeEIrNfnmmc9oNd+p6OkR06gxZMRncT6Y4ul 3wUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wFnNaMz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by15si7927860ejb.229.2020.04.27.02.19.37; Mon, 27 Apr 2020 02:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wFnNaMz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbgD0JRc (ORCPT + 99 others); Mon, 27 Apr 2020 05:17:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:55482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgD0JRc (ORCPT ); Mon, 27 Apr 2020 05:17:32 -0400 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D0E8D2075B; Mon, 27 Apr 2020 09:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587979051; bh=0JQfGwBPW8HjbVmB+3oeIbQiiUMVtZ8rLy7VFh6Z++Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wFnNaMz3e85JoZrGYy0P3ue0v6+HWvyEG+x7gf1XtsPRx/14qvkvLyidqZmrJYh6y 3DybE5nYwAfsVLsbXy3YYIMf+hXIL9+GrYq/BJ3WR7bPiIbl/l0eUDDEG2tbIp/xPN iWK73XUxIvpIbvyfbZJ6KyHK00ORj++O9r87ap1g= Received: by mail-lf1-f47.google.com with SMTP id m2so13175365lfo.6; Mon, 27 Apr 2020 02:17:30 -0700 (PDT) X-Gm-Message-State: AGi0PuY0NPHUTg0GmRmwD8bmGA4C7/JaP4JdS+mECHgEWecX9IC8VJpp o1XDpxQwZ5AtLUgnoRFZW4hkRf8CYpy0cHJ3KkA= X-Received: by 2002:ac2:4a9d:: with SMTP id l29mr14131057lfp.4.1587979048894; Mon, 27 Apr 2020 02:17:28 -0700 (PDT) MIME-Version: 1.0 References: <20200427073132.29997-3-wens@kernel.org> <684132b8-4a84-8295-474b-38ccb992bba7@gmail.com> In-Reply-To: <684132b8-4a84-8295-474b-38ccb992bba7@gmail.com> From: Chen-Yu Tsai Date: Mon, 27 Apr 2020 17:17:17 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] arm64: dts: rockchip: rk3399-roc-pc: Fix MMC numbering for LED triggers To: Johan Jonker Cc: Chen-Yu Tsai , devicetree , dmurphy@ti.com, =?UTF-8?Q?Heiko_St=C3=BCbner?= , jacek.anaszewski@gmail.com, linux-arm-kernel , linux-kernel , linux-leds@vger.kernel.org, "open list:ARM/Rockchip SoC..." , Pavel Machek , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 4:57 PM Johan Jonker wrote: > > Hi Chen-Yu, > > > From: Chen-Yu Tsai > > > > With SDIO now enabled, the numbering of the existing MMC host controllers > > gets incremented by 1, as the SDIO host is the first one. > > > > Increment the numbering of the MMC LED triggers to match. > > > > Fixes: cf3c5397835f ("arm64: dts: rockchip: Enable sdio0 and uart0 on rk3399-roc-pc-mezzanine") > > Signed-off-by: Chen-Yu Tsai > > --- > > arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dts | 8 ++++++++ > > arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi | 4 ++-- > > 2 files changed, 10 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dts b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dts > > index 2acb3d500fb9..f0686fc276be 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dts > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dts > > @@ -38,6 +38,10 @@ vcc3v3_pcie: vcc3v3-pcie { > > }; > > }; > > > > +&diy_led { > > + linux,default-trigger = "mmc2"; > > +}; > > + > > &pcie_phy { > > status = "okay"; > > }; > > @@ -91,3 +95,7 @@ &uart0 { > > pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; > > status = "okay"; > > }; > > + > > +&yellow_led { > > + linux,default-trigger = "mmc1"; > > +}; > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > index 9f225e9c3d54..bc060ac7972d 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi > > @@ -70,14 +70,14 @@ work-led { > > linux,default-trigger = "heartbeat"; > > }; > > > > > - diy-led { > > + diy_led: diy-led { > > This changes an existing nodename into something that is still not the > preferred way. In the current Rockchip dts there are nodenames like > 'work', 'yellow' that causing warnings with the command: This doesn't change the node name at all. It only adds a label. If it doesn't pass the check now, it didn't pass the check before. I just realized that the footnote I added before is gone because I regenerated the patches. The original footnote was something along the lines of: I opted to not change the node names nor the labels as the discussion had not concluded. The other reason being that people may have scripts or device tree overlays depending on the existing node names. Previously I asked the following but got no response: Is changing this after it has been in some kernel releases OK? Wouldn't it be considered a break of sysfs ABI? Also, is there some guideline on how to name the labels? For sunxi we've been doing "${vendor}:${color}:${function}" since forever. As far as I can tell, the hardware vendor [1] has no specific uses for these two (red and yellow) LEDs designed in. And their GPIO lines are simply labeled "DIY" (for the red one) and "YELLOW". So I'm not sure if putting "our" interpretations and the default-trigger into the label is wise. For reference, the green one has its GPIO line labeled "WORK", and their intention from [1] is to have it as some sort of power / activity indicator. Hence it is named / labeled "work". As for the node names, I think we can keep it as is for now. It's not the preferred form, but there's really no need to change it either. And some overlay or script might actually expect that name. > make -k ARCH=arm dtbs_check > > Could you give a generic guide line/example, so all these changes are > treated the same way? As if the naming follows the preferred 'led-0' line. I'm not sure what you are asking for. ChenYu > > label = "red:diy"; > > gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; > > default-state = "off"; > > linux,default-trigger = "mmc1"; > > }; > > > > - yellow-led { > > + yellow_led: yellow-led { > > label = "yellow:yellow-led"; > > gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; > > default-state = "off"; > > -- > > 2.26.0 >