forked from Openwrt-EcoNet/openwrt
Add relevant patches from upstream, up to v5.16-rc6. The gaps in the patch numbersing are either patches that were picked into the stable kernel (6.12.y), or that are already backported in target/linux/generic. The gaps makes it easy for me to pick these patches from my working kernel git branch. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18796 Signed-off-by: Robert Marko <robimarko@gmail.com>
106 lines
2.8 KiB
Diff
106 lines
2.8 KiB
Diff
From 66fde1c5d29006127cc4fc5a12a0c42415c098bd Mon Sep 17 00:00:00 2001
|
|
From: Md Sadre Alam <quic_mdalam@quicinc.com>
|
|
Date: Mon, 24 Feb 2025 16:44:13 +0530
|
|
Subject: [PATCH 16/22] v6.15: spi: dt-bindings: Introduce qcom,spi-qpic-snand
|
|
|
|
Document the QPIC-SPI-NAND flash controller present in the IPQ SoCs.
|
|
It can work both in serial and parallel mode and supports typical
|
|
SPI-NAND page cache operations.
|
|
|
|
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
|
|
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
|
|
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
|
|
Link: https://patch.msgid.link/20250224111414.2809669-2-quic_mdalam@quicinc.com
|
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
---
|
|
.../bindings/spi/qcom,spi-qpic-snand.yaml | 83 +++++++++++++++++++
|
|
1 file changed, 83 insertions(+)
|
|
create mode 100644 Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
|
|
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
|
|
@@ -0,0 +1,83 @@
|
|
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
+%YAML 1.2
|
|
+---
|
|
+$id: http://devicetree.org/schemas/spi/qcom,spi-qpic-snand.yaml#
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
+
|
|
+title: Qualcomm QPIC NAND controller
|
|
+
|
|
+maintainers:
|
|
+ - Md sadre Alam <quic_mdalam@quicinc.com>
|
|
+
|
|
+description:
|
|
+ The QCOM QPIC-SPI-NAND flash controller is an extended version of
|
|
+ the QCOM QPIC NAND flash controller. It can work both in serial
|
|
+ and parallel mode. It supports typical SPI-NAND page cache
|
|
+ operations in single, dual or quad IO mode with pipelined ECC
|
|
+ encoding/decoding using the QPIC ECC HW engine.
|
|
+
|
|
+allOf:
|
|
+ - $ref: /schemas/spi/spi-controller.yaml#
|
|
+
|
|
+properties:
|
|
+ compatible:
|
|
+ enum:
|
|
+ - qcom,ipq9574-snand
|
|
+
|
|
+ reg:
|
|
+ maxItems: 1
|
|
+
|
|
+ clocks:
|
|
+ maxItems: 3
|
|
+
|
|
+ clock-names:
|
|
+ items:
|
|
+ - const: core
|
|
+ - const: aon
|
|
+ - const: iom
|
|
+
|
|
+ dmas:
|
|
+ items:
|
|
+ - description: tx DMA channel
|
|
+ - description: rx DMA channel
|
|
+ - description: cmd DMA channel
|
|
+
|
|
+ dma-names:
|
|
+ items:
|
|
+ - const: tx
|
|
+ - const: rx
|
|
+ - const: cmd
|
|
+
|
|
+required:
|
|
+ - compatible
|
|
+ - reg
|
|
+ - clocks
|
|
+ - clock-names
|
|
+
|
|
+unevaluatedProperties: false
|
|
+
|
|
+examples:
|
|
+ - |
|
|
+ #include <dt-bindings/clock/qcom,ipq9574-gcc.h>
|
|
+ spi@79b0000 {
|
|
+ compatible = "qcom,ipq9574-snand";
|
|
+ reg = <0x1ac00000 0x800>;
|
|
+
|
|
+ clocks = <&gcc GCC_QPIC_CLK>,
|
|
+ <&gcc GCC_QPIC_AHB_CLK>,
|
|
+ <&gcc GCC_QPIC_IO_MACRO_CLK>;
|
|
+ clock-names = "core", "aon", "iom";
|
|
+
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ flash@0 {
|
|
+ compatible = "spi-nand";
|
|
+ reg = <0>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ nand-ecc-engine = <&qpic_nand>;
|
|
+ nand-ecc-strength = <4>;
|
|
+ nand-ecc-step-size = <512>;
|
|
+ };
|
|
+ };
|