device tree --- #interrupt-cells property

device tree source


Example1

    interrupt-controller@e000e100 {
        ...
        ...
        #interrupt-cells = <0x1>;    // 使用 1 個 u32 來表示 interrupt number。
        linux,phandle = <0x2>;
        phandle = <0x2>;
        ...
        ...
    };

Example2

    interrupt-controller@e000e100 {
        ...
        ...
        #interrupt-cells = <0x2>;    // 使用 2 個 u32 來表示 interrupt number。
        linux,phandle = <0x2 0>;
        phandle = <0x2 0>;
        ...
        ...
    };

Example3

    interrupt-controller@e000e100 {
        ...
        ...
        #interrupt-cells = <0x3>;    // 使用 3 個 u32 來表示 interrupt number。
        linux,phandle = <0x2 0 0>;
        phandle = <0x2 0 0>;
        ...
        ...
    };
posted @ 2017-06-21 15:56  wangchangruei  阅读(607)  评论(0编辑  收藏  举报