There is a strange bug where the line in this file cannot go beyond a certain length. I have to manually break all parameters into separate line.
/boot/config.txt
dtoverlay=ads7846
dtparam=cs=1,penirq=17,penirq_pull=2,speed=1000000,swapxy=1,pmax=255
dtparam …