4.2.2. Porting CPU

By default, four A53 CPU cores are enabled in the k3-am625-sk.dts file. If using a AM62x device with fewer cores, use /delete-node/ to adjust the number of A53 cores in the device tree file. For example, add the following lines of code in k3-am625-sk.dts to use an AM62x with a single core A53:

cpus {
                /delete-node/ cpu@1;
                /delete-node/ cpu@2;
                /delete-node/ cpu@3;
};

To confirm the above change, rebuild the Device Tree Blob (DTB) file and update your filesystem with the latest DTB file. Next, power on the board and wait for the Linux login prompt. After logging in, run the command: lscpu | grep “Core”. Depending on the number of cores disabled, the value returned will vary but should reflect your Device Tree(DT) changes.

# lscpu | grep "Core"
Thread(s) per core:              1
Thread(s) per core:              1