diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2018-02-01 13:53:24 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 6f0aa0b3a701adf3028aee22db97120852518bce (patch) | |
tree | 5358824c7f387d9f6749825be99bd09c64d79a01 /Documentation | |
parent | f5d4526222f46197e4fd17a0c785cd125109af63 (diff) |
MLK-17736-01 gpio: imx-rpmsg: add gpio interrupt chip support
Add gpio interrupt chip support that only support wakeup feature
by M4 core.
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio-imx-rpmsg.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-imx-rpmsg.txt b/Documentation/devicetree/bindings/gpio/gpio-imx-rpmsg.txt index 49c7d321e2bf..25001da92da5 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-imx-rpmsg.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-imx-rpmsg.txt @@ -10,6 +10,13 @@ Required properties: the second cell is used to specify the gpio polarity: 0 = active high 1 = active low +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells : Should be 2. The first cell is the GPIO number. + The second cell bits[3:0] is used to specify trigger type and level flags: + 1 = low-to-high edge triggered. + 2 = high-to-low edge triggered. + 4 = active high level-sensitive. + 8 = active low level-sensitive. Note: Each GPIO port should have an alias correctly numbered in "aliases" node. @@ -26,6 +33,9 @@ rpmsg_gpio0: rpmsg-gpio0 { port_idx = <0>; gpio-controller; #gpio-cells = <2>; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&rpmsg_gpio0>; status = "okay"; }; @@ -34,5 +44,14 @@ rpmsg_gpio1: rpmsg-gpio1 { port_idx = <1>; gpio-controller; #gpio-cells = <2>; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&rpmsg_gpio1>; status = "okay"; }; + +&skeleton_node { + interrupt-parent = <&rpmsg_gpio1>; + interrupts = <7 2>; + wakeup-gpios = <&rpmsg_gpio1 7 GPIO_ACTIVE_LOW>; +}; |