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

Input: lpc32xx-key - add clocks property and fix DT binding example

The keypad controller on NXP LPC32xx requires its clock gate to be open,
therefore add description of the requires 'clocks' property.

In addition adjust the example by adding description of required 'clocks'
property and by fixing 'interrupts' property.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Vladimir Zapolskiy and committed by
Dmitry Torokhov
24541ded aaca981e

+4 -1
+4 -1
Documentation/devicetree/bindings/input/lpc32xx-key.txt
··· 8 8 - reg: Physical base address of the controller and length of memory mapped 9 9 region. 10 10 - interrupts: The interrupt number to the cpu. 11 + - clocks: phandle to clock controller plus clock-specifier pair 11 12 - nxp,debounce-delay-ms: Debounce delay in ms 12 13 - nxp,scan-delay-ms: Repeated scan period in ms 13 14 - linux,keymap: the key-code to be reported when the key is pressed ··· 23 22 key@40050000 { 24 23 compatible = "nxp,lpc3220-key"; 25 24 reg = <0x40050000 0x1000>; 26 - interrupts = <54 0>; 25 + clocks = <&clk LPC32XX_CLK_KEY>; 26 + interrupt-parent = <&sic1>; 27 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; 27 28 keypad,num-rows = <1>; 28 29 keypad,num-columns = <1>; 29 30 nxp,debounce-delay-ms = <3>;