Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp578835pxb; Thu, 21 Jan 2021 14:31:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXVNYefPPBm6r3K6fgR7e2IH+J1WRD/frxDF/9Ab8/OQ/8IZebyQ+9DFqgl1wSpgNvGsLM X-Received: by 2002:a17:906:2e9a:: with SMTP id o26mr1064146eji.77.1611268272448; Thu, 21 Jan 2021 14:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611268272; cv=none; d=google.com; s=arc-20160816; b=YeIDiT9hXmV420hXbOm6zKEvW6y/BmYjuWUDHELMWGPFputGqQ2xaD8JIhh597bP89 QFEkx1YLkTHUluXsIbeeRyqneIZ5H7LM9+AXWG1blO3it3OZkyplsvUW89e1e2KDuUac m1lqZO18MloYLP5GU0msdgXCBVjo8Ly5IR9nZ/MVEv12Xu5gYTlo/cYhS1FxjfR2iQpr kjTyL4CfKvkhheZGVebCI9i0PRKlG7orlebWNFKQ3Y5xvZ3Iol+eG9zttEffC5fEueKR 3AC4BOttdc4tIogsmRzsDzXtD3oNJvbJMZ78bizbs4T1CLoX0fJTcPv1noObiUaqoEZh cu9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HWAI3BfHFxJOZ8/VtTRpKNILbPwPF10uVqwMkbztGhQ=; b=NINUlDeweP4GIdIUnBUhD8DApidIrIcf/cBZ4TCOSSQorGLWRi+zMkZegEjUtbUiRN 96BSLi2F+M/uXnJj7/fa/BL0UBvQ1FyjvtWR/HVKhcHEbKWC4S1AXHMRkEEi3QDzcgwk aKENBZa9vueZ/A9RGS7f0RmeTJN2llcsykiEnJmJp+jDw1y3cAGRt1DEf1V4vhVD2ZJ9 R46UKmoBnA2MBzt/IbsAxGm4SUbU6+8bVADo4y+idll6PYI3RqzFRIGAV4u2ALf9z/R3 gIqiZ5UTU1nRcMs6/9P52Lf5uSmGAEqvEsdrAbmgPHtgMIA3/c0Uqwxp7WtCbyDfqDzS zniA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pzSbXgjI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si2368572ejb.655.2021.01.21.14.30.48; Thu, 21 Jan 2021 14:31:12 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=pzSbXgjI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725943AbhAUWaS (ORCPT + 99 others); Thu, 21 Jan 2021 17:30:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbhAUWaO (ORCPT ); Thu, 21 Jan 2021 17:30:14 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B07F9C06174A; Thu, 21 Jan 2021 14:29:33 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 78ECF50E; Thu, 21 Jan 2021 23:29:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1611268169; bh=bSpsB6iz35fpcRamCYl6FESXLSgAPyQnt/ONPb0XVR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pzSbXgjIq0gMeq5GoIgz737IVoY3jMy839L7SJo+VjITuzzFWGvHFXyi989Nj5y8+ uPx4iYyo6wP/vjx3b8CJp83GEb47dqEFDHYxBy+lOAxmSMMGDapf9ALgnwsKMRLYm5 vpLAm2py/mSCZoCQYTh/D71qwqNxY+dFLyw2XDaE= Date: Fri, 22 Jan 2021 00:29:11 +0200 From: Laurent Pinchart To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com, Kalyani Akula , Krzysztof Kozlowski , Manish Narani , Rajan Vaja , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 06/12] arm64: dts: zynqmp: Add label for zynqmp_ipi Message-ID: References: <272e23e0123f02c559bfa4ada9de73eb197aced8.1606917949.git.michal.simek@xilinx.com> <99008851-6c12-3acc-6530-25af08429ff5@xilinx.com> <4010c2d4-bee1-827b-1079-1f1bbf1f10d1@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4010c2d4-bee1-827b-1079-1f1bbf1f10d1@xilinx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, I've just realized I forgot to reply to this e-mail, sorry. On Tue, Dec 08, 2020 at 08:26:41AM +0100, Michal Simek wrote: > On 07. 12. 20 23:16, Laurent Pinchart wrote: > > On Mon, Dec 07, 2020 at 10:39:25AM +0100, Michal Simek wrote: > >> On 06. 12. 20 23:46, Laurent Pinchart wrote: > >>> On Wed, Dec 02, 2020 at 03:06:05PM +0100, Michal Simek wrote: > >>>> Add label which is used by bootloader for adding bootloader specific flag. > >>>> > >>>> Signed-off-by: Michal Simek > >>>> --- > >>>> > >>>> U-Boot needs to add u-boot,dm-pre-reloc; property > >>> > >>> I'm not entirely sure what best practice rules are in this area, but > >>> shouldn't U-Boot locate the node by name instead of label ? > >> > >> Labels are not listed in dt binding and there are two approaches how to > >> reference nodes. Via full path with node name or via labels. > >> I do normally use labels which are much simple. > > > > Note that labels require the DTB to be compiled with the -@ option, > > otherwise they're not present in the binary. > > U-Boot is using different concept. You can see that there are a lot of > -u-boot.dtsi files in dts folders. These are automatically included to > DTS before DTC is called. It means you don't need to build overlay to > get merged. > > >> And also if you take a look how dtb looks like (convert back to dts) you > >> can see that for example aliases are using full path (just &label) but > >> clocks/gic which is the part of <> is handled via phandles as numbers. > >> > >> And labels names can vary and shouldn't be the part of binding doc as > >> far as I know. But I can be wrong of course. > > > > The DT bindings should document the interface with the operating system, > > and if applicable, the boot loader. If the boot loader requires a > > particular label, then it becomes part of the ABI, and I think it should > > be documented in the bindings. > > We have been discussing with Rob some month ago but didn't have a time > to do step further. Just keep it short Rob was ok to keep bootloader > binding inside Linux repo. I think that makes sense, DT bindings are meant to be OS-agnostic, so boot loader requirements should be documented there. > There is no hardcoding for a particular name. There is just a need to > have any label. U-Boot needs to have one property(e.g. > u-boot,dm-pre-reloc;) just to do early allocation. > The name is just reference and none is really looking for it. It is just > a way how to include it in much easier way. Just to make sure I understand this issue correctly, does this mean that you need to reference the node in a *-u-boot.dtsi file, and want a label to do so ? The label name needs to be the same in the base file (taken from the Linux source tree) and the *-u-boot.dtsi file (in the U-Boot source tree) in that case. Isn't it the role of DT bindings to document such requirements ? -- Regards, Laurent Pinchart