Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp339126pxk; Fri, 11 Sep 2020 08:18:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySqaGH1UnJ7nZYQmVE6ge7bpvsH4o6Ox9P14EA5Zj7ZKSotDdpWmq0VN83Vgvht2NqBBbR X-Received: by 2002:a17:907:b0b:: with SMTP id h11mr2596401ejl.330.1599837495445; Fri, 11 Sep 2020 08:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599837495; cv=none; d=google.com; s=arc-20160816; b=wy7rEqNWn+4aqpWgiHjtE3tENd5KVDrLkfiVyg41OhZKXr7Qy0tnycuiRbrFFJYa6C iNjl7WE22jmm1O92lwMYK9bl/Xqy1o193FYs386dxpdMcvSukZ4+e8LF4Em39yd5qv2B QgdzW5kzl5iWJfQkfU7f5kwdCgghUUs+eJLJnTrUMznL9ovLzRwmL95Ua/s0fCKQyPpS kseCiZIp/vW2/5dM/09iSLxIMi7Pf2qyfyEmRm/4uf7gkQ61NT28164ZlPugowKZ+HA/ fOtjYb3QSUVmkf+yOMI5JbI315lDRbxa27d9pXJi/G1de7Np9ZXH86qVMgOoIIsyhbOZ MOrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=LedGIkihyb95sarwl6GH6FHkhiz/ZEZc+nrtI6/KHRQ=; b=IGvztaQAB4be8gvVdhgb8u0QEB9gyIJ1fqaWDpAmSCsEmRCm/KgB1r1I6o2/foYv5s A9nvYJWIa38fsZ3ca+eTRGxpBndQTSbv8UNlk6B4WAL0GoQC3xYyxbWlpWA9gQx+uCDH uz/0PXtPI4F2k6iLKTZ6JbbnI4TjldpGmYF4EjhEhkioTk1rNP1XcfI9i0j5BBGzh72n e6cHVFH/jJx6jAJr4QbsYAjx/yiGb3RHjp5LUDANXmrk+hI9C/5iYI//EXzPymApNAi9 Pe82CHrGSZd+rJ9fI80C0klZ6+94WpykLD7ymn+hiQwwqsKnpDhD0RmZqiwbRiWhbw6G RiQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=DqTcfhEO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si1554253eje.727.2020.09.11.08.17.41; Fri, 11 Sep 2020 08:18:15 -0700 (PDT) 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 header.i=@st.com header.s=STMicroelectronics header.b=DqTcfhEO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726399AbgIKPPV (ORCPT + 99 others); Fri, 11 Sep 2020 11:15:21 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:50074 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726421AbgIKPM7 (ORCPT ); Fri, 11 Sep 2020 11:12:59 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08BDlfdN016391; Fri, 11 Sep 2020 15:50:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=LedGIkihyb95sarwl6GH6FHkhiz/ZEZc+nrtI6/KHRQ=; b=DqTcfhEOyT+mjya84EPGVrM1imjDeblcaBYwSTzOxQYWNd7Sxj+G2zkIvTMr27NXSkLH YwCMK1oAw8clCxnrvtktuamiNqy3/2L5FGqPVJAKmXMtlLIAZkgL7Xb9lwNXt/zlwjj+ g/tXBi70Q0H/h5xkp10E1dsHKe9RbmMr4/IdRhqw+t7MhfiT3cbMIjPqJ3ATFTEH45l8 8U1HEraZ7IV/4NAm8H2Pph2HvEftW9I5xblkFqbHCkuDZMdoIXPZV1JeKWL11M0eHx5i AKn8VypoIsE50fhMd/ZeHzv7iv0OpJ0zhr4c1hWKq8Rbjx414URLPZsvqup0j/irA8Lf zg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 33c1jfhyq1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Sep 2020 15:50:04 +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 AA153100038; Fri, 11 Sep 2020 15:50:02 +0200 (CEST) Received: from Webmail-eu.st.com (gpxdag3node4.st.com [10.75.127.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8D99F2AD9FD; Fri, 11 Sep 2020 15:50:02 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.44) by GPXDAG3NODE4.st.com (10.75.127.71) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 11 Sep 2020 15:50:00 +0200 Subject: Re: [PATCH 2/3] dt-bindings: remoteproc: stm32_rproc: update for firmware synchronization To: Rob Herring CC: Alexandre TORGUE , "devicetree@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Fabien DESSENNE , Mathieu Poirier , Ohad Ben-Cohen , Bjorn Andersson References: <20200827072101.26588-1-arnaud.pouliquen@st.com> <20200827072101.26588-3-arnaud.pouliquen@st.com> <20200909202251.GA2975092@bogus> From: Arnaud POULIQUEN Message-ID: Date: Fri, 11 Sep 2020 15:49:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200909202251.GA2975092@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To GPXDAG3NODE4.st.com (10.75.127.71) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-11_05:2020-09-10,2020-09-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 9/9/20 10:22 PM, Rob Herring wrote: > On Thu, Aug 27, 2020 at 09:21:00AM +0200, Arnaud Pouliquen wrote: >> Add new properties description used to attach to a pre-loaded >> firmware according to the commit 9276536f455b3 >> ("remoteproc: stm32: Parse syscon that will manage M4 synchronisation") >> which updates the driver part. >> >> Signed-off-by: Arnaud Pouliquen >> --- >> .../bindings/remoteproc/st,stm32-rproc.yaml | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml >> index 4ffa25268fcc..e50957d86b1c 100644 >> --- a/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml >> +++ b/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml >> @@ -96,6 +96,25 @@ properties: >> 3rd cell: register bitmask for the deep sleep bit >> maxItems: 1 >> >> + st,syscfg-m4-state: >> + $ref: "/schemas/types.yaml#/definitions/phandle-array" >> + description: | >> + Reference to the tamp register which exposes the Cortex-M4 state. >> + 1st cell: phandle to syscon block >> + 2nd cell: register offset containing the Cortex-M4 state >> + 3rd cell: register bitmask for the Cortex-M4 state >> + maxItems: 1 >> + >> + st,syscfg-rsc-tbl: >> + $ref: "/schemas/types.yaml#/definitions/phandle-array" >> + description: | >> + Reference to the tamp register which references the Cortex-M4 >> + resource table address. >> + 1st cell: phandle to syscon block >> + 2nd cell: register offset containing the resource table address >> + 3rd cell: register bitmask for the resource table address >> + maxItems: 1 > > Why can't these be implied? You can lookup the tamp syscon by > compatible. I just made a copy/past of the "st,syscfg-pdds" syscon description available in the same file [1] I can provide a shorter descriptions, something like this: description: | Reference to the tamp syscon register and bitmask which contains the Cortex-M4 resource table address. maxItems: 1 Would this meet your expectations? If yes, I will also add in next version an extra patch to fix [1] [1] https://elixir.bootlin.com/linux/v5.9-rc3/source/Documentation/devicetree/bindings/remoteproc/st,stm32-rproc.yaml#L90 > > Please add these to the example. I will extend the example with these properties Thanks, Arnaud > >> + >> st,auto-boot: >> $ref: /schemas/types.yaml#/definitions/flag >> description: >> -- >> 2.17.1 >>