Skip to content

Commit 5872dcc

Browse files
alexanderkurzlag-linaro
authored andcommitted
dt-bindings: mfd: fsl,mc13xxx: Add buttons node
Add a buttons node and properties describing the "ONOFD" (MC13783) and "PWRON" (MC13892/MC34708) buttons available in the fsl,mc13xxx PMIC ICs. Signed-off-by: Alexander Kurz <akurz@blala.de> Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org> Link: https://lore.kernel.org/r/20250829201517.15374-7-akurz@blala.de Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 1160f9f commit 5872dcc

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

Documentation/devicetree/bindings/mfd/fsl,mc13xxx.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,58 @@ properties:
3939
interrupts:
4040
maxItems: 1
4141

42+
buttons:
43+
type: object
44+
properties:
45+
"#address-cells":
46+
const: 1
47+
48+
"#size-cells":
49+
const: 0
50+
51+
patternProperties:
52+
"^onkey@[0-2]$":
53+
$ref: /schemas/input/input.yaml#
54+
unevaluatedProperties: false
55+
type: object
56+
57+
properties:
58+
reg:
59+
description: |
60+
One of
61+
MC13783 BUTTON IDs:
62+
0: ONOFD1
63+
1: ONOFD2
64+
2: ONOFD3
65+
66+
MC13892 BUTTON IDs:
67+
0: PWRON1
68+
1: PWRON2
69+
2: PWRON3
70+
71+
MC34708 BUTTON IDs:
72+
0: PWRON1
73+
1: PWRON2
74+
maximum: 2
75+
76+
debounce-delay-ms:
77+
enum: [0, 30, 150, 750]
78+
default: 30
79+
description:
80+
Sets the debouncing delay in milliseconds.
81+
82+
active-low:
83+
description: Set active when pin is pulled low.
84+
85+
linux,code: true
86+
87+
fsl,enable-reset:
88+
description:
89+
Setting of the global reset option.
90+
type: boolean
91+
92+
unevaluatedProperties: false
93+
4294
leds:
4395
type: object
4496
$ref: /schemas/leds/common.yaml#
@@ -159,6 +211,12 @@ allOf:
159211
const: fsl,mc34708
160212
then:
161213
properties:
214+
buttons:
215+
patternProperties:
216+
"^onkey@[0-2]$":
217+
properties:
218+
reg:
219+
maximum: 1
162220
leds:
163221
properties:
164222
led-control:
@@ -187,6 +245,18 @@ examples:
187245
fsl,mc13xxx-uses-rtc;
188246
fsl,mc13xxx-uses-adc;
189247
248+
buttons {
249+
#address-cells = <1>;
250+
#size-cells = <0>;
251+
252+
onkey@0 {
253+
reg = <0>;
254+
debounce-delay-ms = <30>;
255+
active-low;
256+
fsl,enable-reset;
257+
};
258+
};
259+
190260
leds {
191261
#address-cells = <1>;
192262
#size-cells = <0>;

0 commit comments

Comments
 (0)