]> Git Repo - linux.git/commitdiff
arm64: dts: qcom: rb5: Enable PCIe ports and PHY
authorManivannan Sadhasivam <[email protected]>
Wed, 27 Jan 2021 23:42:21 +0000 (02:42 +0300)
committerBjorn Andersson <[email protected]>
Tue, 2 Feb 2021 22:31:31 +0000 (16:31 -0600)
RB5 has 3 PCIe ports exposed to connect PCIe client devices. PCIe0 is
connected to QCA6391 chipset and others are available on the HS3
expansion connector. Hence, enable all of them.

Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts

index 58b94ce362b26a5a390e304f4d7e2dc6adb1a1af..26a4a5a6871e76d47b5dc81a0a59bd94da498393 100644 (file)
        };
 };
 
+&pcie0 {
+       status = "okay";
+       perst-gpio = <&tlmm 79 GPIO_ACTIVE_LOW>;
+       wake-gpio = <&tlmm 81 GPIO_ACTIVE_HIGH>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie0_default_state>;
+};
+
+&pcie0_phy {
+       status = "okay";
+       vdda-phy-supply = <&vreg_l5a_0p88>;
+       vdda-pll-supply = <&vreg_l9a_1p2>;
+};
+
+&pcie1 {
+       status = "okay";
+       perst-gpio = <&tlmm 82 GPIO_ACTIVE_LOW>;
+       wake-gpio = <&tlmm 84 GPIO_ACTIVE_HIGH>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie1_default_state>;
+};
+
+&pcie1_phy {
+       status = "okay";
+       vdda-phy-supply = <&vreg_l5a_0p88>;
+       vdda-pll-supply = <&vreg_l9a_1p2>;
+};
+
+&pcie2 {
+       status = "okay";
+       perst-gpio = <&tlmm 85 GPIO_ACTIVE_LOW>;
+       wake-gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie2_default_state>;
+};
+
+&pcie2_phy {
+       status = "okay";
+       vdda-phy-supply = <&vreg_l5a_0p88>;
+       vdda-pll-supply = <&vreg_l9a_1p2>;
+};
+
 &pm8150_gpios {
        gpio-reserved-ranges = <1 1>, <3 2>, <7 1>;
        gpio-line-names =
                bias-disable;
        };
 
+       pcie0_default_state: pcie0-default {
+               clkreq {
+                       pins = "gpio80";
+                       function = "pci_e0";
+                       bias-pull-up;
+               };
+
+               reset-n {
+                       pins = "gpio79";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       output-low;
+                       bias-pull-down;
+               };
+
+               wake-n {
+                       pins = "gpio81";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+
+       pcie1_default_state: pcie1-default {
+               clkreq {
+                       pins = "gpio83";
+                       function = "pci_e1";
+                       bias-pull-up;
+               };
+
+               reset-n {
+                       pins = "gpio82";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       output-low;
+                       bias-pull-down;
+               };
+
+               wake-n {
+                       pins = "gpio84";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+
+       pcie2_default_state: pcie2-default {
+               clkreq {
+                       pins = "gpio86";
+                       function = "pci_e2";
+                       bias-pull-up;
+               };
+
+               reset-n {
+                       pins = "gpio85";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       output-low;
+                       bias-pull-down;
+               };
+
+               wake-n {
+                       pins = "gpio87";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+
        sdc2_default_state: sdc2-default {
                clk {
                        pins = "sdc2_clk";
This page took 0.062861 seconds and 4 git commands to generate.