Re: FDT access from a driver during attach
Robert Swindells <[email protected]> Wed, 30 Jul 2025 17:11:13 +0100
| Newsgroups | gmane.os.netbsd.ports.arm |
|---|---|
| Message-ID | <[email protected]> |
Nick Hudson <[email protected]> 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>; };