mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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>
This commit is contained in:
parent
1160f9f88b
commit
5872dcccc5
1 changed files with 70 additions and 0 deletions
|
|
@ -39,6 +39,58 @@ properties:
|
|||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
buttons:
|
||||
type: object
|
||||
properties:
|
||||
"#address-cells":
|
||||
const: 1
|
||||
|
||||
"#size-cells":
|
||||
const: 0
|
||||
|
||||
patternProperties:
|
||||
"^onkey@[0-2]$":
|
||||
$ref: /schemas/input/input.yaml#
|
||||
unevaluatedProperties: false
|
||||
type: object
|
||||
|
||||
properties:
|
||||
reg:
|
||||
description: |
|
||||
One of
|
||||
MC13783 BUTTON IDs:
|
||||
0: ONOFD1
|
||||
1: ONOFD2
|
||||
2: ONOFD3
|
||||
|
||||
MC13892 BUTTON IDs:
|
||||
0: PWRON1
|
||||
1: PWRON2
|
||||
2: PWRON3
|
||||
|
||||
MC34708 BUTTON IDs:
|
||||
0: PWRON1
|
||||
1: PWRON2
|
||||
maximum: 2
|
||||
|
||||
debounce-delay-ms:
|
||||
enum: [0, 30, 150, 750]
|
||||
default: 30
|
||||
description:
|
||||
Sets the debouncing delay in milliseconds.
|
||||
|
||||
active-low:
|
||||
description: Set active when pin is pulled low.
|
||||
|
||||
linux,code: true
|
||||
|
||||
fsl,enable-reset:
|
||||
description:
|
||||
Setting of the global reset option.
|
||||
type: boolean
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
leds:
|
||||
type: object
|
||||
$ref: /schemas/leds/common.yaml#
|
||||
|
|
@ -159,6 +211,12 @@ allOf:
|
|||
const: fsl,mc34708
|
||||
then:
|
||||
properties:
|
||||
buttons:
|
||||
patternProperties:
|
||||
"^onkey@[0-2]$":
|
||||
properties:
|
||||
reg:
|
||||
maximum: 1
|
||||
leds:
|
||||
properties:
|
||||
led-control:
|
||||
|
|
@ -187,6 +245,18 @@ examples:
|
|||
fsl,mc13xxx-uses-rtc;
|
||||
fsl,mc13xxx-uses-adc;
|
||||
|
||||
buttons {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
onkey@0 {
|
||||
reg = <0>;
|
||||
debounce-delay-ms = <30>;
|
||||
active-low;
|
||||
fsl,enable-reset;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue