ARM: dts: msm: Add gpio as fixed regulator to power on NVMe

Add NVMe power enable GPIO as the fixed regulator.
The M.2 connector power is enabled through the GPIO only.
So adding the gpio as fixed regulator for powering it on.

Enable dt property for enumerating NVMe at probe itself.

Change-Id: I6797ab5b57b043a1bf6fe6c3ef1ce452ed1f1494
This commit is contained in:
Krishna Chaitanya Chundru
2022-07-26 11:12:50 +05:30
committed by Krishna chaitanya chundru
parent fec2aca8dc
commit 2ed44bdb10
2 changed files with 20 additions and 0 deletions

View File

@@ -32,3 +32,7 @@
/* HS disconnect threshold */
0x6 0x53>;
};
&pcie1 {
qcom,boot-option = <0x2>;
};

View File

@@ -1 +1,17 @@
#include "kalama-sg-hhg.dtsi"
&soc {
nvme_vreg: nvme_vreg {
compatible = "regulator-fixed";
regulator-name = "nvme_vreg";
gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
};
};
&pcie1 {
vreg-3p3-supply = <&nvme_vreg>;
qcom,boot-option = <0x2>;
};