TIDUFA7 January 2025 TPS65219
To integrate the TI PMIC into a new system starting from the NXP SDK, follow the below steps to apply the TPS65219 patch file.
Download the following files:
Within linux repo folder(tag: v6.1): move kernel-pmic.patch within the kernel branch being used:
mv <file-path-to-your-patch>/kernel-pmic.patch <file-path-to-your-linux-branch>/linux/
Within uboot repo folder (tag:2023_04):
mv <file-path-to-your-patch>/u-boot-pmic.patch <file-path-to-your-uboot-branch>/u-boot/
Uncompress the patch file prior to applying:
gunzip pmic_device-patch.gz
xz -d pmic_device-patch.gz
(Optional): Walk through the patch process described, without permanent changes using --dry-run:
patch --dry-run <original_file_name_path> <mypatch.patch>
Two options to apply the patch files:
Within the Linux & U-Boot repo directories, apply the respective patch file by file:
patch <original_file_name> TPS65219-pmic.patchExample of original_file replacements:
patch <original_file> TPS65219-pmic.patchReplace <original_file> with: drivers/mfd/tps65219.c
Command Example:
patch drivers/mfd/tps65219.c TPS65219-pmic.patchgit am -i <file-directory>/linux_patch_file.patch
git am -i <file-directory>/uboot_patch_file.patchWhen using git am, this command displays an error for files that do not already exist.
If this is the case: use touch <file-directory-path> to create the missing files, restart git am.
Files that need to be created before applying the kernel patches since the files are missing in v6.1 but present in the upstream mainline branch:
touch drivers/gpio/gpio-tps65219.c
touch drivers/input/misc/tps65219-pwrbutton.c
touch drivers/mfd/tps65219.c
touch include/linux/mfd/tps65219.h