[linux-sunxi] Kernel CEC driver.

2016-10-17 Thread Jarosław Nieć
Hi I've decided that I want to learn kernel hacking a little and because of that and because of new HDMI CEC Framework in kernel 4.8 I chose to write CEC driver for old Allwinner A10. There in no CEC hardware core for this CPU and I think the only way is to create implementation that uses bit bang

Re: [linux-sunxi] Kernel CEC driver.

2016-10-17 Thread Bastiaan van den Berg
https://groups.google.com/forum/#!topic/linux-sunxi/l5jhSY8PDFA This thread does seem to suggest there is (some) CEC hardware...​ Also some code here ; https://groups.google.com/forum/#!msg/linux-sunxi/cNbMiwzgGJ0/tK-KvXkn-pQJ Not sure if you missed it or i'm blind, just ignore if nonsense ;) -

Re: [linux-sunxi] Kernel CEC driver.

2016-10-17 Thread Jarosław Nieć
> > > https://groups.google.com/forum/#!topic/linux-sunxi/l5jhSY8PDFA > > This thread does seem to suggest there is (some) CEC hardware...​ > > Also some code here ; > https://groups.google.com/forum/#!msg/linux-sunxi/cNbMiwzgGJ0/tK-KvXkn-pQJ > > Not sure if you missed it or i'm blind, just ignore

Re: [linux-sunxi] Kernel CEC driver.

2016-10-17 Thread jonsm...@gmail.com
On Mon, Oct 17, 2016 at 3:07 PM, Jarosław Nieć wrote: >> >> https://groups.google.com/forum/#!topic/linux-sunxi/l5jhSY8PDFA >> >> This thread does seem to suggest there is (some) CEC hardware... >> >> Also some code here ; >> https://groups.google.com/forum/#!msg/linux-sunxi/cNbMiwzgGJ0/tK-KvXkn-p

Re: [linux-sunxi] Kernel CEC driver.

2016-10-17 Thread Maxime Ripard
Hi Jarosław, On Mon, Oct 17, 2016 at 08:15:53PM +0200, Jarosław Nieć wrote: > I've decided that I want to learn kernel hacking a little and because of > that and because of new HDMI CEC Framework in kernel 4.8 I chose to write > CEC driver for old Allwinner A10. > There in no CEC hardware core for

Re: [linux-sunxi] Kernel CEC driver.

2016-10-17 Thread Jarosław Nieć
Hi Maxime, On Mon, Oct 17, 2016 at 9:51 PM, Maxime Ripard < maxime.rip...@free-electrons.com> wrote: > Hi Jarosław, > > On Mon, Oct 17, 2016 at 08:15:53PM +0200, Jarosław Nieć wrote: > > I've decided that I want to learn kernel hacking a little and because of > > that and because of new HDMI CEC

Re: [linux-sunxi] Kernel CEC driver.

2016-10-18 Thread Hans de Goede
Hi, On 17-10-16 23:33, Jarosław Nieć wrote: Hi Maxime, On Mon, Oct 17, 2016 at 9:51 PM, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: Hi Jarosław, On Mon, Oct 17, 2016 at 08:15:53PM +0200, Jarosław Nieć wrote: > I've decided that I want to learn kernel hacking a l

Re: [linux-sunxi] Kernel CEC driver.

2016-10-18 Thread Chen-Yu Tsai
On Tue, Oct 18, 2016 at 6:14 PM, Hans de Goede wrote: > Hi, > > On 17-10-16 23:33, Jarosław Nieć wrote: >> >> Hi Maxime, >> >> >> On Mon, Oct 17, 2016 at 9:51 PM, Maxime Ripard >> mailto:maxime.rip...@free-electrons.com>> >> wrote: >> >> Hi Jarosław, >> >> On Mon, Oct 17, 2016 at 08:15:53P

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Hans de Goede
Hi, On 19-10-16 05:16, Chen-Yu Tsai wrote: On Tue, Oct 18, 2016 at 6:14 PM, Hans de Goede wrote: Hi, On 17-10-16 23:33, Jarosław Nieć wrote: Hi Maxime, On Mon, Oct 17, 2016 at 9:51 PM, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: Hi Jarosław, On Mon, Oct 17, 20

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Chen-Yu Tsai
On Wed, Oct 19, 2016 at 5:53 PM, Hans de Goede wrote: > Hi, > > > On 19-10-16 05:16, Chen-Yu Tsai wrote: >> >> On Tue, Oct 18, 2016 at 6:14 PM, Hans de Goede >> wrote: >>> >>> Hi, >>> >>> On 17-10-16 23:33, Jarosław Nieć wrote: Hi Maxime, On Mon, Oct 17, 2016 at 9:51

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Hans de Goede
Hi, On 19-10-16 11:57, Chen-Yu Tsai wrote: On Wed, Oct 19, 2016 at 5:53 PM, Hans de Goede wrote: Hi, On 19-10-16 05:16, Chen-Yu Tsai wrote: On Tue, Oct 18, 2016 at 6:14 PM, Hans de Goede wrote: Hi, On 17-10-16 23:33, Jarosław Nieć wrote: Hi Maxime, On Mon, Oct 17, 2016 at 9:51 PM,

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Maxime Ripard
On Wed, Oct 19, 2016 at 11:53:10AM +0200, Hans de Goede wrote: > > > If all the hardware allows you to-do is set / read the pin, you > > > could write a gpio-chip driver for it, and then attach a generic > > > cec-over-gpio driver to that, that seems like a better idea then > > > an Allwinner speci

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Maxime Ripard
Hi, On Mon, Oct 17, 2016 at 11:33:45PM +0200, Jarosław Nieć wrote: > > > I've decided that I want to learn kernel hacking a little and because of > > > that and because of new HDMI CEC Framework in kernel 4.8 I chose to write > > > CEC driver for old Allwinner A10. > > > There in no CEC hardware c

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Jarosław Nieć
On Wed, Oct 19, 2016 at 2:55 PM, Maxime Ripard < maxime.rip...@free-electrons.com> wrote: > On Wed, Oct 19, 2016 at 11:53:10AM +0200, Hans de Goede wrote: > > > > If all the hardware allows you to-do is set / read the pin, you > > > > could write a gpio-chip driver for it, and then attach a generi

Re: [linux-sunxi] Kernel CEC driver.

2016-10-19 Thread Jarosław Nieć
On Wed, Oct 19, 2016 at 3:02 PM, Maxime Ripard < maxime.rip...@free-electrons.com> wrote: > Hi, > > On Mon, Oct 17, 2016 at 11:33:45PM +0200, Jarosław Nieć wrote: > > BTW Implementing general cec-over-gpio driver could be also quite > > useful for lot of projects. > > Rockchip has such a driver al

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Hans de Goede
Hi, On 19-10-16 20:33, Jarosław Nieć wrote: On Wed, Oct 19, 2016 at 2:55 PM, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: On Wed, Oct 19, 2016 at 11:53:10AM +0200, Hans de Goede wrote: > > > If all the hardware allows you to-do is set / read the pin, you > > > cou

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Hans de Goede
Hi, On 19-10-16 21:02, Jarosław Nieć wrote: On Wed, Oct 19, 2016 at 3:02 PM, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: Hi, On Mon, Oct 17, 2016 at 11:33:45PM +0200, Jarosław Nieć wrote: > BTW Implementing general cec-over-gpio driver could be also quite >

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Hans Verkuil
On 10/20/16 11:18, Hans de Goede wrote: Hi, On 19-10-16 21:02, Jarosław Nieć wrote: On Wed, Oct 19, 2016 at 3:02 PM, Maxime Ripard mailto:maxime.rip...@free-electrons.com>> wrote: Hi, On Mon, Oct 17, 2016 at 11:33:45PM +0200, Jarosław Nieć wrote: > BTW Implementing general cec-ov

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Maxime Ripard
On Thu, Oct 20, 2016 at 11:17:13AM +0200, Hans de Goede wrote: > Yes that is the idea. Although it is not really fake as theoretically > the CEC pin could be used as a general gpio. Basically the idea is that > if the hardware only offers get and set functionality on the pin and > nothing really CE

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Maxime Ripard
On Wed, Oct 19, 2016 at 09:02:50PM +0200, Jarosław Nieć wrote: > On Wed, Oct 19, 2016 at 3:02 PM, Maxime Ripard < > maxime.rip...@free-electrons.com> wrote: > > > Hi, > > > > On Mon, Oct 17, 2016 at 11:33:45PM +0200, Jarosław Nieć wrote: > > > BTW Implementing general cec-over-gpio driver could be

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Hans de Goede
Hi, On 20-10-16 14:55, Maxime Ripard wrote: On Thu, Oct 20, 2016 at 11:17:13AM +0200, Hans de Goede wrote: Yes that is the idea. Although it is not really fake as theoretically the CEC pin could be used as a general gpio. Basically the idea is that if the hardware only offers get and set functi

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Hans de Goede
Hi, On 20-10-16 14:55, Maxime Ripard wrote: On Thu, Oct 20, 2016 at 11:17:13AM +0200, Hans de Goede wrote: Yes that is the idea. Although it is not really fake as theoretically the CEC pin could be used as a general gpio. Basically the idea is that if the hardware only offers get and set functi

Re: [linux-sunxi] Kernel CEC driver.

2016-10-20 Thread Jarosław Nieć
Hi, Thank you guys for your great inputs. Discussion was very very helpful and clarified lot of things. Here is more of less my current master plan :) 1) finish first version of sunxi CEC adapter that is using pooling of HDMI CEC register. This version will be without EDID parsing. Even if we lat

Re: [linux-sunxi] Kernel CEC driver.

2016-10-26 Thread Maxime Ripard
On Thu, Oct 20, 2016 at 04:39:26PM +0200, Hans de Goede wrote: > On 20-10-16 14:55, Maxime Ripard wrote: > > On Thu, Oct 20, 2016 at 11:17:13AM +0200, Hans de Goede wrote: > > > Yes that is the idea. Although it is not really fake as theoretically > > > the CEC pin could be used as a general gpio.