Rohm power management IC drivers for Linux kernel.
This project is maintained by RohmSemiconductor
The ROHM BD12780 is a Hot-Swap controller with PMBus Interface. It has load current, input voltage, output voltage, external N-channel FET power and temperature monitors via integrated 12-bit ADC.
The BD12780 controls the gate voltage of the external N-channel FET so that the load current is maintained around the current limit level. When the load current reaches the current limit threshold, the timer operates to limit the load current with the FET ON for the time determined by the capacitor connected to the TIMER pin. In addition, a constant power foldback scheme is used to control MOSFET power consumption in the event of a power-on or failure. This power limit keeps the FET within the safe operating area. When a short-circuit event occurs, the fast internal overcurrent detector responds within 320 ns and shuts down the gate of the external FET.
Many of the device drivers require information about the hardware surrounding hardware. The device-tree is a hardware description, which must be written to describe the connections and ICs in the board. In some cases, the device-tree also needs to describe the used OTP configuration, so drivers know what features are provided by the IC they control. Correctly written device-tree is mandatory for many of the drivers to work.
Device-tree binding documents describe the properties that can be added to the device-tree. These documents are written in YAML format, so that the actual device-tree can be verified using scripts/tools.
The bindings are provided for documentory purposes only, “as is” and with no warranty.
Being upstreamed. See Patches.
Here is an unmaintained reference driver which you can try. Please note that this reference driver is provided as is, without a warranty. It is not a “production ready quality”, and you are required to do all porting, fixing and testing while writing your driver using it as a starting point.
Configuration options one may want to enable for kernel build are:
- CONFIG_SENSORS_ADM1275
| config | description | subsystem |
|---|---|---|
| CONFIG_SENSORS_ADM1275 | enables driver supporting PMBus based hardware monitoring | PMBus hwmon |