summaryrefslogtreecommitdiff
path: root/recipes-kernel
diff options
context:
space:
mode:
authorMike Nicholson <mike.nicholson@multitech.com>2020-08-28 16:37:23 -0500
committerMike Nicholson <mike.nicholson@multitech.com>2020-08-28 16:37:23 -0500
commit16f13491a0b513858f6fe989301085a8442c2391 (patch)
tree848b15a7842dfe31f97c052b1f0e831279e9d8c9 /recipes-kernel
parentfcb95ff233f38b358d7c26ac201f3231575aacf1 (diff)
downloadmeta-multitech-atmel-16f13491a0b513858f6fe989301085a8442c2391.tar.gz
meta-multitech-atmel-16f13491a0b513858f6fe989301085a8442c2391.tar.bz2
meta-multitech-atmel-16f13491a0b513858f6fe989301085a8442c2391.zip
Move i2c gpio to AT91 i2c peripheral
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch26
1 files changed, 22 insertions, 4 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
index 9cc9091..dc60692 100644
--- a/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
+++ b/recipes-kernel/linux/linux-at91-4.9.87/mtcap/linux-4.9-mtcap-device-tree.patch
@@ -258,7 +258,7 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/Makefile linux-4.9.87/arch/arm/bo
diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/boot/dts/mtcap.dts
--- linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.9.87/arch/arm/boot/dts/mtcap.dts 2019-01-31 18:11:18.651648726 -0600
-@@ -0,0 +1,270 @@
+@@ -0,0 +1,288 @@
+/*
+ * DTS file for Multi-Tech Systems MTCAP Hardware
+ *
@@ -511,16 +511,34 @@ diff -Naru linux-4.9.87.orig/arch/arm/boot/dts/mtcap.dts linux-4.9.87/arch/arm/b
+ };
+ };
+
-+ i2c-gpio-0 {
-+ status = "okay";
++ /* GPS-PPS input on AP1 - enabled by overlay*/
++ pps-0 {
++ compatible = "pps-gpio";
++ gpios = <&pioC 10 0>;
++ capture-clear;
++ status = "disabled";
++ };
+
++ i2c0: i2c@f8010000 {
++ compatible = "atmel,at91sam9x5-i2c";
++ reg = <0xf8010000 0x100>;
++ interrupts = <9 IRQ_TYPE_LEVEL_HIGH 6>;
++ mas = <&dma0 1 AT91_DMA_CFG_PER_ID(7)>,
++ <&dma0 1 AT91_DMA_CFG_PER_ID(8)>;
++ dma-names = "tx", "rx";
++ #address-cells = <1>;
++ #size-cells = <0>;
++ pinctrl-names = "default";
++ pinctrl-0 = <&pinctrl_i2c0>;
++ clocks = <&twi0_clk>;
++ status = "okay";
+ id_eeprom@56 {
+ compatible = "atmel,24c04";
+ reg = <0x56>;
+ pagesize = <16>;
+ status = "okay";
+ };
-+ };
++ };
+
+ mts-io-0 {
+ status = "okay";