How to remove vdd-12v-pcie from pcie node in device tree as a single GPIO?

Hi nvidia:
I am trying to control the PCIe 12V output from the AGX Xavier developer kit.I need to pull it high or down in my case .
I have post an issue of Why i can't export gpio-289 and change it?, i have check related .dtsi file such as:

tegra194-fixed-regulator-p2822-1000.dtsi,tegra194-p2888-p2822-pcie-plugin-manager.dtsi,tegra194-power-tree-p2888-0001-p2822-1000.dtsi in source/public/hardware/nvidia/platform/t19x/galen/kernel-dts/common directory of L4T.

but i indeed wonder how to remove vdd-12v-pcie from pcie node in device tree,next is my idea of updating
device-tree in tegra194-p2888-0001-p2822-0000-common.dtsi

&pcie {
vdd_12v_pcie_reg: regulator-pcie-12v {

gpio = <&tegra_main_gpio TEGRA_MAIN_GPIO(A, 1) 0>;

&vdd_12v_pcie {
label = “VDD_PCIE_12V”;
delete-target-property = “gpio”;
Can anyone help me confirm that?Or another way is control it by not updating device-tree but modify pcie driver,but how to ?

Actually you should disable the regulator with name regulator-name = “vdd-12v-pcie”


And also remove those drivers which are using this regulator.

For example,

vpcie12v-supply = <&p2822_vdd_12v_pcie>;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.