summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2017-01-16 06:52:26 +0000
committerPeter Robinson <pbrobinson@gmail.com>2017-01-16 06:52:26 +0000
commit97037eea2cc604335a150bf980ddb4c5c798edaf (patch)
tree2f93edbf15fe1a931ebdb3d18daa8428d3c16004
parentdaebcac5174fc731de75e6ab0c01805707eac3b7 (diff)
downloadkernel-97037eea2cc604335a150bf980ddb4c5c798edaf.tar.gz
kernel-97037eea2cc604335a150bf980ddb4c5c798edaf.tar.xz
kernel-97037eea2cc604335a150bf980ddb4c5c798edaf.zip
Minor updates for Raspberry Pi 3 support, Re-enable /sys/class/gpio/
-rw-r--r--bcm2837-initial-support.patch53
-rw-r--r--config-generic2
-rw-r--r--kernel.spec4
3 files changed, 58 insertions, 1 deletions
diff --git a/bcm2837-initial-support.patch b/bcm2837-initial-support.patch
index 1bd89f4c8..dd64598aa 100644
--- a/bcm2837-initial-support.patch
+++ b/bcm2837-initial-support.patch
@@ -152,3 +152,56 @@ index 0000000..8216bbb
--
2.7.4
+From 345863374ebec9aa11ea97b99f5adbf97f99bbdf Mon Sep 17 00:00:00 2001
+From: Peter Robinson <pbrobinson@gmail.com>
+Date: Mon, 16 Jan 2017 06:38:08 +0000
+Subject: [PATCH] add upstream RPi3 fixes from arm64 DT
+
+Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 8 +-------
+ arch/arm/boot/dts/bcm2837.dtsi | 8 +++++++-
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+index 7841b72..c309633 100644
+--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
++++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+@@ -2,6 +2,7 @@
+ #include "bcm2837.dtsi"
+ #include "bcm2835-rpi.dtsi"
+ #include "bcm283x-rpi-smsc9514.dtsi"
++#include "bcm283x-rpi-usb-host.dtsi"
+
+ / {
+ compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
+@@ -15,13 +16,6 @@
+ act {
+ gpios = <&gpio 47 0>;
+ };
+-
+- pwr {
+- label = "PWR";
+- gpios = <&gpio 35 0>;
+- default-state = "keep";
+- linux,default-trigger = "default-on";
+- };
+ };
+ };
+
+diff --git a/arch/arm/boot/dts/bcm2837.dtsi b/arch/arm/boot/dts/bcm2837.dtsi
+index 8216bbb..19f2fe6 100644
+--- a/arch/arm/boot/dts/bcm2837.dtsi
++++ b/arch/arm/boot/dts/bcm2837.dtsi
+@@ -1,7 +1,7 @@
+ #include "bcm283x.dtsi"
+
+ / {
+- compatible = "brcm,bcm2836";
++ compatible = "brcm,bcm2837";
+
+ soc {
+ ranges = <0x7e000000 0x3f000000 0x1000000>,
+--
+2.9.3
+
diff --git a/config-generic b/config-generic
index 21e231d61..61e52e627 100644
--- a/config-generic
+++ b/config-generic
@@ -5872,7 +5872,7 @@ CONFIG_I2C_DESIGNWARE_PCI=m
# CONFIG_DEBUG_GPIO is not set
# CONFIG_W1_MASTER_GPIO is not set
# CONFIG_LEDS_GPIO is not set
-# CONFIG_GPIO_SYSFS is not set
+CONFIG_GPIO_SYSFS=y
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_MAX732X is not set
diff --git a/kernel.spec b/kernel.spec
index d1cd87f1a..e3480eefd 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -2173,6 +2173,10 @@ fi
#
#
%changelog
+* Mon Jan 16 2017 Peter Robinson <pbrobinson@fedoraproject.org>
+- Minor updates for Raspberry Pi 3 support
+- Re-enable /sys/class/gpio/
+
* Thu Jan 12 2017 Laura Abbott <labbott@fedoraproject.org> - 4.9.3-200
- Linux v4.9.3