mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Viken Dadhaniya <quic_vdadhani@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	<andersson@kernel.org>, <konradybcio@kernel.org>,
	<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Cc: <quic_msavaliy@quicinc.com>, <quic_anupkulk@quicinc.com>
Subject: Re: [PATCH v1] arm64: dts: qcom: qcs615: Add QUPv3 configuration
Date: Mon, 28 Oct 2024 16:49:43 +0530	[thread overview]
Message-ID: <332f7a0a-d9df-49bd-81d5-cc04c50183b9@quicinc.com> (raw)
In-Reply-To: <15238992-4ede-4b85-9947-391baaa4c8a9@oss.qualcomm.com>



On 10/26/2024 1:10 AM, Konrad Dybcio wrote:
> On 11.10.2024 12:33 PM, Viken Dadhaniya wrote:
>> Add DT support for QUPv3 Serial Engines.
>>
>> Co-developed-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
>> Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
>> Signed-off-by: Viken Dadhaniya <quic_vdadhani@quicinc.com>
>> ---
> 
> [...]
> 
>> +	qup_opp_table: opp-table-qup {
>> +		compatible = "operating-points-v2";
> 
> opp-shared;

Added in v2.

> 
>> +
>> +		opp-75000000 {
>> +			opp-hz = /bits/ 64 <75000000>;
>> +			required-opps = <&rpmhpd_opp_low_svs>;
>> +		};
>> +
>> +		opp-100000000 {
>> +			opp-hz = /bits/ 64 <100000000>;
>> +			required-opps = <&rpmhpd_opp_svs>;
>> +		};
>> +
>> +		opp-128000000 {
>> +			opp-hz = /bits/ 64 <128000000>;
>> +			required-opps = <&rpmhpd_opp_nom>;
>> +		};
>> +	};
>> +
>>   	psci {
>>   		compatible = "arm,psci-1.0";
>>   		method = "smc";
>> @@ -392,6 +427,24 @@
>>   			#size-cells = <1>;
>>   		};
>>   
>> +		gpi_dma0: qcom,gpi-dma@800000  {
>> +			compatible = "qcom,sdm845-gpi-dma";
> 
> You must define a new compatible for qcs615, sdm845 is used as a fallback
> (so that we don't have to add new driver entries). You will however need
> to submit a separate dt-bindings change.

We have added sdm845 in compatible due to below comment in driver file

File: 
https://github.com/torvalds/linux/blob/81983758430957d9a5cb3333fe324fd70cf63e7e/drivers/dma/qcom/gpi.c#L2284

   /*
    * Do not grow the list for compatible devices. Instead use
    * qcom,sdm845-gpi-dma (for ee_offset = 0x0) or qcom,sm6350-gpi-dma
    * (for ee_offset = 0x10000).
    */

Do we still require new compatible for qcs615 ?

> 
>> +			reg = <0x0 0x800000 0x0 0x60000>;
>> +			#dma-cells = <3>;
>> +			interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>;
>> +			dma-channels = <8>;
>> +			dma-channel-mask = <0xf>;
>> +			iommus = <&apps_smmu 0xd6 0x0>;
>> +			status = "disabled";
> 
> Any reason?

By default, we are disabling all nodes. In the target-specific file, we 
will update them based on the required use case.

> 
>> +		};
>> +
>>   		qupv3_id_0: geniqup@8c0000 {
>>   			compatible = "qcom,geni-se-qup";
>>   			reg = <0x0 0x8c0000 0x0 0x6000>;
>> @@ -400,6 +453,7 @@
>>   				 <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
>>   			clock-names = "m-ahb",
>>   				      "s-ahb";
>> +			iommus = <&apps_smmu 0xc3 0x0>;
> 
> This looks like a separate fix

One QUP and UART (console) related change has been added as part of the 
base DTSI. Now, we are adding all remaining QUP and I2C/SPI/UART 
configurations with IOMMUs and other properties.

Is there any specific reason to make this a separate fix?

> 
>>   			#address-cells = <2>;
>>   			#size-cells = <2>;
>>   			status = "disabled";
>> @@ -412,13 +466,377 @@
>>   				pinctrl-0 = <&qup_uart0_tx>, <&qup_uart0_rx>;
>>   				pinctrl-names = "default";
>>   				interrupts = <GIC_SPI 601 IRQ_TYPE_LEVEL_HIGH>;
>> -				interconnects = <&aggre1_noc MASTER_QUP_0 0
>> -						 &mc_virt SLAVE_EBI1 0>,
>> -						<&gem_noc MASTER_APPSS_PROC 0
>> -						 &config_noc SLAVE_QUP_0 0>;
>> +				interconnects = <&aggre1_noc MASTER_QUP_0 0 &mc_virt SLAVE_EBI1 0>,
>> +						<&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
> 
> Why?
> 
> Also, please use QCOM_ICC_TAG_ALWAYS instead of zeroes

Updated in v2.

> 
> Konrad

  reply	other threads:[~2024-10-28 11:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11 10:33 Viken Dadhaniya
2024-10-25 19:40 ` Konrad Dybcio
2024-10-28 11:19   ` Viken Dadhaniya [this message]
2024-10-28 12:28     ` Dmitry Baryshkov
2024-11-11  8:48       ` Viken Dadhaniya
2024-10-28 13:08     ` Konrad Dybcio
2024-11-11  8:55       ` Viken Dadhaniya
2024-10-28 11:33 ` Krzysztof Kozlowski
2024-11-11  8:50   ` Viken Dadhaniya

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=332f7a0a-d9df-49bd-81d5-cc04c50183b9@quicinc.com \
    --to=quic_vdadhani@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@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_anupkulk@quicinc.com \
    --cc=quic_msavaliy@quicinc.com \
    --cc=robh@kernel.org \
    /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

all inboxes | Powered by JetHome®