From 6529ed858c6fc72e2a7ac8f34bd73299b94fe89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Arg=C3=BCelles?= Date: Mon, 11 Sep 2023 14:53:44 +0700 Subject: [PATCH] nxp_s32k344: add WKPU external sources to GPIO nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add WKPU controller node and external wake-up sources to GPIO nodes that support it. Signed-off-by: Manuel Argüelles --- dts/arm/nxp/nxp_s32k344_m7.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dts/arm/nxp/nxp_s32k344_m7.dtsi b/dts/arm/nxp/nxp_s32k344_m7.dtsi index b5f7549bea830af..d6a07630e13b9e9 100644 --- a/dts/arm/nxp/nxp_s32k344_m7.dtsi +++ b/dts/arm/nxp/nxp_s32k344_m7.dtsi @@ -108,6 +108,9 @@ <5 5>, <6 6>, <7 7>, <8 16>, <9 17>, <10 18>, <11 19>, <12 20>, <13 21>, <14 22>, <15 23>; + wakeup-parent = <&wkpu>; + wakeups = <1 9>, <2 4>, <6 19>, <8 27>, <9 25>, + <13 8>, <15 24>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -121,6 +124,8 @@ interrupt-parent = <&eirq0>; interrupts = <0 4>, <2 0>, <3 1>, <4 2>, <5 3>, <9 5>, <12 6>, <14 7>; + wakeup-parent = <&wkpu>; + wakeups = <0 35>, <4 63>, <9 38>, <10 39>, <14 41>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -135,6 +140,9 @@ interrupts = <0 8>, <1 9>, <2 10>, <3 11>, <4 12>, <5 13>, <8 14>, <9 15>, <10 24>, <11 25>, <12 26>, <13 27>, <14 28>, <15 29>; + wakeup-parent = <&wkpu>; + wakeups = <0 11>, <2 12>, <8 29>, <9 21>, <11 20>, + <12 16>, <13 15>, <15 37>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -149,6 +157,9 @@ interrupt-parent = <&eirq0>; interrupts = <0 30>, <1 31>, <5 8>, <6 9>, <7 10>, <8 11>, <9 12>, <10 13>, <12 14>, <15 15>; + wakeup-parent = <&wkpu>; + wakeups = <0 17>, <1 18>, <3 42>, <5 43>, <7 44>, + <10 45>, <12 46>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -164,6 +175,8 @@ <5 5>, <6 6>, <7 7>, <8 16>, <9 17>, <10 18>, <11 19>, <12 20>, <13 21>, <14 22>, <15 23>; + wakeup-parent = <&wkpu>; + wakeups = <6 7>, <7 6>, <9 14>, <11 22>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -177,6 +190,9 @@ interrupt-parent = <&eirq0>; interrupts = <4 16>, <5 17>, <7 18>, <8 19>, <9 20>, <10 21>, <11 22>, <13 23>; + wakeup-parent = <&wkpu>; + wakeups = <2 40>, <4 47>, <7 48>, <8 50>, <9 49>, + <10 52>, <13 51>, <15 53>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -192,6 +208,8 @@ <5 13>, <6 14>, <7 15>, <8 24>, <9 25>, <10 26>, <11 27>, <12 28>, <13 29>, <14 30>, <15 31>; + wakeup-parent = <&wkpu>; + wakeups = <0 10>, <2 13>, <3 5>, <4 26>, <13 28>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -205,6 +223,8 @@ interrupt-parent = <&eirq0>; interrupts = <1 24>, <4 25>, <5 26>, <6 27>, <7 28>, <8 29>, <11 30>, <12 31>; + wakeup-parent = <&wkpu>; + wakeups = <4 58>, <7 54>, <11 55>, <13 56>, <15 57>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -220,6 +240,9 @@ <4 4>, <5 5>, <6 6>, <8 7>, <9 8>, <10 9>, <11 10>, <12 11>, <13 12>, <14 13>, <15 14>; + wakeup-parent = <&wkpu>; + wakeups = <0 30>, <2 31>, <5 36>, <6 33>, + <11 32>, <14 34>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -232,6 +255,8 @@ reg-names = "pgpdo", "mscr"; interrupt-parent = <&eirq0>; interrupts = <0 15>; + wakeup-parent = <&wkpu>; + wakeups = <0 23>, <2 59>, <5 60>, <7 61>, <9 62>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; @@ -289,6 +314,14 @@ }; }; + wkpu: wkpu@402b4000 { + compatible = "nxp,s32-wkpu"; + reg = <0x402b4000 0x4000>; + interrupts = <83 0>; + wakeup-controller; + status = "disabled"; + }; + lpuart0: uart@40328000 { compatible = "nxp,kinetis-lpuart"; reg = <0x40328000 0x4000>;