Hello @weidong_sun ,
Thanks for your support so far, Could you please also add the definition for ‘reg_usb2_vbus’ under ‘regulators’ in the device tree (it doesn’t exist in my device tree)?
When I define vbus-supply = <®_usb2_vbus>; as you suggested I must define reg_usb2_vbus in the DTS otherwise the kernel wouldn’t know what it is.
These are the regulators that are currently defined in my DTS, notice that reg_usb2_vbus doesn’t exist:
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_sd1_vmmc: sd1_regulator {
compatible = "regulator-fixed";
regulator-name = "WLAN_EN";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>;
off-on-delay = <20000>;
startup-delay-us = <100>;
enable-active-high;
};
reg_usdhc2_vmmc: regulator-usdhc2 {
compatible = "regulator-fixed";
regulator-name = "VSD_3V3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
off-on-delay = <20000>;
enable-active-high;
};
reg_audio_board: regulator-audio-board {
compatible = "regulator-fixed";
regulator-name = "EXT_PWREN";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
startup-delay-us = <300000>;
gpio = <&pca6416 1 GPIO_ACTIVE_HIGH>;
};
};
Therefore if I want to use reg_usb2_vbus I must define it under ‘regulators’ FIRST.
Waiting for your kind feedback, Thanks in advance
KR,
Shai