linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Jingyi Wang <jingyi.wang@oss.qualcomm.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Robert Marko <robimarko@gmail.com>,
	Das Srinagesh <quic_gurus@quicinc.com>,
	aiqun.yu@oss.qualcomm.com, tingwei.zhang@oss.qualcomm.com,
	trilok.soni@oss.qualcomm.com, yijie.yang@oss.qualcomm.com,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Eugen Hristev <eugen.hristev@linaro.org>
Subject: Re: [PATCH v2 1/4] dt-bindings: soc: qcom: Add qcom,kaanapali-imem compatible
Date: Thu, 23 Oct 2025 10:54:28 +0200	[thread overview]
Message-ID: <879adf4f-492e-4107-b034-dbd3a4866f40@oss.qualcomm.com> (raw)
In-Reply-To: <lz4sbvzfiij3qsa4d7jeblmi2vfubc4ltf435sh6tcs53l6fbq@7f3tfm7yiyjc>

On 10/23/25 12:42 AM, Bjorn Andersson wrote:
> On Wed, Oct 22, 2025 at 12:34:58PM +0300, Dmitry Baryshkov wrote:
>> On Wed, Oct 22, 2025 at 05:05:30PM +0800, Jingyi Wang wrote:
>>>
>>>
>>> On 10/22/2025 4:49 PM, Dmitry Baryshkov wrote:
>>>> On Wed, Oct 22, 2025 at 12:28:41AM -0700, Jingyi Wang wrote:
>>>>> Document qcom,kaanapali-imem compatible.
>>>>>
>>>>> Reviewed-by: Eugen Hristev <eugen.hristev@linaro.org>
>>>>> Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
>>>>> ---
>>>>>  Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 +
>>>>>  1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml
>>>>> index 6a627c57ae2f..1e29a8ff287f 100644
>>>>> --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml
>>>>> +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml
>>>>> @@ -19,6 +19,7 @@ properties:
>>>>>        - enum:
>>>>>            - qcom,apq8064-imem
>>>>>            - qcom,ipq5424-imem
>>>>> +          - qcom,kaanapali-imem
>>>>
>>>> Can you use mmio-sram instead?
>>>>
>>>
>>> Here is the node: 
>>>
>>> 		sram@14680000 {
>>> 			compatible = "qcom,kaanapali-imem", "syscon", "simple-mfd";
>>> 			reg = <0x0 0x14680000 0x0 0x1000>;
>>> 			ranges = <0 0 0x14680000 0x1000>;
>>>
>>> 			#address-cells = <1>;
>>> 			#size-cells = <1>;
>>>
>>> 			pil-reloc@94c {
>>> 				compatible = "qcom,pil-reloc-info";
>>> 				reg = <0x94c 0xc8>;
>>> 			};
>>> 		};
>>>
>>> other qualcomm are also using imem, could you please give more details on why
>>> we should use mmio-sram here?
>>
>> https://lore.kernel.org/linux-arm-msm/e4c5ecc3-fd97-4b13-a057-bb1a3b7f9207@kernel.org/
>>
> 
> I considered exactly this when I wrote the binding back then...
> 
> But the binding defines mmio-sram as "Simple IO memory regions to be
> managed by the genalloc API." and the Linux sram driver follows that and
> registers a gen_pool across the sram memory region.
> 
> I believe IMEM is SRAM (it's at least not registers), but its memory
> layout is fixed, so it's not a pool in any form.

I tried to get answers for this internally, but no dice.. It's fair
to assume that's what it is though, I think..

We can probably change the compatible and restart my old IPA-IMEM
series which touched upon that while at it:

code+bindings:
https://lore.kernel.org/lkml/20250527-topic-ipa_imem-v2-0-6d1aad91b841@oss.qualcomm.com/

(incl. discussion with Krzysztof about mmio-sram)

dt:
https://lore.kernel.org/linux-arm-msm/20250523-topic-ipa_mem_dts-v1-0-f7aa94fac1ab@oss.qualcomm.com/

I seem to even have the relevant bindings patches on my computer:

https://github.com/quic-kdybcio/linux/commits/topic/imem_sram/

Konrad

  parent reply	other threads:[~2025-10-23  8:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22  7:28 [PATCH v2 0/4] dt-bindings: soc: qcom: Add soc related bindings for Kaanapali and Glymur Jingyi Wang
2025-10-22  7:28 ` [PATCH v2 1/4] dt-bindings: soc: qcom: Add qcom,kaanapali-imem compatible Jingyi Wang
2025-10-22  8:49   ` Dmitry Baryshkov
2025-10-22  9:05     ` Jingyi Wang
2025-10-22  9:34       ` Dmitry Baryshkov
2025-10-22 22:42         ` Bjorn Andersson
2025-10-23  0:06           ` Dmitry Baryshkov
2025-10-23  4:36             ` Jingyi Wang
2025-10-27 18:44             ` Bjorn Andersson
2025-10-29 11:47               ` Aiqun(Maria) Yu
2025-10-29 15:37                 ` Bjorn Andersson
2025-11-04 12:51                   ` Konrad Dybcio
2025-10-23  8:54           ` Konrad Dybcio [this message]
2025-10-22  7:28 ` [PATCH v2 2/4] dt-bindings: soc: qcom,aoss-qmp: Document the Kaanapali AOSS channel Jingyi Wang
2025-10-26 22:15   ` Rob Herring (Arm)
2025-10-22  7:28 ` [PATCH v2 3/4] dt-bindings: firmware: qcom,scm: Document SCM on Kaanapali SOC Jingyi Wang
2025-10-22  8:50   ` Dmitry Baryshkov
2025-10-22  9:07     ` Jingyi Wang
2025-10-26 22:16   ` Rob Herring (Arm)
2025-10-22  7:28 ` [PATCH v2 4/4] dt-bindings: soc: qcom,aoss-qmp: Document the Glymur AOSS side channel Jingyi Wang
2025-10-26 22:16   ` Rob Herring (Arm)
2025-10-30 16:25 ` (subset) [PATCH v2 0/4] dt-bindings: soc: qcom: Add soc related bindings for Kaanapali and Glymur Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=879adf4f-492e-4107-b034-dbd3a4866f40@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=aiqun.yu@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=eugen.hristev@linaro.org \
    --cc=jingyi.wang@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_gurus@quicinc.com \
    --cc=robh@kernel.org \
    --cc=robimarko@gmail.com \
    --cc=tingwei.zhang@oss.qualcomm.com \
    --cc=trilok.soni@oss.qualcomm.com \
    --cc=yijie.yang@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).