Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2735446pxu; Mon, 7 Dec 2020 14:20:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+V3exbUIFeb3qVVzBgoMeDy2LG7k22yn8Hd97bIC9xSaLmUyV5rxV/4GBDa3enj+Q5QhF X-Received: by 2002:a17:906:b0d8:: with SMTP id bk24mr20585501ejb.113.1607379630292; Mon, 07 Dec 2020 14:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607379630; cv=none; d=google.com; s=arc-20160816; b=RK2NLyEQLWLLBKwJ7RMuL5njW5qzIJsGb2QV/W8W8fyp7hf6j+hbm1NNyoUkip7XTY bTXCGsUXYbOmnfKhkfIhTPDexCWcTGkpf3ALNSXWO9gNNPIbJhUILCVSQe8MQ1wn1Hts q5Wt1ipeTA9+SO2UPx2TKzp/XfyTpJXJKsEoV5kXeLcZa2+ovJ75sgbgDlbvogfrjDJO IBPa2st/1t5ibf5TBIrutkyq9BZx8LE7hTv7dJq8eNS333ZgfMhhoT/KVz7eKH2XmMpY dUcSwoWX196sRDh7X98qrMEfLd1fBpD/AB5aalTO4ZoZY7RHoKAwlFVocBtpI8MgD+on BP4Q== 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=S2jYhs5hTQTUNFz4ovmezfkCVP0kJosaSrSioaNXeH4=; b=UF6QdOt6lKqJVB0sRf/7+jKQ2t19oyql20+QjdJMcvc1Oo+KPnbAVrFpN09YwJ2Hly SEPo/Hd81i0AtwJNvB3s9FNPBQMUkLdi/7ci+5kbu+4Yexwopyrqeqy/CWLzvvTSNplI kmJJ4eIASaTJQgsg7yFbshRR8GTXC926RXWXRJUbyJgB2K9qNgcZRLoKj5Yk+BN1/K8u sTVqhaqgYOMeC6wFYIR86y+lFqc8pC/ftgTOoBi9J3FJs7DIAZj2woLlYjkeMNBRZB62 9k43h3z/IPjEUIQrBiVGth25mmdORRA3xfnznjlqJ0PeG29NChZwcllp7aA6l8f1YDuF ElJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=f9WALohE; 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 md16si7343987ejb.563.2020.12.07.14.20.07; Mon, 07 Dec 2020 14:20:30 -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=f9WALohE; 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 S1727942AbgLGWQt (ORCPT + 99 others); Mon, 7 Dec 2020 17:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbgLGWQs (ORCPT ); Mon, 7 Dec 2020 17:16:48 -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 7AF64C061749; Mon, 7 Dec 2020 14:16:08 -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 5102F8D; Mon, 7 Dec 2020 23:16:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1607379365; bh=5blhwtDoYN23LG+fh5NNUoMJLOyVAgOlj1w0ADmswhg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f9WALohEgNsUC52o5HaiLYrh30DKknuS2lfaMbSPcZzF4bJIL35SmZnYxGOIO5eT7 llQ7FP25BzxgJlOPxzppADiXTKmFf/iC/eQieQx8XmiePGRb86KI2VUBahLCLMfG+f pKvl7ZVTpbeTamlHWb/Nr+4h/dSe2tt85MqEQcl4= Date: Tue, 8 Dec 2020 00:16:02 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <99008851-6c12-3acc-6530-25af08429ff5@xilinx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, 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. > 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. -- Regards, Laurent Pinchart