From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58AD3C78854 for ; Fri, 20 Sep 2024 14:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qFJ5bntnjyUE6Fhw/U8dv1+N54XtNbWJAAdLbr9t+DA=; b=C2alJ/HnuLTJqYMjJR1q3XHx+R L+JzrP6Cg0Gv7GBnpMg9kvcsV4EvMEM0QfDePEMRSamBNzivzwnmmtzcPexQ5NlsP00i+vUaFoiEj GfnyItUet8ozXYNooZbwf5mf1/A95XKNcLor4qnCR1Kl5MKZvAvD1Hd4nPBHPY8JtGeoUgPdo//+n 1WXaEIBEplNGSrP1TOu1h3MrM//vx/4XxwO5dsEI8OzJdJY9uRsG4mZ0LS7CzkftVPWVWTuOFTVW/ ziV93pUlisBiQtZsfkLjvKMpMUY0wH3X1rm26oSGmK8a1ShH88kxF3KmOzE3+rJdk422NwFWSZQfU CWUpR0CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sreVi-0000000CNAo-0FwX; Fri, 20 Sep 2024 14:21:26 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sreUV-0000000CMkY-3rT7 for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 14:20:14 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F7AC1007; Fri, 20 Sep 2024 07:20:38 -0700 (PDT) Received: from e130802.arm.com (unknown [10.57.52.210]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5BFCF3F66E; Fri, 20 Sep 2024 07:20:05 -0700 (PDT) Date: Fri, 20 Sep 2024 15:19:58 +0100 From: Abdellatif El Khlifi To: Krzysztof Kozlowski Cc: mathieu.poirier@linaro.org, Adam.Johnston@arm.com, Hugues.KambaMpiana@arm.com, Drew.Reed@arm.com, andersson@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, liviu.dudau@arm.com, lpieralisi@kernel.org, robh@kernel.org, sudeep.holla@arm.com, robin.murphy@arm.com Subject: Re: [PATCH v2 1/5] dt-bindings: remoteproc: sse710: Add the External Systems remote processors Message-ID: <20240920141958.GA288724@e130802.arm.com> References: <20240822170951.339492-1-abdellatif.elkhlifi@arm.com> <20240822170951.339492-2-abdellatif.elkhlifi@arm.com> <20240919093517.GA43740@e130802.arm.com> <222b3b11-151a-4ad0-91ea-54ae8f280bcb@kernel.org> <20240919145741.GA7940@e130802.arm.com> <85a223e9-05a4-4034-87a5-57d3eb9409b7@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85a223e9-05a4-4034-87a5-57d3eb9409b7@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_072012_086828_EB83F7E9 X-CRM114-Status: GOOD ( 22.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Krzysztof, > >>>>> + '#extsys-id': > >>>> > >>>> '#' is not correct for sure, that's not a cell specifier. > >>>> > >>>> But anyway, we do not accept in general instance IDs. > >>> > >>> I'm happy to replace the instance ID with another solution. > >>> In our case the remoteproc instance does not have a base address > >>> to use. So, we can't put remoteproc@address > >>> > >>> What do you recommend in this case please ? > >> > >> Waiting one month to respond is a great way to drop all context from my > >> memory. The emails are not even available for me - gone from inbox. > >> > >> Bus addressing could note it. Or you have different devices, so > >> different compatibles. Tricky to say, because you did not describe the > >> hardware really and it's one month later... > >> > > > > Sorry for waiting. I was in holidays. > > > > I'll add more documentation about the external system for more clarity [1]. > > > > Basically, Linux runs on the Cortex-A35. The External system is a > > Cortex-M core. The Cortex-A35 can not access the memory of the Cortex-M. > > It can only control Cortex-M core using the reset control and status registers mapped > > in the memory space of the Cortex-A35. > > That's pretty standard. > > It does not explain me why bus addressing or different compatible are > not sufficient here. Using an instance ID was a design choice. I'm happy to replace it with the use of compatible and match data (WIP). The match data will be pointing to a data structure containing the right offsets to be used with regmap APIs. syscon node is used to represent the Host Base System Control register area [1] where the external system reset registers are mapped (EXT_SYS*). The nodes will look like this: syscon@1a010000 { compatible = "arm,sse710-host-base-sysctrl", "simple-mfd", "syscon"; reg = <0x1a010000 0x1000>; #address-cells = <1>; #size-cells = <1>; remoteproc@310 { compatible = "arm,sse710-extsys0"; reg = <0x310 4>; ... } remoteproc@318 { compatible = "arm,sse710-extsys1"; reg = <0x318 4>; ... } [1]: https://developer.arm.com/documentation/102342/0000/Programmers-model/Register-descriptions/Host-Base-System-Control-register-summary Cheers Abdellatif