LED backlight driver

Hello ,

I am a new developer.

I have to write LED backlight driver on GPIO and by my understanding it will go in the path /drivers/video/backlight

Please suggest what changes are required in the DT file so that the probe function is called in my driver. I am using the already available driver


Can you also send example of the DT file,


well ,

xhuang8@INFO-HP-Z400:~/git/linux-stable$ grep -r “gpio-backlight” arch/arm/boot/*
arch/arm/boot/dts/omap3-thunder.dts: compatible = “gpio-backlight”;
arch/arm/boot/dts/omap3-ha-lcd.dts: compatible = “gpio-backlight”;
arch/arm/boot/dts/omap4-var-dvk-om44.dts: compatible = “gpio-backlight”;
arch/arm/boot/dts/imx27-eukrea-mbimxsd27-baseboard.dts: compatible = “gpio-backlight”;
arch/arm/boot/dts/omap3-overo-common-lcd43.dtsi: compatible = “gpio-backlight”;
arch/arm/boot/dts/omap3-overo-common-lcd35.dtsi: compatible = “gpio-backlight”;
arch/arm/boot/dts/omap3-panel-sharp-ls037v7dw01.dtsi: * gpios for gpio-backlight.
arch/arm/boot/dts/omap3-panel-sharp-ls037v7dw01.dtsi: compatible = “gpio-backlight”;

grep is my friend