diff --git a/CHANGELOG.md b/CHANGELOG.md index 526eace..a80b880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ Change log ----------- +* linux-mainline: Enable i2c0 in OrangePi-Plus2 device tree [Sebastian] + # v2.12.7+rev3 ## (2018-05-23) diff --git a/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline-4.15.18/0001-Enable-i2c0-on-OrangePi-Plus2-board.patch b/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline-4.15.18/0001-Enable-i2c0-on-OrangePi-Plus2-board.patch new file mode 100644 index 0000000..011064f --- /dev/null +++ b/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline-4.15.18/0001-Enable-i2c0-on-OrangePi-Plus2-board.patch @@ -0,0 +1,26 @@ +From cef44d8fd32cf32dc3760ba2cf520467df7585d6 Mon Sep 17 00:00:00 2001 +From: Sebastian Panceac +Date: Wed, 20 Jun 2018 11:15:30 +0200 +Subject: [PATCH] Enable i2c0 on OrangePi Plus2 board + +Upstream-Status: Inappropriate [configuration] +Signed-off-by: Sebastian Panceac +--- + arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +index b403e5d..781b6c4 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +@@ -122,3 +122,7 @@ + &usbphy { + usb3_vbus-supply = <®_usb3_vbus>; + }; ++ ++&i2c0 { ++ status = "okay"; ++}; +-- +2.7.4 + diff --git a/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline_4.15.18.bb b/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline_4.15.18.bb index 6664e84..6953199 100644 --- a/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline_4.15.18.bb +++ b/layers/meta-resin-allwinner/recipes-kernel/linux/linux-mainline_4.15.18.bb @@ -22,4 +22,5 @@ SRC_URI[md5sum] = "2c7a9404ddf29580f14c61eb87e50c6e" SRC_URI = "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \ file://defconfig \ file://don-t-default-activate-regdb.patch \ + file://0001-Enable-i2c0-on-OrangePi-Plus2-board.patch \ "