1 * Samsung SPI Controller
3 The Samsung SPI controller is used to interface with various devices such as flash
4 and display controllers using the SPI communication interface.
6 Required SoC Specific Properties:
8 - compatible: should be one of the following.
9 - samsung,s3c2443-spi: for s3c2443, s3c2416 and s3c2450 platforms
10 - samsung,s3c6410-spi: for s3c6410 platforms
11 - samsung,s5pv210-spi: for s5pv210 and s5pc110 platforms
12 - samsung,exynos7-spi: for exynos7 platforms
14 - reg: physical base address of the controller and length of memory mapped
17 - interrupts: The interrupt number to the cpu. The interrupt specifier format
18 depends on the interrupt controller.
20 - dmas : Two or more DMA channel specifiers following the convention outlined
21 in bindings/dma/dma.txt
23 - dma-names: Names for the dma channels. There must be at least one channel
24 named "tx" for transmit and named "rx" for receive.
26 Required Board Specific Properties:
28 - #address-cells: should be 1.
29 - #size-cells: should be 0.
31 Optional Board Specific Properties:
33 - samsung,spi-src-clk: If the spi controller includes a internal clock mux to
34 select the clock source for the spi bus clock, this property can be used to
35 indicate the clock to be used for driving the spi bus clock. If not specified,
36 the clock number 0 is used as default.
38 - num-cs: Specifies the number of chip select lines supported. If
39 not specified, the default number of chip select lines is set to 1.
41 - cs-gpios: should specify GPIOs used for chipselects (see spi-bus.txt)
43 SPI Controller specific data in SPI slave nodes:
45 - The spi slave nodes should provide the following information which is required
46 by the spi controller.
48 - samsung,spi-feedback-delay: The sampling phase shift to be applied on the
49 miso line (to account for any lag in the miso line). The following are the
53 - 1: 90 degree phase shift sampling.
54 - 2: 180 degree phase shift sampling.
55 - 3: 270 degree phase shift sampling.
59 - All the SPI controller nodes should be represented in the aliases node using
60 the following format 'spi{n}' where n is a unique number for the alias.
65 - SoC Specific Portion:
68 compatible = "samsung,exynos4210-spi";
69 reg = <0x12d20000 0x100>;
70 interrupts = <0 66 0>;
73 dma-names = "tx", "rx";
78 - Board Specific Portion:
83 pinctrl-names = "default";
84 pinctrl-0 = <&spi0_bus>;
85 cs-gpios = <&gpa2 5 0>;
90 compatible = "w25x80";
92 spi-max-frequency = <10000>;
95 samsung,spi-feedback-delay = <0>;
106 reg = <0x40000 0xc0000>;