forked from RobertCNelson/linux-dev
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path0027-ARM-dts-Add-SPI-Flash-support-to-am335x-evm.patch
58 lines (51 loc) · 1.52 KB
/
0027-ARM-dts-Add-SPI-Flash-support-to-am335x-evm.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From f3dac62eff04fa1ebb5c251ba9934ca636bec9fc Mon Sep 17 00:00:00 2001
From: Matt Porter <mporter@ti.com>
Date: Thu, 10 Jan 2013 19:11:38 -0500
Subject: [PATCH 27/35] ARM: dts: Add SPI Flash support to am335x-evm
Add SPI pinmuxing and spansion device node for profile 2..
Signed-off-by: Matt Porter <mporter@ti.com>
---
arch/arm/boot/dts/am335x-evm.dts | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 2907da6..0dda333 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -26,7 +26,7 @@
am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default";
- pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0>;
+ pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0 &spi0_pins_s0>;
matrix_keypad_s0: matrix_keypad_s0 {
pinctrl-single,pins = <
@@ -44,6 +44,16 @@
0x154 0x27 /* spi0_d0.gpio0_3, INPUT | MODE7 */
>;
};
+
+ spi0_pins_s0: spi0_pins_s0 {
+ pinctrl-single,pins = <
+ 0x150 0x30 /* spi0_sclk.spi0_sclk, INPUT_PULLUP | MODE0 */
+ 0x154 0x30 /* spi0_d0.spi0_d0, INPUT_PULLUP | MODE0 */
+ 0x158 0x10 /* spi0_d1.spi0_d1, OUTPUT_PULLUP | MODE0 */
+ 0x15c 0x10 /* spi0_cs0.spi0_cs0, OUTPUT_PULLUP | MODE0 */
+ >;
+ };
+
};
ocp {
@@ -251,3 +261,12 @@
status = "okay";
vmmc-supply = <&vmmc_reg>;
};
+
+&spi0 {
+ status = "okay";
+ spi-flash@0 {
+ compatible = "spansion,s25fl064k", "m25p80";
+ spi-max-frequency = <24000000>;
+ reg = <0>;
+ };
+};
--
1.7.10.4