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 74215CF9C5B for ; Sat, 21 Sep 2024 18:22:14 +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:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Bua31JXc4cPcagf5m2AsH/zg00J9Z07W/NvWkJAHDZY=; b=gpPs6Ti3VN2+aaQLSwjwaAmu0B JW29grnEel0jKb9MrUbpU/gAfq7Qhb1/pKNakj5Uh/d+6UzrX4Go0yRfv2rFDpnPokV1hlhfLmcTR 6nSxQubTY0owQpvIcxhHBa2zVsp2+/QfBVMtyYGHvU8n9bAYra8hsVJfCfcRDr3z9+4q0nRV1rtJY ef40416XB/6tb1oA0/PGElbn/RE4HHdJicmGmBfHKji8Og9ucrpVBb1rH4tFU3EQnnmE8QpYD8gX5 69Cf0zUi/Yjdt76bzn+RzEbVdenXAY5hV2qRYitNYEY736hWh1SxiLn8vT2Ewrq6Rt8kVa3L9yvBf +bCVEejA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ss4k3-0000000E0Ee-3vw8; Sat, 21 Sep 2024 18:21:59 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ss4iw-0000000E06p-07tb for linux-arm-kernel@lists.infradead.org; Sat, 21 Sep 2024 18:20:51 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1CEC2A40AD3; Sat, 21 Sep 2024 18:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C1F1C4CEC2; Sat, 21 Sep 2024 18:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726942847; bh=jGWTXU2FmyEE3RyNInUPd012PyW1YlOkrWhl1b6PIY4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BFvpl14qlVw6jIz/O0e8ADaeANBfS1HNPXN6kdZM10f89xnWuEXxykMITjdN1PM9r dAcvNLYGFndUQipjEdFGGmQz+rH4jhQjx3Un907TbgFyqAMUnq0mZbySsYMoydHVHP EomM3t1Q2KAjSj6cSGWWPmCNFKZmK1SwApm7+Xj7wFxXs4we4Z1JBrmn4gmv5iWGxU Tz54aaAjCmNVWgQhshChhYQL6e0E9Cg+7mi7u1s8DqTJvcIjqp1FmmBSQ/S64fU50/ WBJO21Vnij2rYF9CDVlCiDk2b2s4aBRcitoy7arXRVMjLEqUGVatB5+x2n5jvvH/E0 /HZqJZoGv+BOg== Message-ID: Date: Sat, 21 Sep 2024 20:20:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/5] dt-bindings: remoteproc: sse710: Add the External Systems remote processors To: Abdellatif El Khlifi 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 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> <20240920141958.GA288724@e130802.arm.com> <7784248d-4372-4cf1-a01a-5b731b3f6b96@kernel.org> <20240920163851.GA385919@e130802.arm.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ew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aAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240920163851.GA385919@e130802.arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240921_112050_232212_C171C6DB X-CRM114-Status: GOOD ( 17.91 ) 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 On 20/09/2024 18:38, Abdellatif El Khlifi wrote: > 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>; >> >> Uh, why do you create device nodes for one word? This really suggests it >> is part of parent device and your split is artificial. > > The external system registers (described by the remoteproc node) are part > of the parent device (the Host Base System Control register area) described > by syscon. > > In case of the external system 0 , its registers are located at offset 0x310 > (physical address: 0x1a010310) > > When instantiating the devices without @address, the DTC compiler > detects 2 nodes with the same name (remoteproc). There should be no children at all. DT is not for instantiating your drivers. I claim you have only one device and that's arm,sse710-host-base-sysctrl. If you create child node for one word, that's not a device. Best regards, Krzysztof