All of lore.kernel.org
 help / color / mirror / Atom feed
* Developing Linux Kernel Driver for LED Driver
@ 2016-06-14  3:22 Raul Piper
  2016-06-14  8:37 ` Jacek Anaszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Raul Piper @ 2016-06-14  3:22 UTC (permalink / raw)
  To: linux-leds

Hi,
I am developing a Linux kernel driver(software) for a 16 channel LED
driver(this driverhere refers to the hardware of LED ) .Below are few
of its characteristics

DC input voltage range : 10 V to 28 V
Integrated boost converter with adaptive output voltage
16 channels  and independent PWM brightness control
Up to 15 white LEDs per channel
On-board microcontroller for total device control through 4-wire
serial interface
LED short-circuit faults management

I have done some brute force work by creating a user space application
to do some portion of the LED glowing, I know its not a full fledged
work.

I want to know on the below points :
1. How can I convert it into a GPIO driver and the standard ramework
with which I can integrate it.
2.The architecture of the user space application to test this driver
3.The requirement for the Device Tree configuration for this.
4.The name of the LED class driver maintainer in the kernel linux, to
whom I have to send the patch?
5.Any other mandatory requirement to which I have to adhere to for
pushing the device driver to the main line.

PS : I am using TI's beagleboard for developing the driver on the kernel 4.1x.

Br,
Rp

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

* Re: Developing Linux Kernel Driver for LED Driver
  2016-06-14  3:22 Developing Linux Kernel Driver for LED Driver Raul Piper
@ 2016-06-14  8:37 ` Jacek Anaszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Jacek Anaszewski @ 2016-06-14  8:37 UTC (permalink / raw)
  To: Raul Piper; +Cc: linux-leds

Hi Raul,

On 06/14/2016 05:22 AM, Raul Piper wrote:
> Hi,
> I am developing a Linux kernel driver(software) for a 16 channel LED
> driver(this driverhere refers to the hardware of LED ) .Below are few
> of its characteristics
>
> DC input voltage range : 10 V to 28 V
> Integrated boost converter with adaptive output voltage
> 16 channels  and independent PWM brightness control
> Up to 15 white LEDs per channel
> On-board microcontroller for total device control through 4-wire
> serial interface
> LED short-circuit faults management
>
> I have done some brute force work by creating a user space application
> to do some portion of the LED glowing, I know its not a full fledged
> work.
>
> I want to know on the below points :
> 1. How can I convert it into a GPIO driver and the standard ramework
> with which I can integrate it.

Please get acquainted with the LED subsystem documentation:
Documentation/leds/leds-class.txt.

You should also refer to the existing LED class drivers in drivers/leds
to find out how LED class devices are being registered.

> 2.The architecture of the user space application to test this driver

LED class devices expose sysfs interface at /sys/class/leds, i.e.
the LEDs can be controlled from bash.

> 3.The requirement for the Device Tree configuration for this.

Please refer to Documentation/devicetree/bindings/leds/common.txt
and driver bindings in Documentation/devicetree/bindings/leds.

> 4.The name of the LED class driver maintainer in the kernel linux, to
> whom I have to send the patch?

./scripts/get_maintainer.pl -f drivers/leds/ will give you the answer.

> 5.Any other mandatory requirement to which I have to adhere to for
> pushing the device driver to the main line.

Please read the following documents:

- Documentation/SubmittingPatches
- Documentation/SubmittingDrivers
- Documentation/SubmitChecklist

-- 
Best regards,
Jacek Anaszewski

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

* Developing Linux Kernel Driver for LED Driver
@ 2016-06-14  4:29 Raul Piper
  0 siblings, 0 replies; 3+ messages in thread
From: Raul Piper @ 2016-06-14  4:29 UTC (permalink / raw)
  To: kernelnewbies

PS:Reposting it from the led-linux group to here.
Hi,
I am developing a Linux kernel driver(software) for a 16 channel LED
driver(this driver here refers to the hardware of LED called LED
Driver ) .Below are few of its characteristics

DC input voltage range : 10 V to 28 V
Integrated boost converter with adaptive output voltage
16 channels  and independent PWM brightness control
Up to 15 white LEDs per channel
On-board microcontroller for total device control through 4-wire
serial interface
LED short-circuit faults management

I have done some brute force work by creating a user space application
to do some portion of the LED glowing, I know its not a full fledged
work.

I want to know on the below points :
1. How can I convert it into a GPIO driver and the standard Framework
with which I can integrate it.
2.The architecture of the user space application to test this driver
3.The requirement for the Device Tree configuration for this.
4.The name of the LED class driver maintainer in the kernel linux, to
whom I have to send the patch?
5.Any other mandatory requirement to which I have to adhere to for
pushing the device driver to the main line.

PS : I am using TI's beagleboard for developing the driver on the kernel 4.1x.

Any reference example for such n channel Led driver will be helpful .

Br,
Rp

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

end of thread, other threads:[~2016-06-14  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-14  3:22 Developing Linux Kernel Driver for LED Driver Raul Piper
2016-06-14  8:37 ` Jacek Anaszewski
2016-06-14  4:29 Raul Piper

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.