1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/spi/airoha, 4 $id: http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: SPI-NAND flash controller for Airoha AR 7 title: SPI-NAND flash controller for Airoha ARM SoCs 8 8 9 maintainers: 9 maintainers: 10 - Lorenzo Bianconi <lorenzo@kernel.org> 10 - Lorenzo Bianconi <lorenzo@kernel.org> 11 11 12 allOf: 12 allOf: 13 - $ref: spi-controller.yaml# 13 - $ref: spi-controller.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 const: airoha,en7581-snand 17 const: airoha,en7581-snand 18 18 19 reg: 19 reg: 20 items: 20 items: 21 - description: spi base address 21 - description: spi base address 22 - description: nfi2spi base address 22 - description: nfi2spi base address 23 23 24 clocks: 24 clocks: 25 maxItems: 1 25 maxItems: 1 26 26 27 clock-names: 27 clock-names: 28 items: 28 items: 29 - const: spi 29 - const: spi 30 30 31 required: 31 required: 32 - compatible 32 - compatible 33 - reg 33 - reg 34 - clocks 34 - clocks 35 - clock-names 35 - clock-names 36 36 37 unevaluatedProperties: false 37 unevaluatedProperties: false 38 38 39 examples: 39 examples: 40 - | 40 - | 41 #include <dt-bindings/clock/en7523-clk.h> 41 #include <dt-bindings/clock/en7523-clk.h> 42 42 43 soc { 43 soc { 44 #address-cells = <2>; 44 #address-cells = <2>; 45 #size-cells = <2>; 45 #size-cells = <2>; 46 46 47 spi@1fa10000 { 47 spi@1fa10000 { 48 compatible = "airoha,en7581-snand"; 48 compatible = "airoha,en7581-snand"; 49 reg = <0x0 0x1fa10000 0x0 0x140>, 49 reg = <0x0 0x1fa10000 0x0 0x140>, 50 <0x0 0x1fa11000 0x0 0x160>; 50 <0x0 0x1fa11000 0x0 0x160>; 51 51 52 clocks = <&scuclk EN7523_CLK_SPI>; 52 clocks = <&scuclk EN7523_CLK_SPI>; 53 clock-names = "spi"; 53 clock-names = "spi"; 54 54 55 #address-cells = <1>; 55 #address-cells = <1>; 56 #size-cells = <0>; 56 #size-cells = <0>; 57 57 58 flash@0 { 58 flash@0 { 59 compatible = "spi-nand"; 59 compatible = "spi-nand"; 60 reg = <0>; 60 reg = <0>; 61 spi-tx-bus-width = <1>; 61 spi-tx-bus-width = <1>; 62 spi-rx-bus-width = <2>; 62 spi-rx-bus-width = <2>; 63 }; 63 }; 64 }; 64 }; 65 }; 65 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.