Add devicetree node to enable support for QPIC
NAND controller on Qualcomm SDX75 platform.
Since there is no "aon" clock in SDX75, a dummy
clock is provided.
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi
index e3a0ee661c4a..9c43b14a0594 100644
--- a/arch/arm64/boot/dts/qcom/sdx75.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdx75.dtsi
@@ -37,6 +37,12 @@
clock-frequency = <32764>;
#clock-cells = <0>;
};
+
+ nand_clk_dummy: nand-clk-dummy {
+ compatible = "fixed-clock";
+ clock-frequency = <32764>;
+ #clock-cells = <0>;
+ };
};
cpus {
@@ -894,6 +900,24 @@
status = "disabled";
};
+ qpic_nand: nand-controller@1cc8000 {
+ compatible = "qcom,sdx75-nand", "qcom,sdx55-nand";
+ reg = <0x0 0x01cc8000 0x0 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&rpmhcc RPMH_QPIC_CLK>,
+ <&nand_clk_dummy>;
+ clock-names = "core", "aon";
+
+ dmas = <&qpic_bam 0>,
+ <&qpic_bam 1>,
+ <&qpic_bam 2>;
+ dma-names = "tx", "rx", "cmd";
+ iommus = <&apps_smmu 0x100 0x3>;
+ dma-coherent;
+ status = "disabled";
+ };
+
tcsr_mutex: hwlock@1f40000 {
compatible = "qcom,tcsr-mutex";
reg = <0x0 0x01f40000 0x0 0x40000>;
--
2.17.1
On 13/03/2025 14:09, Kaushal Kumar wrote: > Add devicetree node to enable support for QPIC > NAND controller on Qualcomm SDX75 platform. > Since there is no "aon" clock in SDX75, a dummy > clock is provided. Add the clock first. Please wrap code according to the preferred limit expressed in Kernel coding style (checkpatch is not a coding style description, but only a tool). However don't wrap blindly (see Kernel coding style). Best regards, Krzysztof
On 3/13/2025 8:20 PM, Krzysztof Kozlowski wrote: > On 13/03/2025 14:09, Kaushal Kumar wrote: >> Add devicetree node to enable support for QPIC >> NAND controller on Qualcomm SDX75 platform. >> Since there is no "aon" clock in SDX75, a dummy >> clock is provided. > Add the clock first. > > Please wrap code according to the preferred limit expressed in Kernel > coding style (checkpatch is not a coding style description, but only a > tool). However don't wrap blindly (see Kernel coding style). Sure, will update in v2. > Best regards, > Krzysztof
On 3/13/25 2:09 PM, Kaushal Kumar wrote:
> Add devicetree node to enable support for QPIC
> NAND controller on Qualcomm SDX75 platform.
> Since there is no "aon" clock in SDX75, a dummy
> clock is provided.
Alter the bindings not to require it then, instead
[...]
>
> + qpic_nand: nand-controller@1cc8000 {
> + compatible = "qcom,sdx75-nand", "qcom,sdx55-nand";
> + reg = <0x0 0x01cc8000 0x0 0x10000>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + clocks = <&rpmhcc RPMH_QPIC_CLK>,
> + <&nand_clk_dummy>;
> + clock-names = "core", "aon";
> +
> + dmas = <&qpic_bam 0>,
> + <&qpic_bam 1>,
> + <&qpic_bam 2>;
> + dma-names = "tx", "rx", "cmd";
Please make dma-names a vertical list, just like dmas
Konrad
On 3/13/2025 8:06 PM, Konrad Dybcio wrote:
> On 3/13/25 2:09 PM, Kaushal Kumar wrote:
>> Add devicetree node to enable support for QPIC
>> NAND controller on Qualcomm SDX75 platform.
>> Since there is no "aon" clock in SDX75, a dummy
>> clock is provided.
> Alter the bindings not to require it then, instead
>
> [...]
Will update in v2.
>
>>
>> + qpic_nand: nand-controller@1cc8000 {
>> + compatible = "qcom,sdx75-nand", "qcom,sdx55-nand";
>> + reg = <0x0 0x01cc8000 0x0 0x10000>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + clocks = <&rpmhcc RPMH_QPIC_CLK>,
>> + <&nand_clk_dummy>;
>> + clock-names = "core", "aon";
>> +
>> + dmas = <&qpic_bam 0>,
>> + <&qpic_bam 1>,
>> + <&qpic_bam 2>;
>> + dma-names = "tx", "rx", "cmd";
> Please make dma-names a vertical list, just like dmas
Sure, will update in v2.
>
> Konrad
© 2016 - 2025 Red Hat, Inc.