Commit 8aa2ef23 authored by Xiangsheng Hou's avatar Xiangsheng Hou Committed by Mark Brown

spi: dt-bindings: mtk-snfi: Add compatible for MT7986

Add dt-bindings documentation of SPI NAND controller
for MediaTek MT7986 SoC platform. And add optional
nfi_hclk property which is needed for MT7986.
Signed-off-by: default avatarXiangsheng Hou <xiangsheng.hou@mediatek.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230201020921.26712-4-xiangsheng.hou@mediatek.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1d36c990
...@@ -18,14 +18,12 @@ description: | ...@@ -18,14 +18,12 @@ description: |
using the accompanying ECC engine. There should be only one spi using the accompanying ECC engine. There should be only one spi
slave device following generic spi bindings. slave device following generic spi bindings.
allOf:
- $ref: /schemas/spi/spi-controller.yaml#
properties: properties:
compatible: compatible:
enum: enum:
- mediatek,mt7622-snand - mediatek,mt7622-snand
- mediatek,mt7629-snand - mediatek,mt7629-snand
- mediatek,mt7986-snand
reg: reg:
items: items:
...@@ -36,14 +34,12 @@ properties: ...@@ -36,14 +34,12 @@ properties:
- description: NFI interrupt - description: NFI interrupt
clocks: clocks:
items: minItems: 2
- description: clock used for the controller maxItems: 3
- description: clock used for the SPI bus
clock-names: clock-names:
items: minItems: 2
- const: nfi_clk maxItems: 3
- const: pad_clk
nand-ecc-engine: nand-ecc-engine:
description: device-tree node of the accompanying ECC engine. description: device-tree node of the accompanying ECC engine.
...@@ -57,6 +53,43 @@ required: ...@@ -57,6 +53,43 @@ required:
- clock-names - clock-names
- nand-ecc-engine - nand-ecc-engine
allOf:
- $ref: /schemas/spi/spi-controller.yaml#
- if:
properties:
compatible:
enum:
- mediatek,mt7622-snand
- mediatek,mt7629-snand
then:
properties:
clocks:
items:
- description: clock used for the controller
- description: clock used for the SPI bus
clock-names:
items:
- const: nfi_clk
- const: pad_clk
- if:
properties:
compatible:
enum:
- mediatek,mt7986-snand
then:
properties:
clocks:
items:
- description: clock used for the controller
- description: clock used for the SPI bus
- description: clock used for the AHB bus
clock-names:
items:
- const: nfi_clk
- const: pad_clk
- const: nfi_hclk
unevaluatedProperties: false unevaluatedProperties: false
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment