Integrate linux-seco-rk/seco_5.10.110_drivers
[DRIVER] userspace-regulator: add dt_node interface for usage through device-tree
Originally, userspace-regulator 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.