Where are groups like ledgrp and keygrp defined in device tree?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where are groups like ledgrp and keygrp defined in device tree?

795 Views
Majid
Contributor II
I have been studying device tree for some time. I can not find the definition of ledgrp or keygrp in existing files. Where can I find them? I'm using imx6ull and it's .dts files.
0 Kudos
Reply
2 Replies

785 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

765 Views
Majid
Contributor II

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  

0 Kudos
Reply