On 12/12/2022 8:11 AM, Ulf Samuelsson via lists.yoctoproject.org wrote:
Right now, the device tree compile adds a few choosen header files.
I think that it would be good to have a choice to use the header files from the 
kernel tree in Yocto.

[Sandeep]: DTG uses both u-boot and linux device-tree files and headers. If you look at https://github.com/Xilinx/device-tree-xlnx/blob/xlnx_rel_v2022.2/device_tree/data/kernel_dtsi/2022.2/include/dt-bindings/input/input.h

which is nothing but https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2022.2/include/dt-bindings/input/input.h which includes symbolic link to linux-event-code.h, Content of linux kernel linux-event-code.h and DTG input.h should be same. The reason why we are doing this is some DT bindings are specific to u-boot and some are linux and DTG has to support for u-boot and linux.

When You have GPIO, you really want to include linux-event-codes.h

This is not easily done today.

You have to patch your device-tree repo.
* Add include statement in  the zyncmp.dtsi
* Add the include/dt-bindings/input/linux-event-codes.h file
* Modify the device-tree.tcl to copy the header file to 
build/device-tree/include

It is a PITA ;-)


Best Regards
Ulf Samuelsson




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5116): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5116
Mute This Topic: https://lists.yoctoproject.org/mt/95622965/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to