Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2862686lqt; Tue, 23 Apr 2024 04:08:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0QwPejV+4rpgkiVO0AYNp9esnSlUzc9JD5xPOJC8N/iQYJ1X26X+aXiFWeQoniPlTBCf83ojfIynBHJ13HXehsTPF8HftcouOW+3/Kg== X-Google-Smtp-Source: AGHT+IE6cMpagqW8qaGV9Wx++SB28MrvJkhta9+5WuWVMdin+UuKU/oRF5HPwLmj4b8ZtxxSuw5Z X-Received: by 2002:a05:6a00:a03:b0:6ea:c04c:71cb with SMTP id p3-20020a056a000a0300b006eac04c71cbmr17210885pfh.3.1713870528407; Tue, 23 Apr 2024 04:08:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713870528; cv=pass; d=google.com; s=arc-20160816; b=Ylnw2NEpFEo9xb4Tjkxz4A9OvJF75+lNGm93d9Vc/HnovJ2/NorfzLRWJogRy1vtJc hTbHU3NfI66s/J2lKlqeSM3HznRiAs4Xkmjq2B3d6FOnb9SdwuZVnTK4OsLZJNFQ2zQM 5Xq7YWAoUxBEqcjzt1dwe6ijkbKU+NwMoRfhzTw0K0v93MS/Kj45Gm5cVhkWDxrY7xGB 4Cs9EW3gjLE9iK3DWffWk14M2coxw8I3BHyxqow2L6YmopqpDs8l6PX7AsvKV4uLJFNN N+rxLTmduUTqegxzM/xBIYfaKol0bPWirJ27dcq567Br7eEo/vQSuA5+3n0GMgXS5UjA 2thw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=8oNxOq0ChX5V4sc0bmUhZfGGVZr8hkJI6KhZzMA8IwA=; fh=z7tYi/dIftfBhcchETTpY6rhWvj0Kmj1bE0RZVeW8vE=; b=uf14bi5mwfDu6X9Dy9YLYbOJXs/Q2XOW8qvhudcq5AtG5i/T5mfaBCQIHmu2oGzcFB Pm06994WDpRA7N1AfwqmMuplrJF72yvsPJnQZAaO3wtDSmP9SweR196uu9Wcnm+XjFYI UgwPfOUvAoF1z4t25CjZbeV1c4JzJwsyDxy07n3xhakbiHxKSr3bZL+u8F/r4jjR3Onf nPZSHJjpHgfSEG0Q29MPIVeu3je2Rc1jCf3dJD7rJj+s1J12PA94JTwUYgFAVofwzLLl 0YxsoQZoKIYu1/Ux9JFr05CGi5EWbzBIbmcwShL5cXdb0dVVSuG/qSQCiQ1RfHKXW/rz c+4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-154939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le1-20020a056a004fc100b006f320142504si1987023pfb.370.2024.04.23.04.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-154939-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 85B2328567D for ; Tue, 23 Apr 2024 11:03:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E9F469956; Tue, 23 Apr 2024 11:03:32 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD67569944; Tue, 23 Apr 2024 11:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713870211; cv=none; b=ekzAxmeubfbNvAs5liulkrQKGpsUb1MD+ti3vYAFT0d3EUhrJTWAE14omPPOjRYjWaXAF2utOzCW2DZOLOW08Z+aQQ90s26M1zzlZW9aEXg15UcPV+w8xPRjYUo3UNthT4wTP1veOLtesQ94lidZZ0QVhNKGAztQ/pQnvoXHzX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713870211; c=relaxed/simple; bh=2oE7qiEBTlPxS3EMJQmUOb6edRHb4fcMo/8D+mOUUF0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zm5KAKSZ/iCOKmjIAYVnmGIRUs0ep5HSl53KnLuWQjZ4heTzSmZ9k4mA6PVO5pfElOwIwjzEKHK7W9Vl+VqgxBLTfCxbUTgaeeODqTDyLfkpyl3Lmv75Gbdkmx+sYjZcKnQGhXeBgbjPv40eJ4avqmPwYZQRpsia1QUqxhOGLBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e861d9e.versanet.de ([94.134.29.158] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rzDvd-0005B9-6h; Tue, 23 Apr 2024 13:03:13 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Michael Riesch Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , devicetree Subject: Re: [PATCH] arm64: dts: rockchip: fix nodename warning on wolfvision-pf5-display Date: Tue, 23 Apr 2024 13:03:12 +0200 Message-ID: <5189813.GXAFRqVoOG@diego> In-Reply-To: <3f93ecb0-a649-4492-8798-a00de26236c8@wolfvision.net> References: <20240423082941.2626102-1-heiko@sntech.de> <3f93ecb0-a649-4492-8798-a00de26236c8@wolfvision.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Dienstag, 23. April 2024, 11:39:26 CEST schrieb Michael Riesch: > On 4/23/24 10:29, Heiko Stuebner wrote: > > The dtbs check throws a warning about node naming with the recently > > added pf5-display-overlay: > > rockchip/rk3568-wolfvision-pf5-display.dtsi:113.6-121.3: Warning (graph_port): /fragment@4/__overlay__: graph port node name should be 'port' > > > > This comes from the overlay just referencing the vp2-port-node via > > its phandle and then adding an endpoint beneath it. > > > > While this is possible something to handle inside the dtbs check, > > carrying around the warning is not pretty, so change the description > > to go around it. > > What is the rationale behind that check? Describing a port in a SoC dtsi > or board dts and using the reference in an overlay is quite convenient > and above all concise. I guess this is mainly a problem of the overlay thing. Also it does not change with or without the "-@" option to dtc. So I guess the main thing seems to be that overlays and the whole checks don't seem to be well-trodden paths yet. > Cc: device tree list > > Starting from the vop_out phandle and then referencing the port > > via its generic port@2 nodename will satisfy the port<->endpoint > > naming dependency while keeping the same structure once the overlay > > is applied. > > > > Reported-by: Arnd Bergmann > > Signed-off-by: Heiko Stuebner > > --- > > .../rockchip/rk3568-wolfvision-pf5-display.dtsi | 14 ++++++++------ > > 1 file changed, 8 insertions(+), 6 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-display.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-display.dtsi > > index b22bb543ecbb..18c807c39e56 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-display.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3568-wolfvision-pf5-display.dtsi > > @@ -110,12 +110,14 @@ &pwm10 { > > status = "okay"; > > }; > > > > -&vp2 { > > - #address-cells = <1>; > > - #size-cells = <0>; > > +&vop_out { > > + port@2 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > > > - vp2_out_rgb: endpoint@ROCKCHIP_VOP2_EP_RGB0 { > > - reg = ; > > - remote-endpoint = <&panel_in_vp2>; > > + vp2_out_rgb: endpoint@ROCKCHIP_VOP2_EP_RGB0 { > > + reg = ; > > + remote-endpoint = <&panel_in_vp2>; > > + }; > > }; > > }; > > With this patch applied the DTC warning "Warning (graph_port): > /fragment@4/__overlay__: graph port node name should be 'port'" > vanishes, but a different DTC warning "Warning (unit_address_vs_reg): > /fragment@4/__overlay__/port@2: node has a unit name, but no reg or > ranges property" appears. Can you reproduce this? > > I tried to fix that by adding the reg property, but then DTC complained > about "Warning (graph_port): /fragment@9/__overlay__/ports/port@0: graph > node '#size-cells' is -1, must be 0" > > Then, I added the #size-cells property to avoid this. However, DTC > complained about this property not being necessary as there is only one > port. I stopped at this point. > > I would say the real question is how this hardware should look like in > the device tree (overlay). Then, the compiler and/or build scripts can > be adjusted to tolerate this. When I checked, my "workaround" the check was silent, but I guess I need to update the schema python module again and would get that rabbit hole you went down. But yes definitly. Especially with those follow up problems you encountered, this makes it a problem to solve in the checker. So the original layout is the best one to represent the endpoint and I guess with the parent node being named "__overlay__" it should be somewhat ok for the checker going "nah, it'll be fine - we're an overlay"