summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts')
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts
new file mode 100644
index 0000000..d931cd8
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts
@@ -0,0 +1,29 @@
+/dts-v1/;
+/plugin/;
+
+/* enable spi0 for mts-io */
+
+/ {
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+ __overlay__ {
+ status = "okay";
+
+ ap1-cs0@0 {
+ compatible = "mts-io-ap1-adc";
+ spi-max-frequency = <20000000>;
+ reg = <0>;
+ };
+ ap1-cs1@1 {
+ compatible = "mts-io-ap1-dout";
+ spi-max-frequency = <1000000>;
+ reg = <1>;
+ };
+ ap1-cs2@2 {
+ compatible = "mts-io-ap1-din";
+ spi-max-frequency = <1000000>;
+ reg = <2>;
+ };
+ };
+ };
+};