summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>2015-01-23 18:53:10 +0530
committerStefan Agner <stefan.agner@toradex.com>2015-04-17 10:16:51 +0200
commita41ee17507b00e6332c5dceb2e78b13de4f95b89 (patch)
treeaa883710e762ad9539e86aa36ad6942cbe1d06c1 /arch/arm
parentb1c268654e41d13cb7c761471c1638c72ff4bd21 (diff)
ARM: vf-colibri-eval-v3: add spidev node to dspi1
On Colibri Eval board dspi1(CS0) is connected to MCP2515 CAN controller. This patch adds spidev on dspi1(CS0) by default, which allows to develop/test the userspace SPI API. To use MCP2515 CAN, disable the dspi@0 and set the status to "okay" for the can@0 node. Note also that Vybrid has internal CAN controllers which might be more appropriate. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> [rebased ontop of 4.0, extended log message] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/vf-colibri-eval-v3.dtsi7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
index 68e2d118bbbd..e834275c9fc8 100644
--- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
+++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
@@ -194,6 +194,13 @@
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio1>;
interrupts = <11 GPIO_ACTIVE_LOW>;
+ status = "disabled";
+ };
+
+ spidev1: dspi@0 {
+ compatible = "spidev";
+ reg = <0>;
+ spi-max-frequency = <50000000>;
};
};