TIDUFA7 January   2025 TPS65219

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Processor - i.MX 93 Applications Processor
      2. 2.2.2 LPDDR4
      3. 2.2.3 eMMC iNAND
    3. 2.3 Highlighted Products
      1. 2.3.1 TPS6521940 - Power Management IC
      2. 2.3.2 TPS62A02 Step-Down Converter
      3. 2.3.3 TLV740P LDO
  9. 3Hardware, Software, and Test Results
    1. 3.1 Hardware Requirements
    2. 3.2 Software Requirements
      1. 3.2.1 Examples of Useful TI PMIC Driver Userspace Commands
      2. 3.2.2 Steps to Apply the TPS65219 PMIC Patch File
  10. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 Bill of Materials
      3. 4.1.3 CAD Files
    2. 4.2 Software Files
    3. 4.3 Related Documentation
      1. 4.3.1 Trademarks

Steps to Apply the TPS65219 PMIC Patch File

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:

  1. kernet-pmic.patch.gz
  2. u-boot-pmic.patch

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
Note: Use the uncompress command that matches the file extension. .gz indicates gunzip, .zst indicates zstd -d <fileName.wic.zst>

(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:

  1. Apply the respective patch file by file

    Within the Linux & U-Boot repo directories, apply the respective patch file by file:

    patch <original_file_name> TPS65219-pmic.patch

    Example of original_file replacements:

    patch <original_file> TPS65219-pmic.patch

    Replace <original_file> with: drivers/mfd/tps65219.c

    Command Example:

    patch drivers/mfd/tps65219.c TPS65219-pmic.patch
  2. Apply the patch in one go using git am
    git am -i <file-directory>/linux_patch_file.patch
    git am -i <file-directory>/uboot_patch_file.patch

    When 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