@luz I think the gpio18 is used for the max98357a at the dts file,

sdmode-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;

you can remove that pin config, and try.