Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello All,
I am mainly having issues compiling .dtso files into .dtbo
Any advice would be greatly appreciated.
The goal is to enable the UART5 pins on the expansion connector.
Hardware: AM62SIP EVM
PSDK: ti-processor-sdk-linux-am62xxsip-evm-10.01.10.04-Linux-x86-Install.bin
I added k3-am62x-sk-uart5.dtso to arch/arm64/boot/dts/ti/
The file contains
/dts-v1/;
/plugin/;
#include <dt-bindings/pinctrl/k3.h>
#include <dt-bindings/gpio/gpio.h>
/* AM62x SK / SiP SK: 40-pin header UART5 on J3:
* Pin 8 -> EXP_UART5_TXD (SoC ball E15)
* Pin 10 -> EXP_UART5_RXD (SoC ball C15)
* MUST be mode 1 (TI E2E correction).
*/
&main_pmx0 {
user_exp_uart5_pins_default: user-exp-uart5-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x01dc, PIN_OUTPUT, 1) /* E15 -> UART5_TXD */
AM62X_IOPAD(0x01d8, PIN_INPUT, 1) /* C15 -> UART5_RXD */
>;
};
};
&main_uart5 {
pinctrl-names = "default";
pinctrl-0 = <&user_exp_uart5_pins_default>;
status = "okay";
};
&{/} {
aliases { serial5 = &main_uart5; };
}
/* power the 40-pin 3V3 rail
&main_i2c1 {
gpio@22 { /* TCA6424 at 0x22 *\/
p05-hog {
gpio-hog;
gpios = <5 GPIO_ACTIVE_HIGH>; /* EXP_PS_3V3_EN *\/
output-high;
line-name = "EXP_PS_3V3_EN";
};
};
};
*/
Also added the following to the make file in arch/arm64/boot/dts/ti/
dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-uart5.dtbo
Ran the following export and source
export SDK_INSTALL_DIR=~/Desktop/8-11-processor-SDK-10x
source "$SDK_INSTALL_DIR/linux-devkit/environment-setup-aarch64-oe-linux"
In Linux kernel directory
- cd "$SDK_INSTALL_DIR/board-support/ti-linux-kernel-6.6.58+git-ti"
I ran
make clean
make dtbs
make dtbs , gets the following error:
arch/arm64/boot/dts/ti/k3-am62x-sk-uart5.dtso:4:10: fatal error: dt-bindings/pinctrl/k3.h: No such file or directory 4 | #include <dt-bindings/pinctrl/k3.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/Makefile.lib:426: arch/arm64/boot/dts/ti/k3-am62x-sk-uart5.dtbo] Error 1 make[2]: *** [scripts/Makefile.build:480: arch/arm64/boot/dts/ti] Error 2 make[1]: *** [/home/davidsober/Desktop/8-11-processor-SDK-10x/board-support/ti-linux-kernel-6.6.58+git-ti/Makefile:1398: dtbs] Error 2 make: *** [Makefile:234: __sub-make] Error 2
Ideally, we could compile the dtbs to dtbo so that we can place the file in dtb directory in boot partition and enable it with uEnv.txt
But if this approach is not ideal and we should instead focus on patching the entire device tree then please advise on this.
- I understand that would likely require a different post however.
Thank you for taking the time.