Skip to content

Commit 00a5244

Browse files
committed
Adjust overlay to use x8h7_gpio irq
1 parent 1873c31 commit 00a5244

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

recipes-bsp/device-tree/lmp-device-tree/portenta-x8/ov_carrier_enuc_bq24195.dts

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,50 +17,32 @@
1717
compatible = "fsl,imx8mm-evk", "fsl,imx8mm";
1818

1919
fragment@0 {
20-
target = <&iomuxc>;
21-
__overlay__ {
22-
imx8mm {
23-
/* @TODO: fix me bq24195 irq line pass thru stm32h7 */
24-
pinctrl_gpio_bq24195: gpiobq24195grp {
25-
fsl,pins = <
26-
MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x141 /* Interrupt pin pull-up stm32h7 PE11 */
27-
>;
28-
};
29-
};
30-
};
31-
};
32-
33-
fragment@1 {
3420
target-path = "/";
3521
__overlay__ {
3622
bat: battery {
3723
compatible = "simple-battery";
3824
precharge-current-microamp = <256000>;
3925
charge-term-current-microamp = <128000>;
40-
/*
41-
compatible = "simple-battery";
26+
/*compatible = "simple-battery";
4227
voltage-min-design-microvolt = <3200000>;
4328
energy-full-design-microwatt-hours = <5290000>;
4429
charge-full-design-microamp-hours = <1430000>;
4530
precharge-current-microamp = <256000>;
4631
charge-term-current-microamp = <128000>;
4732
constant-charge-current-max-microamp = <900000>;
48-
constant-charge-voltage-max-microvolt = <4200000>;
49-
*/
33+
constant-charge-voltage-max-microvolt = <4200000>;*/
5034
};
5135
};
5236
};
5337

54-
fragment@2 {
38+
fragment@1 {
5539
target = <&i2c3>;
5640
__overlay__ {
5741
bq24195: charger@6b {
5842
compatible = "ti,bq24195";
59-
pinctrl-names = "default";
60-
pinctrl-0 = <&pinctrl_gpio_bq24195>;
6143
reg = <0x6b>;
62-
interrupt-parent = <&gpio1>;
63-
interrupts = <5 IRQ_TYPE_NONE>; /* Edge set in drv module stm32h7 PE11 */
44+
interrupt-parent = <&x8h7_gpio>;
45+
interrupts = <6 IRQ_TYPE_NONE>; /* Edge set in drv module stm32h7 PE11 */
6446
monitored-battery = <&bat>;
6547
ti,system-minimum-microvolt = <3200000>;
6648
omit-battery-class;

0 commit comments

Comments
 (0)