Re: [RFC PATCH] ARM: dts: Add support for Turris Omnia

From: Tomas Hlavacek
Date: Fri Nov 25 2016 - 08:45:35 EST


On Thu, Nov 24, 2016 at 4:07 PM, Andrew Lunn <andrew@xxxxxxx> wrote:
@Tomas: I think it doesn't make sense when we alternate sending patches
without prior arrangement. Do you already work on a v5? If not I can do
that to fix the last few comments. Not sure when a submission is too
late to enter v4.10, but I think the window isn't that big any more.

It is getting a bit late. But maybe Linus will add in another -rc

> No leds? No buttons via gpio-keys?

The leds are controlled by a Cortex-M0 and without intervention blink
according to a hardware function (network, power, pci). IMHO that's ok
for an initial setup.

Yes. That is fine. It is just unusual. Most boards have gpio-led and
gpio-keys, which are easy to add. That is why i asked. Adding an LED
driver which talks to this M0 can be added later.

Actually the WiP driver for MCU LED interface, that we use in our kernel is here:

It definitely needs some cleanup and it adds non-standard features (main PWM for all LEDs, autonomous blink mode, colors) via custom /sys files, which I suspect that is not going to be acceptable for upstream. Let's keep it for the next iteration.

Regarding the button, we actually have one, that is connected to the MCU and by default it sets LED brigtness autonomously, but it should be able to generate IRQs via the MCU if we change the mode in the MCU. I'll look into that.