Insmod module BeagleBone Black

Tiendq

New Member
Joined
Jun 16, 2024
Messages
3
Reaction score
0
Credits
40
hi everyone, i’m having a test problem with interrupts on beagleblack. i defined 1 GPIO output and GPIO input as interrupt pins from GPIO output. in the am335x-boneblack.dts file i added my node as follows:

&am33xx_pinmux {
bb_gpio1_pins: pinmux_bb_gpio1_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_INPUT_PULLDOWN, MUX_MODE7) // P9_15 gpio1_16
AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE7) // P9_16 gpio1_19
};
};

&gpio1 {
pinctrl-names = “default”;
pinctrl-0 = <&bb_gpio1_pins>;
status = “okay”;
interrupt-controller;
#interrupt-cells = <2>;
gpio_input: gpio_input@0 {
compatible = “gpio-input”;
gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; // GPIO1_16
interrupts = <16 IRQ_TYPE_EDGE_RISING>; // ID ngắt và kiểu kích hoạt
interrupt-parent = <&gpio1>;
status = “okay”;
};
gpio_output: gpio_output@0 {
compatible = “gpio-output”;
gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
status = “okay”;
};
};
I wrote a C descriptor-based code for that. My node is not insmoded into the system. I don’t know what’s wrong, I hope everyone can help me.
 

Attachments

Last edited:


The forum has sub-sections. One of them is 'single board computers'.

This is a BeagleBone question.

BeagleBone is a single board computer.

Thus, the most appropriate sub-section (sub-forum) is this one.

So, I moved your post to that section of the forum.
 


Members online


Top