This document provides an in-depth overview of pin muxing and GPIO control under Linux, detailing both hardware and software aspects. It highlights the evolution of GPIO APIs from legacy chaotic systems to a more structured pinctrl framework aimed at improving control over pin functionalities and conflicts. The content also emphasizes the importance of device tree mappings and the relationship between pin controllers and GPIOs within modern Linux systems.