Unfortunately, the zynqmp.dtsi from your git repo used in the device-tree generation does not include the input.h, and input.h is not even copied to the build/device-tree/include directory.
Best Regards Ulf Samuelsson > 13 dec. 2022 kl. 02:28 skrev Mark Hatle <[email protected]>: > > As Sandeep indicated, the components are designed to work together. If you > want to use a different kernel (upstream, Yocto, or another vendor), but it > has a different input.h. You either need to path the device-tree-xlnx or > pre-generate your device-tree and do NOT use the dtgen construction at all. > > Hopefully soon I will have the langdale (and maybe master) version of > meta-xilinx updates as we've been working on simplifying some of these > things. I've recently been testing NOT using meta-xilinx-tools at all, and > providing my own device-trees and firmware binaries to avoid > meta-xilinx-tools. > > --Mark > >> On 12/12/22 9:56 AM, Sandeep Gundlupet Raju via lists.yoctoproject.org wrote: >>> 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 (#5119): https://lists.yoctoproject.org/g/meta-xilinx/message/5119 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]] -=-=-=-=-=-=-=-=-=-=-=-
