1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/regulator/richtek,rtmv20-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Richtek RTMV20 laser diode regulator
10 - ChiYuan Huang <cy_huang@richtek.com>
13 Richtek RTMV20 is a load switch current regulator that can supply up to 6A.
14 It is used to drive laser diode. There're two signals for chip controls
15 (Enable/Fail), Enable pin to turn chip on, and Fail pin as fault indication.
16 There're still four pins for camera control, two inputs (strobe and vsync),
17 the others for outputs (fsin1 and fsin2). Strobe input to start the current
18 supply, vsync input from IR camera, and fsin1/fsin2 output for the optional.
33 description: A connection of the 'enable' gpio line.
36 richtek,ld-pulse-delay-us:
38 load current pulse delay in microsecond after strobe pin pulse high.
43 richtek,ld-pulse-width-us:
45 Load current pulse width in microsecond after strobe pin pulse high.
50 richtek,fsin1-delay-us:
52 Fsin1 pulse high delay in microsecond after vsync signal pulse high.
57 richtek,fsin1-width-us:
59 Fsin1 pulse high width in microsecond after vsync signal pulse high.
64 richtek,fsin2-delay-us:
66 Fsin2 pulse high delay in microsecond after vsync signal pulse high.
71 richtek,fsin2-width-us:
73 Fsin2 pulse high width in microsecond after vsync signal pulse high.
78 richtek,es-pulse-width-us:
79 description: Eye safety function pulse width limit in microsecond.
84 richtek,es-ld-current-microamp:
85 description: Eye safety function load current limit in microamp.
90 richtek,lbp-level-microvolt:
91 description: Low battery protection level in microvolt.
97 description: Low battery protection function enable control.
100 richtek,strobe-polarity-high:
101 description: Strobe pin active polarity control.
104 richtek,vsync-polarity-high:
105 description: Vsync pin active polarity control.
109 description: Fsin function enable control.
113 description: Fsin function output control.
117 description: Eye safety function enable control.
121 description: load switch current regulator description.
123 $ref: "regulator.yaml#"
133 additionalProperties: false
137 #include <dt-bindings/interrupt-controller/irq.h>
139 #address-cells = <1>;
143 compatible = "richtek,rtmv20";
146 interrupts-extended = <&gpio26 2 IRQ_TYPE_LEVEL_LOW>;
147 enable-gpios = <&gpio26 3 0>;
149 richtek,strobe-polarity-high;
150 richtek,vsync-polarity-high;
153 regulator-name = "rtmv20,lsw";
154 regulator-min-microamp = <0>;
155 regulator-max-microamp = <6000000>;