Hi @lucas_az.tx !
Thanks a lot for the information
Yes, I have added my custom layer meta-raju to the bblayers.conf. Here’s the result from running bitbake-layers show-layers to confirm that it’s being included:
meta-raju /home/raju/oe-core/layers/meta-raju 6
Just for checking purposes, I’m currently using your example device tree overlay exactly as it is, and I have also verified that no other node is using the GPIO pin(k3-am62-verdin.dtsi) I’m testing with (gpio-pull_up).
Here’s the content of my overlay file verdin-am62_gpio-pullup.dts:
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "toradex,verdin-am62";
};
&main_pmx0 {
pinctrl_custom_pullup: main-custom-pullup {
pinctrl-single,pins = <
AM62X_IOPAD(0x0094, PIN_INPUT_PULLUP, 7)
>;
};
};
And here’s my device-tree-overlays_%.bbappend file:
FILESEXTRAPATHS:prepend := "${THISDIR}/device-tree-overlays:"
CUSTOM_OVERLAYS_SOURCE = " \
verdin-am62_gpio-pullup.dts \
"
CUSTOM_OVERLAYS_BINARY = " \
verdin-am62_gpio-pullup.dtbo \
"
SRC_URI += " \
file://verdin-am62_gpio-pullup.dts \
"
TEZI_EXTERNAL_KERNEL_DEVICETREE += " \
${CUSTOM_OVERLAYS_BINARY} \
"
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT = " \
${CUSTOM_OVERLAYS_BINARY} \
"
do_collect_overlays:prepend() {
for DTS in ${CUSTOM_OVERLAYS_SOURCE}; do
cp ${WORKDIR}/${DTS} ${S}
done
}
After creating the overlay and .bbappend, I ran:
bitbake tdx-reference-multimedia-image
The build finished without any errors, but I noticed that the .dtbo file was not included or generated.
Just to test if BitBake is actually considering my .bbappend file, I tried intentionally putting a wrong file name in the SRC_URI like this:
SRC_URI += " \
file://verdin-a2_gpio-pullup.dts \ # (note the wrong filename here)
"
Surprisingly, it still compiled with zero errors, which makes me think that BitBake might not even be considering my device-tree-overlays_%.bbappend file at all during the build process.
So my doubt is — even though the layer is added correctly and the recipe exists, is there something extra I need to do to ensure that this .bbappend is picked up? Or maybe I’ve missed a necessary include or dependency to hook into the overlays mechanism?
Thanks again for your support and the great explanation you provided in your last message — especially the reference to the datasheet and how to verify the mux modes and pin addresses!
Best regards,
Raju