Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: FDT access from a driver during attach



Nick Hudson <nick.hudson%gmx.co.uk@localhost> wrote:
>On 28/07/2025 16:53, Robert Swindells wrote:
>> Then your device tree overlay to go with a driver for whatever you are
>> planning to connect to the gpio would specify an interrupt-parent that
>> points to the meson-gpio-intc node.
>
> Not sure why you mention overlay here, but I'm not clear on what is 
> expecting to use the gpio pin as an interrupt source.

The Odroid-C2 doesn't have anything built in to the board that needs to
use a gpio pin as an interrupt source.

There is an example of a device tree node that does use a gpio as an
interrupt source in meson-sm1-bananapi-m5.dts:

        key {
                label = "SW1";
                linux,code = <BTN_1>;
                gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
                interrupt-parent = <&gpio_intc>;
                interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
        };


Home | Main Index | Thread Index | Old Index