Commit b4bb952e authored by Johan Hovold's avatar Johan Hovold Committed by Bjorn Andersson

arm64: dts: qcom: sc8280xp-x13s: enable NVMe SSD

Enable the NVMe SSD connected to PCIe2.
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221110103558.12690-8-johan+linaro@kernel.org
parent d907fe5a
...@@ -124,6 +124,22 @@ vreg_misc_3p3: regulator-misc-3p3 { ...@@ -124,6 +124,22 @@ vreg_misc_3p3: regulator-misc-3p3 {
regulator-boot-on; regulator-boot-on;
regulator-always-on; regulator-always-on;
}; };
vreg_nvme: regulator-nvme {
compatible = "regulator-fixed";
regulator-name = "VCC3_SSD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&nvme_reg_en>;
regulator-boot-on;
};
}; };
&apps_rsc { &apps_rsc {
...@@ -211,6 +227,13 @@ vreg_l4d: ldo4 { ...@@ -211,6 +227,13 @@ vreg_l4d: ldo4 {
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
}; };
vreg_l6d: ldo6 {
regulator-name = "vreg_l6d";
regulator-min-microvolt = <880000>;
regulator-max-microvolt = <880000>;
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
vreg_l7d: ldo7 { vreg_l7d: ldo7 {
regulator-name = "vreg_l7d"; regulator-name = "vreg_l7d";
regulator-min-microvolt = <3072000>; regulator-min-microvolt = <3072000>;
...@@ -227,6 +250,25 @@ vreg_l9d: ldo9 { ...@@ -227,6 +250,25 @@ vreg_l9d: ldo9 {
}; };
}; };
&pcie2a {
perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>;
wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
vddpe-3v3-supply = <&vreg_nvme>;
pinctrl-names = "default";
pinctrl-0 = <&pcie2a_default>;
status = "okay";
};
&pcie2a_phy {
vdda-phy-supply = <&vreg_l6d>;
vdda-pll-supply = <&vreg_l4d>;
status = "okay";
};
&pmc8280c_lpg { &pmc8280c_lpg {
status = "okay"; status = "okay";
}; };
...@@ -592,6 +634,36 @@ reset-pins { ...@@ -592,6 +634,36 @@ reset-pins {
}; };
}; };
nvme_reg_en: nvme-reg-en-state {
pins = "gpio135";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
pcie2a_default: pcie2a-default-state {
clkreq-n-pins {
pins = "gpio142";
function = "pcie2a_clkreq";
drive-strength = <2>;
bias-pull-up;
};
perst-n-pins {
pins = "gpio143";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
wake-n-pins {
pins = "gpio145";
function = "gpio";
drive-strength = <2>;
bias-pull-up;
};
};
qup0_i2c4_default: qup0-i2c4-default-state { qup0_i2c4_default: qup0-i2c4-default-state {
pins = "gpio171", "gpio172"; pins = "gpio171", "gpio172";
function = "qup4"; function = "qup4";
......
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