18c2ecf20Sopenharmony_ciMulti-Function Devices (MFD) 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThese devices comprise a nexus for heterogeneous hardware blocks containing 48c2ecf20Sopenharmony_cimore than one non-unique yet varying hardware functionality. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciA typical MFD can be: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci- A mixed signal ASIC on an external bus, sometimes a PMIC (Power Management 98c2ecf20Sopenharmony_ci Integrated Circuit) that is manufactured in a lower technology node (rough 108c2ecf20Sopenharmony_ci silicon) that handles analog drivers for things like audio amplifiers, LED 118c2ecf20Sopenharmony_ci drivers, level shifters, PHY (physical interfaces to things like USB or 128c2ecf20Sopenharmony_ci ethernet), regulators etc. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci- A range of memory registers containing "miscellaneous system registers" also 158c2ecf20Sopenharmony_ci known as a system controller "syscon" or any other memory range containing a 168c2ecf20Sopenharmony_ci mix of unrelated hardware devices. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciOptional properties: 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci- compatible : "simple-mfd" - this signifies that the operating system should 218c2ecf20Sopenharmony_ci consider all subnodes of the MFD device as separate devices akin to how 228c2ecf20Sopenharmony_ci "simple-bus" indicates when to see subnodes as children for a simple 238c2ecf20Sopenharmony_ci memory-mapped bus. For more complex devices, when the nexus driver has to 248c2ecf20Sopenharmony_ci probe registers to figure out what child devices exist etc, this should not 258c2ecf20Sopenharmony_ci be used. In the latter case the child devices will be determined by the 268c2ecf20Sopenharmony_ci operating system. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci- ranges: Describes the address mapping relationship to the parent. Should set 298c2ecf20Sopenharmony_ci the child's base address to 0, the physical address within parent's address 308c2ecf20Sopenharmony_ci space, and the length of the address map. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci- #address-cells: Specifies the number of cells used to represent physical base 338c2ecf20Sopenharmony_ci addresses. Must be present if ranges is used. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci- #size-cells: Specifies the number of cells used to represent the size of an 368c2ecf20Sopenharmony_ci address. Must be present if ranges is used. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ciExample: 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_cifoo@1000 { 418c2ecf20Sopenharmony_ci compatible = "syscon", "simple-mfd"; 428c2ecf20Sopenharmony_ci reg = <0x01000 0x1000>; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci led@8.0 { 458c2ecf20Sopenharmony_ci compatible = "register-bit-led"; 468c2ecf20Sopenharmony_ci offset = <0x08>; 478c2ecf20Sopenharmony_ci mask = <0x01>; 488c2ecf20Sopenharmony_ci label = "myled"; 498c2ecf20Sopenharmony_ci default-state = "on"; 508c2ecf20Sopenharmony_ci }; 518c2ecf20Sopenharmony_ci}; 52