dts: bindings/sensor: Support NXP LPCMP bindings
Support NXP LPCMP bindings Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
parent
4b6d3f1e16
commit
79e134bc4b
1 changed files with 73 additions and 0 deletions
73
dts/bindings/sensor/nxp,lpcmp.yaml
Normal file
73
dts/bindings/sensor/nxp,lpcmp.yaml
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
# Copyright 2024 NXP
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
description: NXP low-power analog comparator (LPCMP)
|
||||||
|
|
||||||
|
compatible: "nxp,lpcmp"
|
||||||
|
|
||||||
|
include: [sensor-device.yaml, pinctrl-device.yaml]
|
||||||
|
|
||||||
|
properties:
|
||||||
|
interrupts:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
reg:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
enable-output-pin:
|
||||||
|
type: boolean
|
||||||
|
description: |
|
||||||
|
Decide whether to enable the comparator is available in selected pin.
|
||||||
|
|
||||||
|
use-unfiltered-output:
|
||||||
|
type: boolean
|
||||||
|
description: |
|
||||||
|
Decide whether to use the unfiltered output.
|
||||||
|
|
||||||
|
enable-output-invert:
|
||||||
|
type: boolean
|
||||||
|
description: |
|
||||||
|
Decide whether to invert the comparator output.
|
||||||
|
|
||||||
|
hysteresis-level:
|
||||||
|
type: int
|
||||||
|
enum:
|
||||||
|
- 0
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
|
default: 0
|
||||||
|
description: |
|
||||||
|
LPCMP hysteresis mode.
|
||||||
|
The default corresponds to the reset value of the register field.
|
||||||
|
|
||||||
|
power-level:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- "low"
|
||||||
|
- "high"
|
||||||
|
- "nano"
|
||||||
|
default: "low"
|
||||||
|
description: |
|
||||||
|
LPCMP power mode.
|
||||||
|
The default corresponds to the reset value of the register field.
|
||||||
|
|
||||||
|
function-clock:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- "Reserved"
|
||||||
|
- "FRO_16K"
|
||||||
|
- "XTAL32K"
|
||||||
|
- "CMP_CLOCK"
|
||||||
|
default: "Reserved"
|
||||||
|
description: |
|
||||||
|
LPCMP function clock.
|
||||||
|
The default corresponds to the reset value of the register field.
|
||||||
|
|
||||||
|
"#io-channel-cells":
|
||||||
|
type: int
|
||||||
|
const: 2
|
||||||
|
|
||||||
|
io-channel-cells:
|
||||||
|
- positive
|
||||||
|
- negative
|
Loading…
Add table
Add a link
Reference in a new issue