[PATCH 6/9] ARM: at91/dt: add spi0 support to at91rm9200ek board
From: Jean-Christophe PLAGNIOL-VILLARD <hidden>
Date: 2013-11-20 14:58:52
Also in:
linux-devicetree, lkml
On 13:07 Wed 28 Aug , Boris BREZILLON wrote:
quoted hunk ↗ jump to hunk
Add spi0 cs3 switch pinctrl pin definitions: this pin is used to select between mmc0 slot0 and spi dataflash connected to cs3. Enable spi0 controller and define the mtd_dataflash connected to cs0. Signed-off-by: Boris BREZILLON <redacted> --- arch/arm/boot/dts/at91rm9200ek.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index 2bad423..b3e7425 100644 --- a/arch/arm/boot/dts/at91rm9200ek.dts +++ b/arch/arm/boot/dts/at91rm9200ek.dts@@ -56,6 +56,13 @@ <AT91_PIOB 22 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(1))>; }; }; + + spi0 { + pinctrl_spi0_cs3_switch: spi0_cs3_switch-0 { + atmel,pins = + <AT91_PIOB 22 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>; + };
same as mmc nack pinctrl is not for gpio default value this is regulator
quoted hunk ↗ jump to hunk
+ }; }; dbgu: serial at fffff200 {@@ -119,6 +126,19 @@ wp-gpios = <&pioA 17 GPIO_ACTIVE_HIGH>; }; }; + + spi0: spi at fffe0000 { + pinctrl-0 = <&pinctrl_spi0 &pinctrl_spi0_cs0>; + cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>, <0>, + <0>, <0>; + status = "okay"; + + mtd_dataflash at 0 { + compatible = "atmel,at45", "atmel,dataflash"; + spi-max-frequency = <15000000>; + reg = <0>; + }; + }; }; usb0: ohci at 00300000 {-- 1.7.9.5