Simple control of charging via GPIO16:

pinctrl set 16 op dh

- stops charging

pinctrl set 16 op dl

- starts charging

default is charging mode