Commit f2bf0822 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-dts: make use of 'reset-gpios' property for pci

Properly set pins for group pcie as 'gpio' function and declare
gpio's in the pci node to make reset stuff properly functional.
Delete no more needed general reset and previous pers gpio which
is now being used in 'reset-gpios' property.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200313200913.24321-4-sergio.paracuellos@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 475fe234
...@@ -286,7 +286,7 @@ mdio0 { ...@@ -286,7 +286,7 @@ mdio0 {
pcie_pins: pcie0 { pcie_pins: pcie0 {
pcie0 { pcie0 {
groups = "pcie"; groups = "pcie";
function = "pcie rst"; function = "gpio";
}; };
}; };
...@@ -512,7 +512,6 @@ pcie: pcie@1e140000 { ...@@ -512,7 +512,6 @@ pcie: pcie@1e140000 {
#address-cells = <3>; #address-cells = <3>;
#size-cells = <2>; #size-cells = <2>;
perst-gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pcie_pins>; pinctrl-0 = <&pcie_pins>;
...@@ -532,13 +531,17 @@ pcie: pcie@1e140000 { ...@@ -532,13 +531,17 @@ pcie: pcie@1e140000 {
status = "disabled"; status = "disabled";
resets = <&rstctrl 23 &rstctrl 24 &rstctrl 25 &rstctrl 26>; resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
reset-names = "pcie", "pcie0", "pcie1", "pcie2"; reset-names = "pcie0", "pcie1", "pcie2";
clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
clock-names = "pcie0", "pcie1", "pcie2"; clock-names = "pcie0", "pcie1", "pcie2";
phys = <&pcie0_phy 0>, <&pcie0_phy 1>, <&pcie1_phy 0>; phys = <&pcie0_phy 0>, <&pcie0_phy 1>, <&pcie1_phy 0>;
phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2"; phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
<&gpio 8 GPIO_ACTIVE_LOW>,
<&gpio 7 GPIO_ACTIVE_LOW>;
pcie@0,0 { pcie@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
#address-cells = <3>; #address-cells = <3>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment