How to use DSI debugfs?


#1

Hi,I want to read/write register on DSI panel , I think the debugfs can do it
and i check the debug file

root@msm8916_64:/sys/kernel/debug/mdp # ls
dsi0_ctrl_off
dsi0_ctrl_reg
dsi0_phy_off
dsi0_phy_reg
dump
off
panel_off
panel_reg
perf
reg
stat
vbif_off
vbif_reg
xlog

i try to read 0x0a register from dsi panel

root@msm8916_64:/sys/kernel/debug/mdp # echo “0x0a 10 0x00000000” > dsi0_ctrl_off
root@msm8916_64:/sys/kernel/debug/mdp # cat dsi0_ctrl_reg
but my android os will crash,and i need to restart the dragonboard

how can i read the register from the dsi panel?
Thank you


#2

hi,

you can add debugs in the panel driver

refer this

MIPI_DCS_GET_POWER_MODE = 0x0A,
include/video/mipi_display.h

regards,
vinaysimha