1* Serial NOR flash controller for MTK MT81xx (and similar) 2 3Required properties: 4- compatible: For mt8173, compatible should be "mediatek,mt8173-nor", 5 and it's the fallback compatible for other Soc. 6 For every other SoC, should contain both the SoC-specific compatible 7 string and "mediatek,mt8173-nor". 8 The possible values are: 9 "mediatek,mt2701-nor", "mediatek,mt8173-nor" 10 "mediatek,mt2712-nor", "mediatek,mt8173-nor" 11 "mediatek,mt7622-nor", "mediatek,mt8173-nor" 12 "mediatek,mt7623-nor", "mediatek,mt8173-nor" 13 "mediatek,mt8173-nor" 14- reg: physical base address and length of the controller's register 15- clocks: the phandle of the clocks needed by the nor controller 16- clock-names: the names of the clocks 17 the clocks should be named "spi" and "sf". "spi" is used for spi bus, 18 and "sf" is used for controller, these are the clocks witch 19 hardware needs to enabling nor flash and nor flash controller. 20 See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. 21- #address-cells: should be <1> 22- #size-cells: should be <0> 23 24The SPI flash must be a child of the nor_flash node and must have a 25compatible property. Also see jedec,spi-nor.txt. 26 27Required properties: 28- compatible: May include a device-specific string consisting of the manufacturer 29 and name of the chip. Must also include "jedec,spi-nor" for any 30 SPI NOR flash that can be identified by the JEDEC READ ID opcode (0x9F). 31- reg : Chip-Select number 32 33Example: 34 35nor_flash: spi@1100d000 { 36 compatible = "mediatek,mt8173-nor"; 37 reg = <0 0x1100d000 0 0xe0>; 38 clocks = <&pericfg CLK_PERI_SPI>, 39 <&topckgen CLK_TOP_SPINFI_IFR_SEL>; 40 clock-names = "spi", "sf"; 41 #address-cells = <1>; 42 #size-cells = <0>; 43 44 flash@0 { 45 compatible = "jedec,spi-nor"; 46 reg = <0>; 47 }; 48}; 49 50