staging: mt7621-dts: add gpio perst to pcie bindings node [Linux 5.3]

This Linux kernel change "staging: mt7621-dts: add gpio perst to pcie bindings node" is included in the Linux 5.3 release. This change is authored by Sergio Paracuellos <sergio.paracuellos [at] gmail.com> on Wed Jun 19 09:44:57 2019 +0200. The commit for this change in Linux stable tree is fd69d7f (patch).

staging: mt7621-dts: add gpio perst to pcie bindings node

Driver has been changed to use perts gpio reset instead of
perst builtin behaviour. Update device tree accordly.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/mt7621-dts/mt7621.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi
index 280ec33..9c90cac 100644
--- a/drivers/staging/mt7621-dts/mt7621.dtsi
+++ b/drivers/staging/mt7621-dts/mt7621.dtsi
@@ -1,4 +1,5 @@
 #include <dt-bindings/interrupt-controller/mips-gic.h>
+#include <dt-bindings/gpio/gpio.h>

 / {
    #address-cells = <1>;
@@ -468,6 +469,7 @@
        #address-cells = <3>;
        #size-cells = <2>;

+       perst-gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
        pinctrl-names = "default";
        pinctrl-0 = <&pcie_pins>;

Leave a Reply

Your email address will not be published. Required fields are marked *