ARM: dts: lpc32xx: add required clocks property to keypad device node
authorVladimir Zapolskiy <vz@mleia.com>
Sat, 26 Jan 2019 14:29:20 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:13 +0000 (10:24 +0100)
[ Upstream commit 3e88bc38b9f6fe4b69cecf81badd3c19fde97f97 ]

NXP LPC32xx keypad controller requires a clock property to be defined.

The change fixes the driver initialization problem:

  lpc32xx_keys 40050000.key: failed to get clock
  lpc32xx_keys: probe of 40050000.key failed with error -2

Fixes: 93898eb775e5 ("arm: dts: lpc32xx: add clock properties to device nodes")
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/lpc32xx.dtsi

index 5fa3111731cb0530e9bbbce6b9ed9be81daecf2d..da375813afd045095ac6272fbf3071e6e7f39858 100644 (file)
                        key: key@40050000 {
                                compatible = "nxp,lpc3220-key";
                                reg = <0x40050000 0x1000>;
+                               clocks = <&clk LPC32XX_CLK_KEY>;
                                interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
                                status = "disabled";
                        };