Re: [PATCH 6/9] ARM: at91/dt: add spi0 support to at91rm9200ek board

From: Jean-Christophe PLAGNIOL-VILLARD
Date: Wed Nov 20 2013 - 09:58:54 EST


On 13:07 Wed 28 Aug , Boris BREZILLON wrote:
> 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 <b.brezillon@xxxxxxxxxxx>
> ---
> 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
> + };
> };
>
> dbgu: serial@fffff200 {
> @@ -119,6 +126,19 @@
> wp-gpios = <&pioA 17 GPIO_ACTIVE_HIGH>;
> };
> };
> +
> + spi0: spi@fffe0000 {
> + pinctrl-0 = <&pinctrl_spi0 &pinctrl_spi0_cs0>;
> + cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>, <0>,
> + <0>, <0>;
> + status = "okay";
> +
> + mtd_dataflash@0 {
> + compatible = "atmel,at45", "atmel,dataflash";
> + spi-max-frequency = <15000000>;
> + reg = <0>;
> + };
> + };
> };
>
> usb0: ohci@00300000 {
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/