summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-3.19/overlays
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-12-15 17:24:06 -0600
committerMike Fiore <mfiore@multitech.com>2014-12-15 17:24:06 -0600
commitdf21d61b75407f35600b6108563b1674ca24ee3d (patch)
treee8f76b5023e60192ce2f29ce5eecb80bfbf19258 /recipes-kernel/linux/linux-3.19/overlays
parentc11fab577a5abefb6cc9e5a3e9e8d931613936cd (diff)
downloadmeta-multitech-3.19-dt-overlay.tar.gz
meta-multitech-3.19-dt-overlay.tar.bz2
meta-multitech-3.19-dt-overlay.zip
changes for building 3.19 kernel with complete DT Overlay support3.19-dt-overlay
Diffstat (limited to 'recipes-kernel/linux/linux-3.19/overlays')
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port1_gpio.dts29
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts19
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts18
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts29
-rw-r--r--recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts19
5 files changed, 114 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>;
+ };
+ };
+ };
+};
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts
new file mode 100644
index 0000000..dfc04c5
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.19/overlays/port1_lora.dts
@@ -0,0 +1,19 @@
+/dts-v1/;
+/plugin/;
+
+/* enable spi0 for spidev */
+
+/ {
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0000000";
+ __overlay__ {
+ status = "okay";
+
+ ap1-cs0@0 {
+ compatible = "spidev";
+ spi-max-frequency = <1000000>;
+ reg = <0>;
+ };
+ };
+ };
+};
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts b/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts
new file mode 100644
index 0000000..5db0462
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.19/overlays/port1_wibt.dts
@@ -0,0 +1,18 @@
+/dts-v1/;
+/plugin/;
+
+/* enable mmc1 */
+/ {
+ fragment@0 {
+ target-path = "/ahb/apb/mmc@f000c000";
+ __overlay__ {
+ status = "okay";
+
+ slot@0 {
+ reg = <0>;
+ bus-width = <4>;
+ cd-gpios = <&pioA 1 GPIO_ACTIVE_HIGH>;
+ };
+ };
+ };
+};
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts b/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts
new file mode 100644
index 0000000..240bf4e
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.19/overlays/port2_gpio.dts
@@ -0,0 +1,29 @@
+/dts-v1/;
+/plugin/;
+
+/* enable spi1 for mts-io */
+
+/ {
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0004000";
+ __overlay__ {
+ status = "okay";
+
+ ap1-cs0@0 {
+ compatible = "mts-io-ap2-adc";
+ spi-max-frequency = <20000000>;
+ reg = <0>;
+ };
+ ap1-cs1@1 {
+ compatible = "mts-io-ap2-dout";
+ spi-max-frequency = <1000000>;
+ reg = <1>;
+ };
+ ap1-cs2@2 {
+ compatible = "mts-io-ap2-din";
+ spi-max-frequency = <1000000>;
+ reg = <2>;
+ };
+ };
+ };
+};
diff --git a/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts b/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts
new file mode 100644
index 0000000..5c03f2a
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.19/overlays/port2_lora.dts
@@ -0,0 +1,19 @@
+/dts-v1/;
+/plugin/;
+
+/* enable spi1 for spidev */
+
+/ {
+ fragment@0 {
+ target-path = "/ahb/apb/spi@f0004000";
+ __overlay__ {
+ status = "okay";
+
+ ap2-cs0@0 {
+ compatible = "spidev";
+ spi-max-frequency = <1000000>;
+ reg = <0>;
+ };
+ };
+ };
+};