renesas,ra-lvd

Description

Renesas RA LVD (Low-voltage detection) Controller

The following example displays the minimum node layout:

  lvd1: lvd@4001e0e0 {
          compatible = "renesas,ra-lvd";
          reg = <0x4001e0e0 0x02>;
          channel = <1>;
          status = "disabled";
  };

Enabling the comparator controller node requires setting the minimum
default configuration of the comparator. This includes selecting the
positive and negative inputs.
Note: negative input of this controller is selected through specific
voltage threshold levels, and positive input is Vcc

  &lvd1 {
        lvd-action = "maskable-interrupt";
        voltage_level = <384>;
        lvd-trigger = "rising";
        reset-negation-timing = <0>;
        status = "okay";
  };

Properties

Properties not inherited from the base binding file.

Name

Type

Details

channel

int

This property is required.

voltage-level

int

Specifies the voltage detection level for each channel.
This value can be mapped to voltage level that is shown in the HWM.
Example:
  On RA8P1:
  - To set the voltage detection level to 3.86 V, specify '0x03'.
  - To set the voltage detection level to 1.90 V, specify '0x0C'.
  ...
Note:
  - Do not set to a value that is prohibited in the HWM.
For specific voltage detection support levels of each RA MCU series,
please refer to the HWM.

This property is required.

noise-filter

int

Select the LOCO divisor for the hardware digital debounce filter.
Larger divisors provide a longer debounce and take longer for the output to update.
Set to 1 to disable the filter (or if the filter is not supported).

Default value: 16

Legal values: 1, 2, 4, 8, 16

lvd-trigger

string

Specifies the voltage detection conditions and influences interrupt conditions.

Default value: falling

Legal values: 'rising', 'falling', 'both'

reset-only

boolean

This property indicate that the channel only support the reset action
(no interrupt and monitoring).

lvd-action

string

Choose the action to be taken when the LVD is detected.
If "reset-only" properties is true, action will always be "reset".

This property is required.

Legal values: 'non-maskable-interrupt', 'maskable-interrupt', 'reset', 'no-action'

reset-negation-timing

int

Specifies the time when the system release (negate) from reset
When action is "reset", trigger is "falling" (system reset when Vcc < Vdet):
  - 0: Reset negation occurs after Vcc > Vdet + stabilization time.
  - 1: Reset negation occurs after assertion of the reset + stabilization time.
When action is "reset", trigger is "rising" (system reset when Vcc > Vdet):
  - 0: Reset negation occurs after Vcc < Vdet - stabilization time.
  - 1: DO NOT set this value.
When action is other than "reset", this property is ignored.

Legal values: 0, 1

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.