]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
arm64: dts: marvell: mcbin: add support for PCIe
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 8 Jul 2017 19:16:55 +0000 (20:16 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 2 Aug 2017 14:07:38 +0000 (16:07 +0200)
Add support for PCIe with the the PCIe reset signal wired up to the
appropriate GPIO pin.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
(excepted the reset part)
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts

index 77f62e2ebfa4f07e267d01998566782fb9d46683..b9fe9d3c085f71bfda676bf1839bc8283f149b97 100644 (file)
        };
 };
 
+&cpm_pcie0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&cpm_pcie_pins>;
+       num-lanes = <4>;
+       num-viewport = <8>;
+       reset-gpio = <&cpm_gpio1 20 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
+
 &cpm_pinctrl {
        cpm_ge_mdio_pins: ge-mdio-pins {
                marvell,pins = "mpp32", "mpp34";
                marvell,pins = "mpp47";
                marvell,function = "gpio";
        };
+       cpm_pcie_pins: pcie-pins {
+               marvell,pins = "mpp52";
+               marvell,function = "gpio";
+       };
        cpm_sdhci_pins: sdhci-pins {
                marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
                               "mpp60", "mpp61";