cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, i am using stm32mp157c in my product.so when the CAN interrupt is invoked after that the Button Interrupt stop working.both device tree nodes are following.

JSola.3
Associate

GPIO for button is 98.

GPIO for CAN is 92.

In dts file,

button: gpio-keys {

        compatible = "gpio-keys";

        #address-cells = <1>;

        #size-cells = <0>;

        status = "okay";

        button1: plugin-gpio {

            label = "plugin-gpio";

            linux,code = <KEY_WAKEUP>;

            gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;

            status = "okay";

        };

    };

&m_can1 {

pinctrl-names = "default", "sleep";

pinctrl-0 = <&m_can1_pins_a>;

pinctrl-1 = <&m_can1_sleep_pins_a>;

status = "okay";

};

&m_can2 {

pinctrl-names = "default", "sleep";

pinctrl-0 = <&m_can2_pins_a>;

pinctrl-1 = <&m_can2_sleep_pins_a>;

status = "okay";

};

In dtsi file,

soc {

m_can1: can@4400e000 {

compatible = "bosch,m_can";

reg = <0x4400e000 0x400>, <0x44011000 0x1400>;

reg-names = "m_can", "message_ram";

interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,

   <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;

interrupt-names = "int0", "int1";

clocks = <&scmi0_clk CK_SCMI0_HSE>, <&rcc FDCAN_K>;

clock-names = "hclk", "cclk";

bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;

status = "disabled";

};

m_can2: can@4400f000 {

compatible = "bosch,m_can";

reg = <0x4400f000 0x400>, <0x44011000 0x2800>;

reg-names = "m_can", "message_ram";

interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,

   <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;

interrupt-names = "int0", "int1";

clocks = <&scmi0_clk CK_SCMI0_HSE>, <&rcc FDCAN_K>;

clock-names = "hclk", "cclk";

bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>;

status = "disabled";

};

};

0 REPLIES 0