Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4391352pxb; Tue, 26 Jan 2021 22:04:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeCTiCj8de2goB7Myj2DvJa/Qa2r/dNkpRyjVta+BUbAZsIwqQEfcYf/zTpCNo/VqoTbkf X-Received: by 2002:a17:906:3101:: with SMTP id 1mr5773762ejx.115.1611727441811; Tue, 26 Jan 2021 22:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611727441; cv=none; d=google.com; s=arc-20160816; b=XJCa3qyq6iqKFY7o5Z8HpVHGMcNDFzHX3/tisjbUSRwNRtQwt2l+Z57JExoKkQzQh1 fo9e6syQom6+l8K7ti+z3XimM4oHM5o8AIkSfH1Ltie+lxbSaNqx4a4K7qbkmJ9G+kVg yuH5jmBUo1wtCWSAkUJcL9hlSinN5yG22uJ/6UPm8O6+nlVAFpuNvwqVUqN+Xr/z3X/R dYt5jU3lWAj+bdRCXa8QTe+3B2W2eBZVFOKg/1USNk2+vl65Omak77RjXJ3aFYxRvwoc K1ZuP7XhPY+tEnXEQQDziW+1wzBnO/7kbP5Xj6k+up0bR302C6utCU1CqbFf8ks2Z43I pJrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=pmcSp9rf2sNdHnZqWxnlM6Co4+ob80T5iO5iXN5RvHU=; b=tBMcg0mq+GM6EmRP2J/gQlXkkWblxUGd0rhHFjTakDnxTSC5yhUzYhOOpQo5DnUmTn PD/qfxRAgNCGg4w5mRoR/R3Dp7ROVUmO1Lk0tA179V7Kgh//2t+SDyoLwC8xx6nnEHGs OSMsW/4wFv/tP27UcxKJOgcpOsvNhuYK0o9wOw50f3z5A0+XCs/z3G1+D7zkrITt28ay a7vf8G6xPkR7G2/7JH0ONoL/39SijF0Cm3fkXWDov9Zn7u/rD2VyX+4kt0QME3gGy5R9 piieeTgq7wK/bytBCNAEKc4a+uEMI9ueesxTJrIcLulHN29gtYmDxGwqfut32rI1nBxr ZbBA== ARC-Authentication-Results: i=1; mx.google.com; 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 x8si457101eds.299.2021.01.26.22.03.36; Tue, 26 Jan 2021 22:04:01 -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; 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 S2393562AbhAZRxV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Jan 2021 12:53:21 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:36004 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390459AbhAZIoc (ORCPT ); Tue, 26 Jan 2021 03:44:32 -0500 Received: by mail-oi1-f169.google.com with SMTP id d18so8399842oic.3; Tue, 26 Jan 2021 00:44:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EXJh9ZT/mvfwax+nixCrjPTJXYuqqPBVeOG7xO3uNAk=; b=P5kjfsXF4eVwNN/x2V9svoy/RVQENJ7Gb7+MvcdHorkEVvtocxifZ3RyLCZZWWLClA Fc+lBo2S/p6uwWJ39uoc28hvtfI5Q3DgMvnBPhLm/Qsrgjzo5bxUdqK0s3nINY9ld23r 9jLSvNSCx8DZ0EG4WVwoBKy1Of9zkI+6BLdi+gO8jPHY9RLoVSbIlPer0ZfjdbST19YG h2pMjQ0/Poo/eTOX10lRXMw4u0xrQ+o03kxYMANAPriVkWjFibYQpVQA5w2DLrElmZM+ EN/BSiBPAJznKsMMNOR8TcabzJS8QsDczShuIxaxShSYDMhlErGGy1iBsu4h/lNP4tWC eUvg== X-Gm-Message-State: AOAM532VItrCX/llp7lHdWE5g2aMejmGDfX55u7KOAySHF4orc7/wAJD kulsk+PvetQK7auZ0NxKthVDhVV/3xSJMREMr+I= X-Received: by 2002:aca:1219:: with SMTP id 25mr2591995ois.54.1611650632111; Tue, 26 Jan 2021 00:43:52 -0800 (PST) MIME-Version: 1.0 References: <20210125105757.661240-1-uwe@kleine-koenig.org> <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> In-Reply-To: <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> From: Geert Uytterhoeven Date: Tue, 26 Jan 2021 09:43:41 +0100 Message-ID: Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arm-kernel , cyril@debamax.com, Arnd Bergmann , Maxime Ripard , DTML , Rob Herring Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uwe, On Tue, Jan 26, 2021 at 8:21 AM Uwe Kleine-König wrote: > And then I learned with hints from Rob and Geert that symbols are not > really necessary for overlays, you just cannot use named labels. But > using > > target-path = "/soc/i2c@23473245"; > > or > > target = <&{/soc/i2c@23473245}>; > > instead of > > target = <&i2c1>; > > works fine. (And if you need to add a phandle the &{/path/to/node} > construct should work, too (but I didn't test).) Using labels is a tad > nicer, but the problem I wanted to address with my patch now has a known > different solution. Please don't use "target" and "target-path". Since the introduction of sugar syntax support in v4.15[1], you can just use "&label", like in a normal DTS file. Paths do need the special "&{/path/to/node}" syntax instead of "/path/to/node", though. As usual, you can find lots of examples of DT overlays in my repo[2]. [1] commit 4201d057ea91c3d6 ("scripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110") [2] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/renesas-overlays Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds