Skip to content

[DRIVER] userspace-regulator: add dt_node interface for usage through device-tree

Michele Cirinei requested to merge seco_5.10.110_drivers into seco_5.10.110

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 = <&reg_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.

Merge request reports

Loading