]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.28/arm-dts-nsp-gpio-reboot-open-source.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.28 / arm-dts-nsp-gpio-reboot-open-source.patch
CommitLineData
b74db2ac
GKH
1From acfa28b3649ec07775efaac0c00de2db39d71634 Mon Sep 17 00:00:00 2001
2From: Jon Mason <jon.mason@broadcom.com>
3Date: Wed, 1 Mar 2017 18:02:28 -0500
4Subject: ARM: dts: NSP: GPIO reboot open-source
5
6From: Jon Mason <jon.mason@broadcom.com>
7
8commit acfa28b3649ec07775efaac0c00de2db39d71634 upstream.
9
10The libgpio code pre-sets the GPIO values for the gpio-reset in the
11device tree. This results in the device being reset during bringup.
12To prevent this pre-setting, use the "open-source" flag in the device
13tree.
14
15Signed-off-by: Jon Mason <jon.mason@broadcom.com>
16Fixes: b1aaf88 ("ARM: dts: NSP: Add GPIO reboot method to bcm958625hr DTS file")
17Fixes: 10baed1 ("ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file")
18Fixes: 088e3148 ("ARM: dts: NSP: Add new DT file for bcm958522er")
19Fixes: e3227c1 ("ARM: dts: NSP: Add new DT file for bcm958525er")
20Fixes: 2f8bc00 ("ARM: dts: NSP: Add new DT file for bcm958622hr")
21Fixes: d454c37 ("ARM: dts: NSP: Add new DT file for bcm958623hr")
22Fixes: f27eacf ("ARM: dts: NSP: Add new DT file for bcm988312hr")
23Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
24Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25
26---
27 arch/arm/boot/dts/bcm958522er.dts | 1 +
28 arch/arm/boot/dts/bcm958525er.dts | 1 +
29 arch/arm/boot/dts/bcm958525xmc.dts | 1 +
30 arch/arm/boot/dts/bcm958622hr.dts | 1 +
31 arch/arm/boot/dts/bcm958623hr.dts | 1 +
32 arch/arm/boot/dts/bcm958625hr.dts | 1 +
33 arch/arm/boot/dts/bcm988312hr.dts | 1 +
34 7 files changed, 7 insertions(+)
35
36--- a/arch/arm/boot/dts/bcm958522er.dts
37+++ b/arch/arm/boot/dts/bcm958522er.dts
38@@ -55,6 +55,7 @@
39 gpio-restart {
40 compatible = "gpio-restart";
41 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
42+ open-source;
43 priority = <200>;
44 };
45 };
46--- a/arch/arm/boot/dts/bcm958525er.dts
47+++ b/arch/arm/boot/dts/bcm958525er.dts
48@@ -55,6 +55,7 @@
49 gpio-restart {
50 compatible = "gpio-restart";
51 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
52+ open-source;
53 priority = <200>;
54 };
55 };
56--- a/arch/arm/boot/dts/bcm958525xmc.dts
57+++ b/arch/arm/boot/dts/bcm958525xmc.dts
58@@ -55,6 +55,7 @@
59 gpio-restart {
60 compatible = "gpio-restart";
61 gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
62+ open-source;
63 priority = <200>;
64 };
65 };
66--- a/arch/arm/boot/dts/bcm958622hr.dts
67+++ b/arch/arm/boot/dts/bcm958622hr.dts
68@@ -55,6 +55,7 @@
69 gpio-restart {
70 compatible = "gpio-restart";
71 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
72+ open-source;
73 priority = <200>;
74 };
75 };
76--- a/arch/arm/boot/dts/bcm958623hr.dts
77+++ b/arch/arm/boot/dts/bcm958623hr.dts
78@@ -55,6 +55,7 @@
79 gpio-restart {
80 compatible = "gpio-restart";
81 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
82+ open-source;
83 priority = <200>;
84 };
85 };
86--- a/arch/arm/boot/dts/bcm958625hr.dts
87+++ b/arch/arm/boot/dts/bcm958625hr.dts
88@@ -55,6 +55,7 @@
89 gpio-restart {
90 compatible = "gpio-restart";
91 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
92+ open-source;
93 priority = <200>;
94 };
95 };
96--- a/arch/arm/boot/dts/bcm988312hr.dts
97+++ b/arch/arm/boot/dts/bcm988312hr.dts
98@@ -55,6 +55,7 @@
99 gpio-restart {
100 compatible = "gpio-restart";
101 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
102+ open-source;
103 priority = <200>;
104 };
105 };