Hi Majid,
There are many examples in linux-imx/arch/arm/boot/dts, for example.
# cd linux-imx/arch/arm/boot/dts
# grep -r -n 'gpio-keys' ./
...
./imx6qdl-nitrogen6_max.dtsi:97: gpio-keys {
./imx6qdl-nitrogen6_max.dtsi:98: compatible = "gpio-keys";
./imx6qdl-nitrogen6_max.dtsi:472: pinctrl_gpio_keys: gpio-keysgrp {
...
# grep -r -n 'gpio-leds' ./
...
./imx6qdl-ts4900.dtsi:53: compatible = "gpio-leds";
...
You can refer to these dts file as your study purpose.
Hope this information is helpful to you.
Have a nice day!
B.R,
Weidong
Hi Weidong
Thank you for your reply.
I want to know if they defined some where, where is it? I didn't see they defined in .dts or .dtsi files or couldn't find them. also I looking for source codes too but I didn't find any thing. so where they come?
-Majid
-Regards