[PATCH 1/2] dt-bindings: spi: spi-qpic-snand: Add IPQ5018 compatible

George Moussalem via B4 Relay posted 2 patches 9 months, 2 weeks ago
[PATCH 1/2] dt-bindings: spi: spi-qpic-snand: Add IPQ5018 compatible
Posted by George Moussalem via B4 Relay 9 months, 2 weeks ago
From: George Moussalem <george.moussalem@outlook.com>

IPQ5018 contains the QPIC-SPI-NAND flash controller which is the same as
the one found in IPQ9574. So let's document the IPQ5018 compatible and
use IPQ9574 as the fallback.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
---
 Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
index aa3f933192034fe6d54d6149373d50c31ec4aa96..cb1f15224b45574a3c3d603566c859a9bec41937 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml
@@ -21,8 +21,12 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - qcom,ipq9574-snand
+    oneOf:
+      - items:
+          - enum:
+              - qcom,ipq5018-snand
+          - const: qcom,ipq9574-snand
+      - const: qcom,ipq9574-snand
 
   reg:
     maxItems: 1

-- 
2.49.0
Re: [PATCH 1/2] dt-bindings: spi: spi-qpic-snand: Add IPQ5018 compatible
Posted by Krzysztof Kozlowski 9 months, 2 weeks ago
On Thu, May 01, 2025 at 01:20:51PM GMT, George Moussalem wrote:
> IPQ5018 contains the QPIC-SPI-NAND flash controller which is the same as
> the one found in IPQ9574. So let's document the IPQ5018 compatible and
> use IPQ9574 as the fallback.
> 
> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
> ---
>  Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof