[PATCH linux dev-4.10 v4] ARM: dts: aspeed: Add gpio-keys-polled for fan presence

Joel Stanley joel at jms.id.au
Wed Jul 26 22:14:36 AEST 2017


Hi Chris,

On Thu, Jul 20, 2017 at 11:45 PM, Christopher Bostic
<cbostic at linux.vnet.ibm.com> wrote:
>
> +       gpio-keys-polled {
> +               compatible = "gpio-keys-polled";
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +               #poll-interval = <1000>;

When I tested it, I saw this:

[    3.630000] gpio-keys-polled gpio-keys-polled: missing poll_interval value
[    3.630000] gpio-keys-polled: probe of gpio-keys-polled failed with error -22

I fixed that property, and I got this:

[    3.620000] OF: /gpio-keys-polled/fan0-presence: could not get
#gpio-cells for /ahb/apb/i2c at 1e78a000/i2c-bus at 100/pca9552 at 60
[    3.620000] gpio-keys-polled gpio-keys-polled: failed to get gpio: -22
[    3.620000] gpio-keys-polled: probe of gpio-keys-polled failed with error -22

So I added the gpio-cells to the relevant node, and it probed properly.

Can you please make those two fixes and test that the input events
work as you expected?

Cheers,

Joel


More information about the openbmc mailing list