diff options
author | Girish K S <ks.giri@samsung.com> | 2013-06-17 17:35:14 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-06-17 17:35:14 -0400 |
commit | dabd3f9d0033e1d4dd3674f5942523d5b254fa28 (patch) | |
tree | bd8003d27ff9cf162f0e547bc54a576e458e9f47 | |
parent | a38089057fa450944f2e2d07885d76fd727c8d16 (diff) |
ARM: dts: enable spi for EXYNOS5440 SOC
This patch enables the SPI in EXYNOS5440 SoC. The NOR
Flash can be accessed by enabling the spi interface
Signed-off-by: Girish K S <ks.giri@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/boot/dts/exynos5440-ssdk5440.dts | 39 | ||||
-rw-r--r-- | arch/arm/boot/dts/exynos5440.dtsi | 14 |
2 files changed, 46 insertions, 7 deletions
diff --git a/arch/arm/boot/dts/exynos5440-ssdk5440.dts b/arch/arm/boot/dts/exynos5440-ssdk5440.dts index d55042beb5c5..a85ac0e27c3e 100644 --- a/arch/arm/boot/dts/exynos5440-ssdk5440.dts +++ b/arch/arm/boot/dts/exynos5440-ssdk5440.dts | |||
@@ -20,8 +20,43 @@ | |||
20 | bootargs = "root=/dev/sda2 rw rootwait ignore_loglevel early_printk no_console_suspend mem=2048M@0x80000000 console=ttySAC0,115200"; | 20 | bootargs = "root=/dev/sda2 rw rootwait ignore_loglevel early_printk no_console_suspend mem=2048M@0x80000000 console=ttySAC0,115200"; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | spi { | 23 | spi_0: spi@D0000 { |
24 | status = "disabled"; | 24 | |
25 | flash: w25q128@0 { | ||
26 | #address-cells = <1>; | ||
27 | #size-cells = <1>; | ||
28 | compatible = "winbond,w25q128"; | ||
29 | spi-max-frequency = <15625000>; | ||
30 | reg = <0>; | ||
31 | controller-data { | ||
32 | samsung,spi-feedback-delay = <0>; | ||
33 | }; | ||
34 | |||
35 | partition@00000 { | ||
36 | label = "BootLoader"; | ||
37 | reg = <0x60000 0x80000>; | ||
38 | read-only; | ||
39 | }; | ||
40 | |||
41 | partition@e0000 { | ||
42 | label = "Recovery-Kernel"; | ||
43 | reg = <0xe0000 0x300000>; | ||
44 | read-only; | ||
45 | }; | ||
46 | |||
47 | partition@3e0000 { | ||
48 | label = "CRAM-FS"; | ||
49 | reg = <0x3e0000 0x700000>; | ||
50 | read-only; | ||
51 | }; | ||
52 | |||
53 | partition@ae0000 { | ||
54 | label = "User-Data"; | ||
55 | reg = <0xae0000 0x520000>; | ||
56 | }; | ||
57 | |||
58 | }; | ||
59 | |||
25 | }; | 60 | }; |
26 | 61 | ||
27 | fixed-rate-clocks { | 62 | fixed-rate-clocks { |
diff --git a/arch/arm/boot/dts/exynos5440.dtsi b/arch/arm/boot/dts/exynos5440.dtsi index 9fd78842e0e0..d2a48be7c0f3 100644 --- a/arch/arm/boot/dts/exynos5440.dtsi +++ b/arch/arm/boot/dts/exynos5440.dtsi | |||
@@ -16,6 +16,10 @@ | |||
16 | 16 | ||
17 | interrupt-parent = <&gic>; | 17 | interrupt-parent = <&gic>; |
18 | 18 | ||
19 | aliases { | ||
20 | spi0 = &spi_0; | ||
21 | }; | ||
22 | |||
19 | clock: clock-controller@0x160000 { | 23 | clock: clock-controller@0x160000 { |
20 | compatible = "samsung,exynos5440-clock"; | 24 | compatible = "samsung,exynos5440-clock"; |
21 | reg = <0x160000 0x1000>; | 25 | reg = <0x160000 0x1000>; |
@@ -101,14 +105,14 @@ | |||
101 | clock-names = "uart", "clk_uart_baud0"; | 105 | clock-names = "uart", "clk_uart_baud0"; |
102 | }; | 106 | }; |
103 | 107 | ||
104 | spi { | 108 | spi_0: spi@D0000 { |
105 | compatible = "samsung,exynos4210-spi"; | 109 | compatible = "samsung,exynos5440-spi"; |
106 | reg = <0xD0000 0x1000>; | 110 | reg = <0xD0000 0x100>; |
107 | interrupts = <0 4 0>; | 111 | interrupts = <0 4 0>; |
108 | tx-dma-channel = <&pdma0 5>; /* preliminary */ | ||
109 | rx-dma-channel = <&pdma0 4>; /* preliminary */ | ||
110 | #address-cells = <1>; | 112 | #address-cells = <1>; |
111 | #size-cells = <0>; | 113 | #size-cells = <0>; |
114 | samsung,spi-src-clk = <0>; | ||
115 | num-cs = <1>; | ||
112 | clocks = <&clock 21>, <&clock 16>; | 116 | clocks = <&clock 21>, <&clock 16>; |
113 | clock-names = "spi", "spi_busclk0"; | 117 | clock-names = "spi", "spi_busclk0"; |
114 | }; | 118 | }; |