imx7 sabresd epdc not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx7 sabresd epdc not working

2,576 Views
adnanali
Contributor III

Hello NXP,

 

I have an imx7d based sabresd board. And I want to enable epdc on it, for which I select imx7d-sdb-epdc.dtb device-tree. But the epdc does not comes up. During the bootlog I see that Max17135 PMIC does not probes and when the epdc goes to find "DISPLAY" regulator, it fails.

 

i2c i2c-2: Max17135 PMIC not found

imx_epdc_v2_fb 306f0000.epdc: Unable to get display PMIC regulator.err = 0xfffffdfb

 

Any idea what can be wrong here ?

 

kernel git branch = imx_3.14.52_1.1.0_ga

u-boot-imx branch = imx_v2015.04_3.14.52_1.1.0_ga

 

Also tried yocto meta-fsl-arm layer. And build with machine imx7dsabresd

I have also tried UBOOT_CONFIG_append = " epdc"

 

dmesg log is attached

 

Regards,

Adnan

Original Attachment has been moved to: dmesg.log.zip

0 Kudos
3 Replies

1,101 Views
igorpadykov
NXP Employee
NXP Employee

Hi Adnan

please connect EBOOKDC4 E-INK panel and follow

https://community.nxp.com/docs/DOC-328663#comment-35739

one can check i2c signals by oscilloscope (Max17135 PMIC is used by EBOOKDC4),

if necessary

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,101 Views
adnanali
Contributor III

Hello Igor,

Thanks for your reply. If I am not wrong then

"Max17135 should be probed and it should declare all the regulators defined in devicetree irrespective of the fact that the panel is attached to it or not. And if the panel is attached it will use one of those regulator. Unless Max17135 is probed the panel won't work."

I dont have the panel atm and want to make sure that everything else is in place before going to shopping

Regards,

0 Kudos

1,101 Views
fahad_arslan
Contributor II

I'm using systemd instead of SysVinit.

# dmesg | grep 17135

[    0.799023] max17135 2-0048: PMIC MAX17135 for eInk display
[    0.901107] max17135 2-0048: Unable to write MAX17135 register via I2C
#

However, during linux boot up, if any service using panel (IMXEBOOKDC4) is enabled, kernel oops is observed (log below).  If I disable such services and enable them later on, everything works fine.

systemctl disable xserver-nodm
systemctl disable psplash-start

systemctl disable psplash-quit

It seems as if driver (which is CONFIG_FB_MXC_EINK_V2_PANEL=y) is unable to gracefully handle any incoming request before device is fully initialized.

Any suggestions/pointers to address this?

Thanks,

Fahad

[    6.867496] Unable to handle kernel paging request at virtual address 2f636470
[    6.867503] pgd = a8d0c000
[    6.867510] [2f636470] *pgd=00000000
[    6.867519] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    6.867527] Modules linked in:
[    6.867537] CPU: 0 PID: 389 Comm: Xorg Not tainted 4.1.31 #1
[    6.867540] Hardware name: Freescale i.MX7 Dual (Device Tree)
[    6.867544] task: a8b0d900 ti: a8dce000 task.ti: a8dce000
[    6.867560] PC is at mxc_epdc_fb_set_par+0x314/0x40c
[    6.867565] LR is at 0x5f63
[    6.867571] pc : [<803e208c>]    lr : [<00005f63>]    psr: 600d0013
[    6.867571] sp : a8dcfcf0  ip : a813c39b  fp : a8dcfd98
[    6.867574] r10: 00000000  r9 : 00000000  r8 : a813c78c
[    6.867579] r7 : 80dd6ed4  r6 : 00000029  r5 : a813c380  r4 : a813c000
[    6.867583] r3 : 2f636470  r2 : 6470652f  r1 : 63647065  r0 : a813c3a9
[    6.867589] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[    6.867593] Control: 10c5387d  Table: a8d0c06a  DAC: 00000015
[    6.867597] Process Xorg (pid: 389, stack limit = 0xa8dce210)
[    6.867602] Stack: (0xa8dcfcf0 to 0xa8dd0000)
[    6.867611] fce0:                                     80d8d740 600d0013 00000000 a8dcfde0
[    6.867619] fd00: 00000000 00000000 00000400 000002f6 02625a00 0000000c 0000004c 00000004
[    6.867626] fd20: 00000005 0000000c 00000002 00000000 00000000 00000020 a8dcfe80 a813c000
[    6.867634] fd40: 00000000 00000000 80dd6e38 00010000 a813c03c 803be170 76800000 00000000
[    6.867643] fd60: a8dce000 80d8f514 00000000 800f4b80 00000097 800ec790 a8a81668 00000076
[    6.867651] fd80: a8a81668 80e43380 80e43384 002084d0 00000141 80d8f908 00000400 000002f6
[    6.867659] fda0: 00000400 00000600 00000000 00000000 00000010 00000000 0000000b 00000005
[    6.867666] fdc0: 00000000 00000005 00000006 00000000 00000000 00000005 00000000 00000000
[    6.867673] fde0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 02625a00
[    6.867681] fe00: 0000000c 0000004c 00000004 00000005 0000000c 00000002 00000000 00000000
[    6.867689] fe20: 00000000 00000000 00000000 00000000 00000000 00000000 80d9e9e0 a813c000
[    6.867696] fe40: a8111340 7ed29a58 a813c00c 7ed29a58 a8dce000 00000000 00000000 803bea08
[    6.867705] fe60: 001b5000 a813c000 76553000 80dd6e38 a8111424 a8c570b0 a8111414 a8111424
[    6.867713] fe80: 00000400 000002f6 00000400 00000600 00000000 00000000 00000020 00000000
[    6.867720] fea0: 00000010 00000008 00000000 00000008 00000008 00000000 00000000 00000008
[    6.867728] fec0: 00000000 00000018 00000008 00000000 00000000 00000000 ffffffff ffffffff
[    6.867736] fee0: 00000000 02625a00 0000000c 0000004c 00000004 00000005 0000000c 00000002
[    6.867743] ff00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    6.867751] ff20: a8dcff14 7ed29a58 a8111340 a8b33000 00000006 8014b8f4 00300000 00000003
[    6.867759] ff40: 00000000 80106dcc 00000001 00000000 a8dcff5c 8013ce38 00000020 00000000
[    6.867767] ff60: 00000001 00000000 00300000 00000003 a8b33000 00000006 a8b33000 00004601
[    6.867775] ff80: 7ed29a58 a8dce000 00000000 8014bb48 7ed29a58 01c83538 00000000 00000036
[    6.867783] ffa0: 8000f544 8000f3c0 7ed29a58 01c83538 00000006 00004601 7ed29a58 00000000
[    6.867791] ffc0: 7ed29a58 01c83538 00000000 00000036 00000400 01c83a88 00000008 00000000
[    6.867799] ffe0: 768aa1f4 7ed2997c 768986c8 769e68ec 600d0010 00000006 00000000 00000000
[    6.867820] [<803e208c>] (mxc_epdc_fb_set_par) from [<803be170>] (fb_set_var+0x1d4/0x354)
[    6.867830] [<803be170>] (fb_set_var) from [<803bea08>] (do_fb_ioctl+0x5a4/0x668)
[    6.867842] [<803bea08>] (do_fb_ioctl) from [<8014b8f4>] (do_vfs_ioctl+0x3e8/0x608)
[    6.867855] [<8014b8f4>] (do_vfs_ioctl) from [<8014bb48>] (SyS_ioctl+0x34/0x5c)
[    6.867869] [<8014bb48>] (SyS_ioctl) from [<8000f3c0>] (ret_fast_syscall+0x0/0x3c)
[    6.867879] Code: e58c1004 e1cce0bc e5cc300e e59433a0 (e5933000)
[    6.867887] ---[ end trace a6734143faaf3151 ]---
[    6.960585] audit: type=1325 audit(1471878212.570:4): table=filter family=2 entries=0
[    6.960642] audit: type=1325 audit(1471878212.570:5): table=mangle family=2 entries=0
[    6.960680] audit: type=1325 audit(1471878212.570:6): table=raw family=2 entries=0
[    6.960776] audit: type=1325 audit(1471878212.570:7): table=filter family=3 entries=0
[    7.412958] imx_epdc_v2_fb 306f0000.epdc: Cleared LUT complete for init update
[    7.511103] imx_epdc_v2_fb 306f0000.epdc: Mode0 init complete
[    7.511119] imx_epdc_v2_fb 306f0000.epdc: EPDC Powerdown
[    7.551136] imx_epdc_v2_fb 306f0000.epdc: epdc busfreq high release.
[    7.551173] imx_epdc_v2_fb 306f0000.epdc: EPDC not active.Update request abort.

0 Kudos