From 1c2fab0dadf341a4a20466b7723e3590dedd5270 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sat, 24 Nov 2012 03:26:03 -0800 Subject: [PATCH] am335x-bone: Add spi0 pins defines Sometimes you need use the other SPI bus in the device tree due to pin muxing this allows easy references for switching. Signed-off-by: Matt Ranostay --- arch/arm/boot/dts/am335x-bone-common.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index 46d5f27e31469d..03780468feefee 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -24,6 +24,14 @@ }; am3358_pinmux: pinmux@44e10800 { + spi0_pins: pinmux_spi0_pins { + pinctrl-single,pins = < + 0x150 0x10 /* spi0_sclk.gpio0_2, OUTPUT_PULLUP | MODE0 */ + 0x154 0x30 /* spi0_d0.gpio0_3, INPUT_PULLUP | MODE0 */ + 0x158 0x10 /* spi0_d1.i2c1_sda, OUTPUT_PULLUP | MODE0 */ + 0x15c 0x10 /* spi0_cs0.i2c1_scl, OUTPUT_PULLUP | MODE0 */ + >; + }; spi1_pins: pinmux_spi1_pins { pinctrl-single,pins = < 0x190 0x13 /* mcasp0_aclkx.spi1_sclk, OUTPUT_PULLUP | MODE3 */ @@ -401,6 +409,11 @@ vmmc-supply = <&ldo3_reg>; }; +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>; +}; + &spi1 { pinctrl-names = "default"; pinctrl-0 = <&spi1_pins>;