Skip to content

Commit

Permalink
ARM: dts: Add SPI Flash support to am335x-evm
Browse files Browse the repository at this point in the history
Add SPI pinmuxing and spansion device node for profile 2..

Signed-off-by: Matt Porter <mporter@ti.com>
  • Loading branch information
Matt Porter committed Jan 11, 2013
1 parent 66aa7f0 commit 127cc54
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion arch/arm/boot/dts/am335x-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <
Expand All @@ -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 {
Expand Down Expand Up @@ -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>;
};
};

0 comments on commit 127cc54

Please sign in to comment.