[Armadeus-commitlog] armadeus branch, master, updated. armadeus-6.0-321-g86d458b
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2017-08-24 16:42:00
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 86d458b05d889aea757520ddc948711ddc3a2690 (commit)
from 7f72ecdfdb4ef70c0642af450b55c8eb5fcee6d2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 86d458b05d889aea757520ddc948711ddc3a2690
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Aug 24 18:40:30 2017 +0200
[LINUX] 4.1: apf6: add spidev driver & configuration (J5 connector of APF6Dev. SPI1/CS0). Add some tests tools in BR defconfig, while we are at it...
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/apf6legacy-4.1_defconfig | 3 ++-
.../device/armadeus/apf6/apf6legacy-linux-4.1.config | 1 +
...450-armadeus-add-apf6q-and-apf6dl-device-trees.patch | 8 +++++++-
...madeus-remove-spidev-oops-warning-at-load-time.patch | 17 +++++++++++++++++
4 files changed, 27 insertions(+), 2 deletions(-)
create mode 100644 patches/linux/4.1.mx6_legacy/0514-armadeus-remove-spidev-oops-warning-at-load-time.patch
diff --git a/buildroot/configs/apf6legacy-4.1_defconfig b/buildroot/configs/apf6legacy-4.1_defconfig
index 1c6b847..a0f8497 100644
--- a/buildroot/configs/apf6legacy-4.1_defconfig
+++ b/buildroot/configs/apf6legacy-4.1_defconfig
@@ -84,6 +84,7 @@ BR2_PACKAGE_GDB=y
BR2_PACKAGE_LTRACE=y
BR2_PACKAGE_PV=y
BR2_PACKAGE_RAMSMP=y
+BR2_PACKAGE_SPIDEV_TEST=y
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_DOSFSTOOLS=y
BR2_PACKAGE_DOSFSTOOLS_FATLABEL=y
@@ -104,7 +105,6 @@ BR2_PACKAGE_EVTEST=y
BR2_PACKAGE_FREESCALE_IMX=y
BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q=y
BR2_PACKAGE_IMX_CODEC=y
-BR2_PACKAGE_IMX_LIB=y
BR2_PACKAGE_IMX_PARSER=y
BR2_PACKAGE_IMX_VPUWRAP=y
BR2_PACKAGE_IMX_GPU_VIV=y
@@ -116,6 +116,7 @@ BR2_PACKAGE_IMX_TEST=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_PCI_DEBUG=y
BR2_PACKAGE_PCIUTILS=y
+BR2_PACKAGE_SPI_TOOLS=y
BR2_PACKAGE_TI_UTILS=y
BR2_PACKAGE_UBOOT_TOOLS=y
BR2_PACKAGE_LIBVORBIS=y
diff --git a/buildroot/target/device/armadeus/apf6/apf6legacy-linux-4.1.config b/buildroot/target/device/armadeus/apf6/apf6legacy-linux-4.1.config
index 4cffb05..32035eb 100644
--- a/buildroot/target/device/armadeus/apf6/apf6legacy-linux-4.1.config
+++ b/buildroot/target/device/armadeus/apf6/apf6legacy-linux-4.1.config
@@ -220,6 +220,7 @@ CONFIG_I2C_IMX=y
CONFIG_SPI=y
CONFIG_SPI_GPIO=y
CONFIG_SPI_IMX=y
+CONFIG_SPI_SPIDEV=m
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_MAX732X=y
CONFIG_GPIO_PCA953X=y
diff --git a/patches/linux/4.1.mx6_legacy/0450-armadeus-add-apf6q-and-apf6dl-device-trees.patch b/patches/linux/4.1.mx6_legacy/0450-armadeus-add-apf6q-and-apf6dl-device-trees.patch
index 7e7111b..63aad13 100644
--- a/patches/linux/4.1.mx6_legacy/0450-armadeus-add-apf6q-and-apf6dl-device-trees.patch
+++ b/patches/linux/4.1.mx6_legacy/0450-armadeus-add-apf6q-and-apf6dl-device-trees.patch
@@ -188,7 +188,7 @@ Index: linux-imx_4.1.15_2.0.0_ga/arch/arm/boot/dts/imx6qdl-apf6dev.dtsi
===================================================================
--- /dev/null
+++ linux-imx_4.1.15_2.0.0_ga/arch/arm/boot/dts/imx6qdl-apf6dev.dtsi
-@@ -0,0 +1,552 @@
+@@ -0,0 +1,558 @@
+/*
+ * Copyright 2015 Armadeus Systems
+ *
@@ -375,6 +375,12 @@ Index: linux-imx_4.1.15_2.0.0_ga/arch/arm/boot/dts/imx6qdl-apf6dev.dtsi
+ <&gpio4 10 GPIO_ACTIVE_LOW>,
+ <&gpio4 11 GPIO_ACTIVE_LOW>;
+ status = "okay";
++
++ spidev0: spi@0 {
++ compatible = "spidev";
++ reg = <0>;
++ spi-max-frequency = <54000000>;
++ };
+};
+
+&hdmi_audio {
diff --git a/patches/linux/4.1.mx6_legacy/0514-armadeus-remove-spidev-oops-warning-at-load-time.patch b/patches/linux/4.1.mx6_legacy/0514-armadeus-remove-spidev-oops-warning-at-load-time.patch
new file mode 100644
index 0000000..a0614d4
--- /dev/null
+++ b/patches/linux/4.1.mx6_legacy/0514-armadeus-remove-spidev-oops-warning-at-load-time.patch
@@ -0,0 +1,17 @@
+Prevent kernel oops (warning) when modprobing spidev module on recent Linux
+kernels with device tree support.
+
+Signed-off-by: Julien Boibessot <jul...@ar...>
+
+Index: linux-imx_4.1.15_2.0.0_ga/drivers/spi/spidev.c
+===================================================================
+--- linux-imx_4.1.15_2.0.0_ga.orig/drivers/spi/spidev.c
++++ linux-imx_4.1.15_2.0.0_ga/drivers/spi/spidev.c
+@@ -707,6 +707,7 @@ static struct class *spidev_class;
+ #ifdef CONFIG_OF
+ static const struct of_device_id spidev_dt_ids[] = {
+ { .compatible = "rohm,dh2228fv" },
++ { .compatible = "spidev" },
+ {},
+ };
+ MODULE_DEVICE_TABLE(of, spidev_dt_ids);
hooks/post-receive
--
armadeus
|