Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2493206rwd; Wed, 17 May 2023 10:25:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64QwGYp+ChjLSUCEr0nxEq3N8GEwEI93UMAnyigcwPk1k9S/e+LUJ+1xhDIgaKqcPY3l2t X-Received: by 2002:a17:90b:2317:b0:24e:3b85:a8a with SMTP id mt23-20020a17090b231700b0024e3b850a8amr471021pjb.8.1684344329294; Wed, 17 May 2023 10:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684344329; cv=none; d=google.com; s=arc-20160816; b=0KBFWF5OmL0DsEjueGmS6lEPH4DImBgScxDb8yg26JIS5P5ZJUsZuebjiFlYgd9IOK QVJyQbmePLP1dWbqsGpBuaUVqKu8PODJAUG6R6npTlTQfW6OxjJ/NXU/qjMaFnEZ9cxo x8lTr/jq8k44un8oQ546ijvDIBLnz5CWGBOqsAvfluo5IVC6jhJb3/rUWWYOCfb8TYM+ XJ8AufhCMFw+wPUyKZLyY4l+gxq4YdFHqY8klvpGeWgcEO3oFL/iQGKE0DEiM/EkUHSM xgKEyzUJTGbD/uMggMwqigumBuZ7oP+C6qq+67kZmINUOismvayHhqoTIsvV2djpMvR2 1afg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9W/aSpUxJmkATSMYBkvf8JxR9pYleKOzKrYpx1aWW3s=; b=Fz1GChgSnv5yiiO/3TsalV9BZqiMfw5iAlCuwkc/4HE63MkSJYcFoMCIbkNZRv/6Nj mI0OuUuyZ4BKsLlwWQRC0PXKzmtvNjJwtboyxgS1JvimOXDQ4T1pI52bYn4RWIA2aPvX Z0jHP5w6zhREPTziRbVNfw5uf+qCPrTxLc0iPVULa8ZvxkdbQXRIMWRhSz3A1uRFmzEZ vQG2DdrOzYyV7tU6CbFYguNAjvR7DhR3cNtQR6eb+9uTwg3svPP5HTlhhoGFjabrH/Rv MMZFCw7CnBU1k/IeGhTw+a3adbaTaZICsEgH91InNOgfGvGpuIXmckWp8ptJVc0jVMXw wQYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="sF/xOCzB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a17090acb1600b0024e54c31c25si2037680pjt.176.2023.05.17.10.25.16; Wed, 17 May 2023 10:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="sF/xOCzB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjEQRFR (ORCPT + 99 others); Wed, 17 May 2023 13:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjEQRFP (ORCPT ); Wed, 17 May 2023 13:05:15 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4D29E; Wed, 17 May 2023 10:05:14 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34HDSQc4015581; Wed, 17 May 2023 19:04:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=9W/aSpUxJmkATSMYBkvf8JxR9pYleKOzKrYpx1aWW3s=; b=sF/xOCzBWtzRIa9NfQykUhAYW9bdpi4BfqVd+u0QM+zVm8BwtMKvt5RKwyLBIisrS0oR 5gGnY7Tk3ad0uxOVO9gOGzmHbktlfijDg8n+xakYesyoDHksavafdBUG4gbZJqBvJ82W DFd7LXEkP+nJvqLj/AXc66wMlkIZ6uuXTfL4aNGT6+Nu7nQa6gzjVnNyBZzTPiAlc40t ESmdzGMpWoagJ8rmGzqP9CtRdN4NTq6zU5h2ZwLs3UmatRMz82aMZT2nvXJbUIUAtNUJ 2smMikZsEJeBeTn9xzDO8cd7MnSbfV49yjoZkle6SriTjs45hAmzw6RAlJ904FVa7xbz mA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3qm7tfj1m6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 19:04:40 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 932B310002A; Wed, 17 May 2023 19:04:39 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8202924F270; Wed, 17 May 2023 19:04:39 +0200 (CEST) Received: from [10.129.178.187] (10.129.178.187) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 17 May 2023 19:04:39 +0200 Message-ID: Date: Wed, 17 May 2023 19:04:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 3/3] ARM: dts: stm32: fix several DT warnings on stm32mp15 Content-Language: en-US To: Marek Vasut , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philippe Cornu , Yannick Fertre CC: , , , , , References: <20230517143542.284029-1-raphael.gallais-pou@foss.st.com> <20230517143542.284029-4-raphael.gallais-pou@foss.st.com> From: Raphael Gallais-Pou In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.129.178.187] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_02,2023-05-17_02,2023-02-09_01 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek On 5/17/23 17:41, Marek Vasut wrote: > On 5/17/23 16:35, Raphael Gallais-Pou wrote: > > Hi, > >> diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi >> b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi >> index 0f1110e42c93..a6e2e20f12fa 100644 >> --- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi >> +++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi >> @@ -457,8 +457,7 @@ <dc { >>       status = "okay"; >>         port { >> -        ltdc_ep0_out: endpoint@0 { >> -            reg = <0>; >> +        ltdc_ep0_out: endpoint { >>               remote-endpoint = <&sii9022_in>; >>           }; >>       }; > > This LTDC port/endpoint stuff always scares me, because I always feel I get it > wrong. > > I believe the LTDC does have one "port" , correct. > > But I think (?) that the LTDC has two endpoints, endpoint@0 for DPI (parallel > output out of the SoC) and endpoint@1 for DSI (internal connection into the > DSI serializer) ? You are correct indeed, I rushed the patch and did not thought about this. I agree that this can be confusing, as I also take some time to think through it. > > Only one of the endpoints can be connected at a time, but there are actually > two endpoints in the LTDC port {} node, aren't there ? Yes, they are mutually exclusive. > > So the original description should be OK I think , maybe #address/#size-cells > are missing instead ? Thing is: this file is only included in two device-trees : stm32mp157c-dk1.dts and stm32mp157c-dk2.dts. Among those two files there is only one which adds a second endpoint. Thus if the fields are set higher in the hierarchy, a warning yields. One way to do it would be to make the endpoint@0 go down in the device-tree with its dependencies, so that both endpoints are the same level without generating noise. Raphaël