Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MCP251x Device Tree Interrupt Definition in Mainline

Featured Replies

I am working on getting the MCP251x device running in mainline. So far the SPI and other entries in the device tree are fine. However when I bring the bus up it fails to acquire the interrupt. I think the way I am defining the interupt is incorrect. I had this working in 4.4 so i know the hardware is functioning correctly. Does anyone know how to properly define the interupt and interupt parent in this case?

 

 

        spi1: spi@ff1d0000 {
                compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
                reg = <0x0 0xff1d0000 0x0 0x1000>;
                clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
                clock-names = "spiclk", "apb_pclk";
                interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
                dmas = <&dmac_peri 12>, <&dmac_peri 13>;
                dma-names = "tx", "rx";
                pinctrl-names = "default";
                pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
                #address-cells = <1>;
                #size-cells = <0>;
                status = "okay";

          can@0 {
                  #address-cells = <0x1>;
                  #size-cells = <0x0>;
                  compatible = "microchip,mcp2515";
                  reg = <0x0>;
                  clocks = <&clk8m>;
                  interupt-parent = <@gpio>;
                  interrupts = <1 RK_PC7 2 @pcfg_pull_up>;
                  spi-max-frequency = <10000000>;

                  //vdd-supply = <&spmic_ldo5>;
                  //xceiver-supply = <&spmic_ldo5>;
          };
        };

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.