Commit 14cb1280 authored by Guido Gunther's avatar Guido Gunther

arm64: dts: librem5: Add OTG pin to charger

Signed-off-by: Guido Gunther's avatarGuido Günther <agx@sigxcpu.org>
parent 6e5861a8
Pipeline #59094 passed with stage
in 51 minutes and 52 seconds
......@@ -138,12 +138,6 @@ chg-en {
default-state = "off";
};
chg-otg-en {
label = "chg_otg_en";
gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
flash-strobe {
label = "flash_strobe";
gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
......@@ -561,6 +555,11 @@ pinctrl_charger: chargergrp {
fsl,pins = <
/* CHG_EN */
MX8MQ_IOMUXC_NAND_CE1_B_GPIO3_IO2 0x3
>;
};
pinctrl_otg: otggrp {
fsl,pins = <
/* CHG_OTG_OUT_EN */
MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x3
>;
......@@ -1427,7 +1426,7 @@ bq25895: charger@6a {
compatible = "ti,bq25895", "ti,bq25890";
reg = <0x6a>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_charger_in>;
pinctrl-0 = <&pinctrl_charger_in>, <&pinctrl_otg>;
interrupt-parent = <&gpio3>;
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
phys = <&usb3_phy0>;
......@@ -1439,6 +1438,7 @@ bq25895: charger@6a {
ti,vinmin-threshold = <3900000>; /* uV */
monitored-battery = <&bat>;
power-supplies = <&typec_pd>;
otg-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
};
};
......
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