arm64: dts: qcom: db845c: Enable PCIe controllers
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 7 Nov 2019 00:22:47 +0000 (16:22 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 25 Feb 2020 00:11:22 +0000 (16:11 -0800)
Enable the two PCIe controllers found on the Dragonboard845c.

Tested-by: Julien Massot <jmassot@softbankrobotics.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20191107002247.1127689-4-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sdm845-db845c.dts

index eb77aaa6a8199debc43b6103d033c1d15560c180..6e60e81f8db7e6bc093beabeb3a33355b0c8fc81 100644 (file)
        firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
 };
 
+&pcie0 {
+       status = "okay";
+       perst-gpio = <&tlmm 35 GPIO_ACTIVE_LOW>;
+       enable-gpio = <&tlmm 134 GPIO_ACTIVE_HIGH>;
+
+       vddpe-3v3-supply = <&pcie0_3p3v_dual>;
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie0_default_state>;
+};
+
+&pcie0_phy {
+       status = "okay";
+
+       vdda-phy-supply = <&vreg_l1a_0p875>;
+       vdda-pll-supply = <&vreg_l26a_1p2>;
+};
+
+&pcie1 {
+       status = "okay";
+       perst-gpio = <&tlmm 102 GPIO_ACTIVE_LOW>;
+
+       pinctrl-names = "default";
+       pinctrl-0 = <&pcie1_default_state>;
+};
+
+&pcie1_phy {
+       status = "okay";
+
+       vdda-phy-supply = <&vreg_l1a_0p875>;
+       vdda-pll-supply = <&vreg_l26a_1p2>;
+};
+
 &pm8998_gpio {
        vol_up_pin_a: vol-up-active {
                pins = "gpio6";
 };
 
 &tlmm {
+       pcie0_default_state: pcie0-default {
+               clkreq {
+                       pins = "gpio36";
+                       function = "pci_e0";
+                       bias-pull-up;
+               };
+
+               reset-n {
+                       pins = "gpio35";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       output-low;
+                       bias-pull-down;
+               };
+
+               wake-n {
+                       pins = "gpio37";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+       };
+
        pcie0_pwren_state: pcie0-pwren {
                pins = "gpio90";
                function = "gpio";
                bias-disable;
        };
 
+       pcie1_default_state: pcie1-default {
+               perst-n {
+                       pins = "gpio102";
+                       function = "gpio";
+
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+
+               clkreq {
+                       pins = "gpio103";
+                       function = "pci_e1";
+                       bias-pull-up;
+               };
+
+               wake-n {
+                       pins = "gpio11";
+                       function = "gpio";
+
+                       drive-strength = <2>;
+                       bias-pull-up;
+               };
+
+               reset-n {
+                       pins = "gpio75";
+                       function = "gpio";
+
+                       drive-strength = <16>;
+                       bias-pull-up;
+                       output-high;
+               };
+       };
+
        sdc2_default_state: sdc2-default {
                clk {
                        pins = "sdc2_clk";