Lines Matching +full:range +full:- +full:gpios
1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/regulator/pwm-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Brian Norris <briannorris@chromium.org>
11 - Lee Jones <lee@kernel.org>
12 - Alexandre Courbot <acourbot@nvidia.com>
19 duty-cycle values must be provided via DT. Limitations are that the
21 Intermediary duty-cycle values which would normally allow finer grained
23 is given to the user if the assumptions made in continuous-voltage mode do
28 specified in the regulator-{min,max}-microvolt properties to calculate
29 appropriate duty-cycle values. This allows for a much more fine grained
30 solution when compared with voltage-table mode above. This solution does
31 make an assumption that a %50 duty-cycle value will cause the regulator
34 If voltage-table is provided, then the device will be used in Voltage Table
35 Mode. If no voltage-table is provided, then the device will be used in
39 - $ref: regulator.yaml#
43 const: pwm-regulator
48 voltage-table:
49 description: Voltage and Duty-Cycle table.
50 $ref: /schemas/types.yaml#/definitions/uint32-matrix
53 - description: voltage in microvolts (uV)
54 - description: duty-cycle in percent (%)
56 enable-gpios:
61 pwm-dutycycle-unit:
65 pwm-dutycycle-range contains values expressed in
70 pwm-dutycycle-range:
73 the dutycycle for regulator-min-microvolt and the
74 second one the dutycycle for regulator-max-microvolt.
75 Duty cycle values are expressed in pwm-dutycycle-unit.
77 $ref: /schemas/types.yaml#/definitions/uint32-array
79 - description: the dutycycle for regulator-min-microvolt
80 - description: the dutycycle for regulator-max-microvolt
84 - compatible
85 - pwms
90 - |
91 #include <dt-bindings/gpio/gpio.h>
95 compatible = "pwm-regulator";
97 enable-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
98 regulator-min-microvolt = <1016000>;
99 regulator-max-microvolt = <1114000>;
100 regulator-name = "vdd_logic";
101 /* unit == per-mille */
102 pwm-dutycycle-unit = <1000>;
104 * Inverted PWM logic, and the duty cycle range is limited
105 * to 30%-70%.
107 pwm-dutycycle-range = <700 300>; /* */
110 - |
113 compatible = "pwm-regulator";
115 regulator-min-microvolt = <1016000>;
116 regulator-max-microvolt = <1114000>;
117 regulator-name = "vdd_logic";
119 /* Voltage Duty-Cycle */
120 voltage-table = <1114000 0>,