Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andreas Kemnade and committed by
Lee Jones
65a4ee23 5c17042d

+34 -6
+34 -6
Documentation/devicetree/bindings/mfd/ti,twl.yaml
··· 55 55 56 56 gpadc: false 57 57 58 + pwrbutton: 59 + properties: 60 + compatible: 61 + const: ti,twl4030-pwrbutton 62 + interrupts: 63 + items: 64 + - items: 65 + const: 8 66 + 58 67 usb-comparator: false 59 68 60 69 - if: ··· 104 95 compatible: 105 96 const: ti,twl6030-gpadc 106 97 107 - pwrbutton: false 98 + pwrbutton: 99 + properties: 100 + compatible: 101 + const: ti,twl6030-pwrbutton 102 + interrupts: 103 + items: 104 + - items: 105 + const: 0 108 106 109 107 madc: false 110 108 ··· 162 146 compatible: 163 147 const: ti,twl6032-gpadc 164 148 165 - pwrbutton: false 149 + pwrbutton: 150 + properties: 151 + compatible: 152 + const: ti,twl6030-pwrbutton 153 + interrupts: 154 + items: 155 + - items: 156 + const: 0 166 157 167 158 madc: false 168 159 ··· 249 226 250 227 properties: 251 228 compatible: 252 - const: ti,twl4030-pwrbutton 229 + enum: 230 + - ti,twl4030-pwrbutton 231 + - ti,twl6030-pwrbutton 253 232 interrupts: 254 - items: 255 - - items: 256 - const: 8 233 + maxItems: 1 257 234 258 235 watchdog: 259 236 type: object ··· 480 457 compatible = "ti,twl6030-gpadc"; 481 458 interrupts = <6>; 482 459 #io-channel-cells = <1>; 460 + }; 461 + 462 + pwrbutton { 463 + compatible = "ti,twl6030-pwrbutton"; 464 + interrupts = <0>; 483 465 }; 484 466 485 467 rtc {