Add QPIC NAND support for IPQ6018
Subsystems (6)
cover Add QPIC NAND support for IPQ6018
IPQ6018 has the QPIC NAND controller of version 1.5.0, which uses the BAM DMA. Add support for the QPIC BAM, QPIC NAND and enable the same in the board DTS file.
Kathiravan T (3):
dt-bindings: qcom_nandc: IPQ6018 QPIC NAND documentation
mtd: rawnand: qcom: Support for IPQ6018 QPIC NAND controller
arm64: dts: ipq6018: Add the QPIC peripheral nodes
.../devicetree/bindings/mtd/qcom_nandc.txt | 2 + arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 16 ++++++++ arch/arm64/boot/dts/qcom/ipq6018.dtsi | 41 +++++++++++++++++++ drivers/mtd/nand/raw/qcom_nandc.c | 4 ++ 4 files changed, 63 insertions(+)
base-commit: bbf5c979011a099af5dc76498918ed7df445635b
Signature · 6 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
PATCH 1/3 dt-bindings: qcom_nandc: IPQ6018 QPIC NAND documentation
Add the binding for the QPIC NAND used on IPQ6018 SoC.
--- Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mtd/qcom_nandc.txt +2 -0
@@ -6,6 +6,8 @@ Required properties: SoC and it uses ADM DMA * "qcom,ipq4019-nand" - for QPIC NAND controller v1.4.0 being used in IPQ4019 SoC and it uses BAM DMA + * "qcom,ipq6018-nand" - for QPIC NAND controller v1.5.0 being used in + IPQ6018 SoC and it uses BAM DMA * "qcom,ipq8074-nand" - for QPIC NAND controller v1.5.0 being used in IPQ8074 SoC and it uses BAM DMA
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH 1/3] dt-bindings: qcom_nandc: IPQ6018 QPIC NAND documentation
Quoted 7 lines · Kathiravan T
Add the binding for the QPIC NAND used on IPQ6018 SoC.
Signed-off-by Kathiravan T <[email protected]>--- Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 2 ++ 1 file changed, 2 insertions(+)
Re: [PATCH 1/3] dt-bindings: qcom_nandc: IPQ6018 QPIC NAND documentation
In reply to Kathiravan TQuoted 4 lines · Kathiravan T
Add the binding for the QPIC NAND used on IPQ6018 SoC.
Signed-off-by Kathiravan T <[email protected]>Acked-by Rob Herring <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
PATCH 2/3 mtd: rawnand: qcom: Support for IPQ6018 QPIC NAND controller
In reply to Kathiravan TAdd the compatible string for IPQ6018 QPIC NAND controller version 1.5.0. It's properties are same as IPQ8074, so reuse the same.
--- drivers/mtd/nand/raw/qcom_nandc.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/mtd/nand/raw/qcom_nandc.c +4 -0
@@ -3071,6 +3071,10 @@ static const struct of_device_id qcom_nandc_of_match[] = { .compatible = "qcom,ipq4019-nand", .data = &ipq4019_nandc_props, }, + { + .compatible = "qcom,ipq6018-nand", + .data = &ipq8074_nandc_props, + }, { .compatible = "qcom,ipq8074-nand", .data = &ipq8074_nandc_props,
Signature · 6 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 2/3] mtd: rawnand: qcom: Support for IPQ6018 QPIC NAND controller
Quoted 5 lines · Kathiravan T
Add the compatible string for IPQ6018 QPIC NAND controller version 1.5.0. It's properties are same as IPQ8074, so reuse the same.
Signed-off-by Kathiravan T <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
PATCH 3/3 arm64: dts: ipq6018: Add the QPIC peripheral nodes
In reply to Kathiravan TAdd the QPIC BAM and QPIC NAND controller support and enable the same in board DTS file.
--- arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts | 16 ++++++++ arch/arm64/boot/dts/qcom/ipq6018.dtsi | 41 ++++++++++++++++++++ 2 files changed, 57 insertions(+)
arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dts +16 -0
@@ -62,3 +62,19 @@ spi_0_pins: spi-0-pins { bias-pull-down; }; }; + +&qpic_bam { + status = "ok"; +}; + +&qpic_nand { + status = "ok"; + + nand@0 { + reg = <0>; + + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; +};
arch/arm64/boot/dts/qcom/ipq6018.dtsi +41 -0
53 lines not on this page · raw message
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation