Skip to content

Commit 65a4ee2

Browse files
akemnadelag-linaro
authored andcommitted
dt-bindings: mfd: twl: Enable power button also for TWL603X
TWL603x has also a power button function, so add the corresponding subnode. As not in all cases there is a power button connected to the corresponding pad of the TWL603x, the functionality can be disabled by status = "disabled" or simply not adding the subnode. To keep things simple, follow the established design pattern of using const interrupts as used also by the other subdevices. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20251106-twl6030-button-v4-1-fdf1aa6e1e9a@kernel.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 5c17042 commit 65a4ee2

1 file changed

Lines changed: 34 additions & 6 deletions

File tree

Documentation/devicetree/bindings/mfd/ti,twl.yaml

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ allOf:
5555

5656
gpadc: false
5757

58+
pwrbutton:
59+
properties:
60+
compatible:
61+
const: ti,twl4030-pwrbutton
62+
interrupts:
63+
items:
64+
- items:
65+
const: 8
66+
5867
usb-comparator: false
5968

6069
- if:
@@ -95,7 +104,14 @@ allOf:
95104
compatible:
96105
const: ti,twl6030-gpadc
97106

98-
pwrbutton: false
107+
pwrbutton:
108+
properties:
109+
compatible:
110+
const: ti,twl6030-pwrbutton
111+
interrupts:
112+
items:
113+
- items:
114+
const: 0
99115

100116
madc: false
101117

@@ -146,7 +162,14 @@ allOf:
146162
compatible:
147163
const: ti,twl6032-gpadc
148164

149-
pwrbutton: false
165+
pwrbutton:
166+
properties:
167+
compatible:
168+
const: ti,twl6030-pwrbutton
169+
interrupts:
170+
items:
171+
- items:
172+
const: 0
150173

151174
madc: false
152175

@@ -226,11 +249,11 @@ properties:
226249

227250
properties:
228251
compatible:
229-
const: ti,twl4030-pwrbutton
252+
enum:
253+
- ti,twl4030-pwrbutton
254+
- ti,twl6030-pwrbutton
230255
interrupts:
231-
items:
232-
- items:
233-
const: 8
256+
maxItems: 1
234257

235258
watchdog:
236259
type: object
@@ -459,6 +482,11 @@ examples:
459482
#io-channel-cells = <1>;
460483
};
461484
485+
pwrbutton {
486+
compatible = "ti,twl6030-pwrbutton";
487+
interrupts = <0>;
488+
};
489+
462490
rtc {
463491
compatible = "ti,twl4030-rtc";
464492
interrupts = <8>;

0 commit comments

Comments
 (0)