All of lore.kernel.org
 help / color / mirror / Atom feed
* Help connect s3c2410-lcd device to SMDK2443
@ 2013-02-05 19:36 Alexander Varnin
  2013-02-05 22:17 ` Heiko Stübner
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Varnin @ 2013-02-05 19:36 UTC (permalink / raw)
  To: linux-samsung-soc

Hello. I'm trying to setup "s3c2410-lcd" device on SMDK2443 with 3.6 kernel.
On requesting interrupt it fails with EINVAL:
~ # dmesg | grep lcd
s3c2410-lcd s3c2410-lcd: cannot get irq 32 - err -22
s3c2410-lcd: probe of s3c2410-lcd failed with error -16


The interrupt is not busy by something else. Here is my table:
~ # cat /proc/interrupts
CPU0
  17:          0  s3c-ext0 s3c-mci
  30:     409934       s3c  S3C2410 Timer Tick
  37:          0       s3c s3c-mci
  42:        416       s3c ohci_hcd:usb1
  43:          0       s3c s3c2410-i2c
  56:          1   s3c-ext uio_mcross
  57:      72585   s3c-ext eth0
  73:         63  s3c-uart1 s3c2440-uart
  74:        108  s3c-uart1 s3c2440-uart
  97:          0         - s3c2410-wdt
Err:

Please, help me to find the reason.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help connect s3c2410-lcd device to SMDK2443
  2013-02-05 19:36 Help connect s3c2410-lcd device to SMDK2443 Alexander Varnin
@ 2013-02-05 22:17 ` Heiko Stübner
  2013-02-07 23:43   ` Alexander Varnin
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stübner @ 2013-02-05 22:17 UTC (permalink / raw)
  To: Alexander Varnin; +Cc: linux-samsung-soc

Hi Alexander,

Am Dienstag, 5. Februar 2013, 20:36:20 schrieb Alexander Varnin:
> Hello. I'm trying to setup "s3c2410-lcd" device on SMDK2443 with 3.6
> kernel. On requesting interrupt it fails with EINVAL:
> ~ # dmesg | grep lcd
> s3c2410-lcd s3c2410-lcd: cannot get irq 32 - err -22
> s3c2410-lcd: probe of s3c2410-lcd failed with error -16

If I remember correctly the s3c2443 has a new-style framebuffer. So using the 
s3c2410-fb/lcd driver is the wrong approach. The correct driver to use would 
be the s3cfb.

Take a look at mach-smdk2416.c which uses this driver. The init for the 
s3c2443 should probably be similar.


Also the irq you requested is a parent irq to different lcd-irqs in the sub-
register on the s3c2443 and s3c2416. Therfore requesting it directly is 
disabled by the irq-subsystem.


Hope that helps
Heiko

> 
> The interrupt is not busy by something else. Here is my table:
> ~ # cat /proc/interrupts
> CPU0
>   17:          0  s3c-ext0 s3c-mci
>   30:     409934       s3c  S3C2410 Timer Tick
>   37:          0       s3c s3c-mci
>   42:        416       s3c ohci_hcd:usb1
>   43:          0       s3c s3c2410-i2c
>   56:          1   s3c-ext uio_mcross
>   57:      72585   s3c-ext eth0
>   73:         63  s3c-uart1 s3c2440-uart
>   74:        108  s3c-uart1 s3c2440-uart
>   97:          0         - s3c2410-wdt
> Err:
> 
> Please, help me to find the reason.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help connect s3c2410-lcd device to SMDK2443
  2013-02-05 22:17 ` Heiko Stübner
@ 2013-02-07 23:43   ` Alexander Varnin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Varnin @ 2013-02-07 23:43 UTC (permalink / raw)
  To: Heiko Stübner; +Cc: linux-samsung-soc

06.02.2013 02:17, Heiko Stübner пишет:
> Hi Alexander,
>
> Am Dienstag, 5. Februar 2013, 20:36:20 schrieb Alexander Varnin:
>> Hello. I'm trying to setup "s3c2410-lcd" device on SMDK2443 with 3.6
>> kernel. On requesting interrupt it fails with EINVAL:
>> ~ # dmesg | grep lcd
>> s3c2410-lcd s3c2410-lcd: cannot get irq 32 - err -22
>> s3c2410-lcd: probe of s3c2410-lcd failed with error -16
> If I remember correctly the s3c2443 has a new-style framebuffer. So using the
> s3c2410-fb/lcd driver is the wrong approach. The correct driver to use would
> be the s3cfb.
>
> Take a look at mach-smdk2416.c which uses this driver. The init for the
> s3c2443 should probably be similar.
>
>
> Also the irq you requested is a parent irq to different lcd-irqs in the sub-
> register on the s3c2443 and s3c2416. Therfore requesting it directly is
> disabled by the irq-subsystem.
>
>
> Hope that helps
> Heiko
Thank you for help. I have used s3c-fb driver and all is ok.
>
>> The interrupt is not busy by something else. Here is my table:
>> ~ # cat /proc/interrupts
>> CPU0
>>    17:          0  s3c-ext0 s3c-mci
>>    30:     409934       s3c  S3C2410 Timer Tick
>>    37:          0       s3c s3c-mci
>>    42:        416       s3c ohci_hcd:usb1
>>    43:          0       s3c s3c2410-i2c
>>    56:          1   s3c-ext uio_mcross
>>    57:      72585   s3c-ext eth0
>>    73:         63  s3c-uart1 s3c2440-uart
>>    74:        108  s3c-uart1 s3c2440-uart
>>    97:          0         - s3c2410-wdt
>> Err:
>>
>> Please, help me to find the reason.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-07 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 19:36 Help connect s3c2410-lcd device to SMDK2443 Alexander Varnin
2013-02-05 22:17 ` Heiko Stübner
2013-02-07 23:43   ` Alexander Varnin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.