2016-10-19 16:34:40

by Randy Li

[permalink] [raw]
Subject: the dp helper would try to enable the i2c channel for rockchip-edp

Hello,

Recently, I want to use a eDP panel in my RK3288 platform, but I got
the following message:

[ 8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff970000/ports
[ 8.936018] rockchip-drm display-subsystem: bound ff970000.dp (ops
rockchip_dp_component_ops [analogix_dp_rockchip])
It try to enable the eDP aux channel and add a new I2C controller, but
it failed then the whole display subsystem is broken, the panel doesn't
power on either.

I hope somebody could figure out what is wrong with it.



2016-10-20 07:18:30

by Tomeu Vizoso

[permalink] [raw]
Subject: Re: the dp helper would try to enable the i2c channel for rockchip-edp

On 19 October 2016 at 15:52, Randy Li <[email protected]> wrote:
> Hello,
>
> Recently, I want to use a eDP panel in my RK3288 platform, but I got the
> following message:
>
> [ 8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff970000/ports
> [ 8.936018] rockchip-drm display-subsystem: bound ff970000.dp (ops
> rockchip_dp_component_ops [analogix_dp_rockchip])
> It try to enable the eDP aux channel and add a new I2C controller, but it
> failed then the whole display subsystem is broken, the panel doesn't power
> on either.
>
> I hope somebody could figure out what is wrong with it.

Hi Randy,

you want to debug why the call to of_modalias_node fails.

Good luck,

Tomeu


>
> _______________________________________________
> dri-devel mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

2016-10-20 07:39:01

by Randy Li

[permalink] [raw]
Subject: Re: the dp helper would try to enable the i2c channel for rockchip-edp



On 10/20/2016 03:18 PM, Tomeu Vizoso wrote:
> On 19 October 2016 at 15:52, Randy Li <[email protected]> wrote:
>> Hello,
>>
>> Recently, I want to use a eDP panel in my RK3288 platform, but I got the
>> following message:
>>
>> [ 8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff970000/ports
>> [ 8.936018] rockchip-drm display-subsystem: bound ff970000.dp (ops
>> rockchip_dp_component_ops [analogix_dp_rockchip])
>> It try to enable the eDP aux channel and add a new I2C controller, but it
>> failed then the whole display subsystem is broken, the panel doesn't power
>> on either.
>>
>> I hope somebody could figure out what is wrong with it.
>
> Hi Randy,
>
> you want to debug why the call to of_modalias_node fails.
>
But I didn't know who register that I2C controller, as the system only
have 6 I2C controller(0-5).
> Good luck,
>
> Tomeu
>
>
>>
>> _______________________________________________
>> dri-devel mailing list
>> [email protected]
>> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>

--
Randy Li
The third produce department
===========================================================================
This email message, including any attachments, is for the sole
use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. [Fuzhou Rockchip Electronics, INC. China mainland]
===========================================================================

2016-10-20 08:02:49

by Tomeu Vizoso

[permalink] [raw]
Subject: Re: the dp helper would try to enable the i2c channel for rockchip-edp

On 20 October 2016 at 09:38, Randy Li <[email protected]> wrote:
>
>
> On 10/20/2016 03:18 PM, Tomeu Vizoso wrote:
>>
>> On 19 October 2016 at 15:52, Randy Li <[email protected]> wrote:
>>>
>>> Hello,
>>>
>>> Recently, I want to use a eDP panel in my RK3288 platform, but I got
>>> the
>>> following message:
>>>
>>> [ 8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff970000/ports
>>> [ 8.936018] rockchip-drm display-subsystem: bound ff970000.dp (ops
>>> rockchip_dp_component_ops [analogix_dp_rockchip])
>>> It try to enable the eDP aux channel and add a new I2C controller, but it
>>> failed then the whole display subsystem is broken, the panel doesn't
>>> power
>>> on either.
>>>
>>> I hope somebody could figure out what is wrong with it.
>>
>>
>> Hi Randy,
>>
>> you want to debug why the call to of_modalias_node fails.
>>
> But I didn't know who register that I2C controller, as the system only have
> 6 I2C controller(0-5).

Ah, now I remember that the warning is spurious, have just sent a
patch to avoid it with you on Cc ("ARM: dts: rockchip: add i2c-bus
subnode to edp").

Could you please test it out?

Regarding why a 7th I2C adapter is being registered, that's the one
used by the eDP controller, and the code registering it is DRM core
when the analogix driver calls drm_dp_aux_register.

Regarding your problem with DRM not loading properly, you would need
to attach more content from dmesg as the lines you attached doesn't
seem related to it. You can get more debug logs from DRM by booting
with this kernel parameter:

drm.debug=0x1f

Regards,

Tomeu