mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
ARM: dts: msm: Use regulator-fixed to drive GPIO 43 on cinder
Use fixed voltage regulator framework to assert/deassert Vbus-out pin (TLMM GPIO 43). And this tlmm pin is connected to EN pin of NX5P1100 switch. This regualator phandle is added to usb-conn-gpio node, so that enabling/disabling this regulator would assert or deassert the GPIO. And thus Vbus can be supplied to the peripheral using this GPIO. Change-Id: Ic2c4c8a88d9c1808588bce8fd25a002ceb1dba20
This commit is contained in:
@@ -2,16 +2,24 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
&soc {
|
||||
vbus_supply_regulator: vbus_supply_regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_supply";
|
||||
enable-active-high;
|
||||
gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb_vbus_boost_default>;
|
||||
};
|
||||
|
||||
usb_conn_gpio: usb_conn_gpio {
|
||||
compatible = "gpio-usb-b-connector";
|
||||
vbus-gpio = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
|
||||
id-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
|
||||
vbus-out-gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>;
|
||||
vbus-supply = <&vbus_supply_regulator>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb_vbus_det_default
|
||||
&usb_id_det_default
|
||||
&usb_vbus_boost_default>;
|
||||
&usb_id_det_default>;
|
||||
|
||||
port {
|
||||
usb_port0_connector: endpoint {
|
||||
|
||||
Reference in New Issue
Block a user