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: 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>

authored by

Alexander Kurz and committed by
Lee Jones
5872dccc 1160f9f8

+70
+70
Documentation/devicetree/bindings/mfd/fsl,mc13xxx.yaml
··· 39 39 interrupts: 40 40 maxItems: 1 41 41 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 + 42 94 leds: 43 95 type: object 44 96 $ref: /schemas/leds/common.yaml# ··· 211 159 const: fsl,mc34708 212 160 then: 213 161 properties: 162 + buttons: 163 + patternProperties: 164 + "^onkey@[0-2]$": 165 + properties: 166 + reg: 167 + maximum: 1 214 168 leds: 215 169 properties: 216 170 led-control: ··· 244 186 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; 245 187 fsl,mc13xxx-uses-rtc; 246 188 fsl,mc13xxx-uses-adc; 189 + 190 + buttons { 191 + #address-cells = <1>; 192 + #size-cells = <0>; 193 + 194 + onkey@0 { 195 + reg = <0>; 196 + debounce-delay-ms = <30>; 197 + active-low; 198 + fsl,enable-reset; 199 + }; 200 + }; 247 201 248 202 leds { 249 203 #address-cells = <1>;