Richtek RTMV20 laser diode regulator
Schema identifier ($id): "http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
Richtek RTMV20 is a load switch current regulator that can supply up to 6A. It is used to drive laser diode. There're two signals for chip controls (Enable/Fail), Enable pin to turn chip on, and Fail pin as fault indication. There're still four pins for camera control, two inputs (strobe and vsync), the others for outputs (fsin1 and fsin2). Strobe input to start the current supply, vsync input from IR camera, and fsin1/fsin2 output for the optional.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rtmv20"
reg — required here #
Maximum number of items (maxItems): 1
wakeup-source — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
enable-gpios — required here #
A connection of the 'enable' gpio line.
Maximum number of items (maxItems): 1
richtek,ld-pulse-delay-us — not listed as required here #
load current pulse delay in microsecond after strobe pin pulse high.
Minimum value (minimum): 0
Maximum value (maximum): 100000
Default value (default): 0
richtek,ld-pulse-width-us — not listed as required here #
Load current pulse width in microsecond after strobe pin pulse high.
Minimum value (minimum): 0
Maximum value (maximum): 10000
Default value (default): 1200
richtek,fsin1-delay-us — not listed as required here #
Fsin1 pulse high delay in microsecond after vsync signal pulse high.
Minimum value (minimum): 0
Maximum value (maximum): 100000
Default value (default): 23000
richtek,fsin1-width-us — not listed as required here #
Fsin1 pulse high width in microsecond after vsync signal pulse high.
Minimum value (minimum): 40
Maximum value (maximum): 10000
Default value (default): 160
richtek,fsin2-delay-us — not listed as required here #
Fsin2 pulse high delay in microsecond after vsync signal pulse high.
Minimum value (minimum): 0
Maximum value (maximum): 100000
Default value (default): 23000
richtek,fsin2-width-us — not listed as required here #
Fsin2 pulse high width in microsecond after vsync signal pulse high.
Minimum value (minimum): 40
Maximum value (maximum): 10000
Default value (default): 160
richtek,es-pulse-width-us — not listed as required here #
Eye safety function pulse width limit in microsecond.
Minimum value (minimum): 0
Maximum value (maximum): 10000
Default value (default): 1200
richtek,es-ld-current-microamp — not listed as required here #
Eye safety function load current limit in microamp.
Minimum value (minimum): 0
Maximum value (maximum): 6000000
Default value (default): 3000000
richtek,lbp-level-microvolt — not listed as required here #
Low battery protection level in microvolt.
Minimum value (minimum): 2400000
Maximum value (maximum): 3700000
Default value (default): 2700000
richtek,lbp-enable — not listed as required here #
Low battery protection function enable control.
Value type (type): "boolean"
richtek,strobe-polarity-high — not listed as required here #
Strobe pin active polarity control.
Value type (type): "boolean"
richtek,vsync-polarity-high — not listed as required here #
Vsync pin active polarity control.
Value type (type): "boolean"
richtek,fsin-enable — not listed as required here #
Fsin function enable control.
Value type (type): "boolean"
richtek,fsin-output — not listed as required here #
Fsin function output control.
Value type (type): "boolean"
richtek,es-enable — not listed as required here #
Eye safety function enable control.
Value type (type): "boolean"
lsw — required here #
load switch current regulator description.
Value type (type): "object"
Shared schema rule ($ref): regulator.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "wakeup-source", "interrupts", "enable-gpios", "lsw"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
rtmv20@34 {
compatible = "richtek,rtmv20";
reg = <0x34>;
wakeup-source;
interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>;
enable-gpios = <&gpio26 3 0>;
richtek,strobe-polarity-high;
richtek,vsync-polarity-high;
lsw {
regulator-name = "rtmv20,lsw";
regulator-min-microamp = <0>;
regulator-max-microamp = <6000000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0