Skip to content

Commit 79e134b

Browse files
ZhaoxiangJindleach02
authored andcommitted
dts: bindings/sensor: Support NXP LPCMP bindings
Support NXP LPCMP bindings Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 4b6d3f1 commit 79e134b

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

dts/bindings/sensor/nxp,lpcmp.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: NXP low-power analog comparator (LPCMP)
5+
6+
compatible: "nxp,lpcmp"
7+
8+
include: [sensor-device.yaml, pinctrl-device.yaml]
9+
10+
properties:
11+
interrupts:
12+
required: true
13+
14+
reg:
15+
required: true
16+
17+
enable-output-pin:
18+
type: boolean
19+
description: |
20+
Decide whether to enable the comparator is available in selected pin.
21+
22+
use-unfiltered-output:
23+
type: boolean
24+
description: |
25+
Decide whether to use the unfiltered output.
26+
27+
enable-output-invert:
28+
type: boolean
29+
description: |
30+
Decide whether to invert the comparator output.
31+
32+
hysteresis-level:
33+
type: int
34+
enum:
35+
- 0
36+
- 1
37+
- 2
38+
- 3
39+
default: 0
40+
description: |
41+
LPCMP hysteresis mode.
42+
The default corresponds to the reset value of the register field.
43+
44+
power-level:
45+
type: string
46+
enum:
47+
- "low"
48+
- "high"
49+
- "nano"
50+
default: "low"
51+
description: |
52+
LPCMP power mode.
53+
The default corresponds to the reset value of the register field.
54+
55+
function-clock:
56+
type: string
57+
enum:
58+
- "Reserved"
59+
- "FRO_16K"
60+
- "XTAL32K"
61+
- "CMP_CLOCK"
62+
default: "Reserved"
63+
description: |
64+
LPCMP function clock.
65+
The default corresponds to the reset value of the register field.
66+
67+
"#io-channel-cells":
68+
type: int
69+
const: 2
70+
71+
io-channel-cells:
72+
- positive
73+
- negative

0 commit comments

Comments
 (0)