Integrate linux-seco-imx/davc/userspace_reg
Commit: edgehog/bsp/nxp/linux-seco-imx@9d59e0d4
Add dt_node interface for usege through device-tree
Originally, the driver works only via the old platform-driver interface. Now it uses also the device tree interface. A possible node is:
rs232-consumer {
compatible = "reg-userspace-consumer";
regulator-name = "rs232-consumer";
regulator-supplies = "reg_rs232_en";
reg_rs232_en-supply = <®_rs232_en>;
regulator-boot-on;
};
Where:
- regulator-name: name of the particular istance, used also to create the file descriptor at user-space level;
- regulator0supplies : name of the regulator it uses as interface;
- -supply = variable node name. It is the node of the regulator that the particular istance uses;
- regulator-boot-on : (default state: off) used to turn on the regulator at boot.