linux-sunxi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Allwinner H616 NMI Controller
@ 2024-04-18 18:16 Chris Morgan
  2024-04-18 18:16 ` [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller Chris Morgan
  2024-04-18 18:16 ` [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node Chris Morgan
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Morgan @ 2024-04-18 18:16 UTC (permalink / raw)
  To: linux-sunxi
  Cc: devicetree, mripard, jernej.skrabec, wens, conor+dt, krzk+dt,
	robh, tglx, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add support for the Allwinner H616 NMI controller, which appears to be
common IP with previous generations of the NMI. The NMI is required to
support interrupts from the PMIC among other functions.

Changes since V1:
 - Update dt binding documentation to collapse multiple compatible
   strings into an enum list.
 - Added note in commit message about NMI pad exposure for the H616.

Chris Morgan (2):
  dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller
  arm64: dts: allwinner: h616: Add NMI device node

 .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 8 ++++----
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi           | 9 +++++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller
  2024-04-18 18:16 [PATCH V2 0/2] Allwinner H616 NMI Controller Chris Morgan
@ 2024-04-18 18:16 ` Chris Morgan
  2024-04-18 22:41   ` Krzysztof Kozlowski
  2024-04-23 13:29   ` Rob Herring
  2024-04-18 18:16 ` [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node Chris Morgan
  1 sibling, 2 replies; 7+ messages in thread
From: Chris Morgan @ 2024-04-18 18:16 UTC (permalink / raw)
  To: linux-sunxi
  Cc: devicetree, mripard, jernej.skrabec, wens, conor+dt, krzk+dt,
	robh, tglx, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add binding for the H616 NMI controller.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml b/Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml
index 83603180d8d9..f49b43f45f3d 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml
@@ -25,12 +25,12 @@ properties:
       - const: allwinner,sun6i-a31-sc-nmi
         deprecated: true
       - const: allwinner,sun7i-a20-sc-nmi
-      - items:
-          - const: allwinner,sun8i-v3s-nmi
-          - const: allwinner,sun9i-a80-nmi
       - const: allwinner,sun9i-a80-nmi
       - items:
-          - const: allwinner,sun50i-a100-nmi
+          - enum:
+              - allwinner,sun8i-v3s-nmi
+              - allwinner,sun50i-a100-nmi
+              - allwinner,sun50i-h616-nmi
           - const: allwinner,sun9i-a80-nmi
 
   reg:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node
  2024-04-18 18:16 [PATCH V2 0/2] Allwinner H616 NMI Controller Chris Morgan
  2024-04-18 18:16 ` [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller Chris Morgan
@ 2024-04-18 18:16 ` Chris Morgan
  2024-04-21 20:06   ` Jernej Škrabec
  2024-04-26 15:50   ` Jernej Škrabec
  1 sibling, 2 replies; 7+ messages in thread
From: Chris Morgan @ 2024-04-18 18:16 UTC (permalink / raw)
  To: linux-sunxi
  Cc: devicetree, mripard, jernej.skrabec, wens, conor+dt, krzk+dt,
	robh, tglx, Chris Morgan, Andre Przywara

From: Chris Morgan <macromorgan@hotmail.com>

Add device node for the H616 Non Maskable Interrupt (NMI) controller.
This controller is present on all H616 boards and derivatives such as
the T507 and H700. Note that on the H616 no NMI pad is exposed.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
index b2e85e52d1a1..1e066f3057be 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
@@ -775,6 +775,15 @@ r_ccu: clock@7010000 {
 			#reset-cells = <1>;
 		};
 
+		nmi_intc: interrupt-controller@7010320 {
+			compatible = "allwinner,sun50i-h616-nmi",
+				     "allwinner,sun9i-a80-nmi";
+			reg = <0x07010320 0xc>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		r_pio: pinctrl@7022000 {
 			compatible = "allwinner,sun50i-h616-r-pinctrl";
 			reg = <0x07022000 0x400>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller
  2024-04-18 18:16 ` [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller Chris Morgan
@ 2024-04-18 22:41   ` Krzysztof Kozlowski
  2024-04-23 13:29   ` Rob Herring
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-18 22:41 UTC (permalink / raw)
  To: Chris Morgan, linux-sunxi
  Cc: devicetree, mripard, jernej.skrabec, wens, conor+dt, krzk+dt,
	robh, tglx, Chris Morgan

On 18/04/2024 20:16, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Add binding for the H616 NMI controller.
> 
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node
  2024-04-18 18:16 ` [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node Chris Morgan
@ 2024-04-21 20:06   ` Jernej Škrabec
  2024-04-26 15:50   ` Jernej Škrabec
  1 sibling, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-04-21 20:06 UTC (permalink / raw)
  To: linux-sunxi, Chris Morgan
  Cc: devicetree, mripard, wens, conor+dt, krzk+dt, robh, tglx,
	Chris Morgan, Andre Przywara

Dne četrtek, 18. april 2024 ob 20:16:15 GMT +2 je Chris Morgan napisal(a):
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Add device node for the H616 Non Maskable Interrupt (NMI) controller.
> This controller is present on all H616 boards and derivatives such as
> the T507 and H700. Note that on the H616 no NMI pad is exposed.
> 
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> index b2e85e52d1a1..1e066f3057be 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> @@ -775,6 +775,15 @@ r_ccu: clock@7010000 {
>  			#reset-cells = <1>;
>  		};
>  
> +		nmi_intc: interrupt-controller@7010320 {
> +			compatible = "allwinner,sun50i-h616-nmi",
> +				     "allwinner,sun9i-a80-nmi";
> +			reg = <0x07010320 0xc>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;
> +			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
> +		};
> +
>  		r_pio: pinctrl@7022000 {
>  			compatible = "allwinner,sun50i-h616-r-pinctrl";
>  			reg = <0x07022000 0x400>;
> 





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller
  2024-04-18 18:16 ` [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller Chris Morgan
  2024-04-18 22:41   ` Krzysztof Kozlowski
@ 2024-04-23 13:29   ` Rob Herring
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2024-04-23 13:29 UTC (permalink / raw)
  To: Chris Morgan
  Cc: devicetree, mripard, wens, jernej.skrabec, linux-sunxi, conor+dt,
	Chris Morgan, tglx, krzk+dt


On Thu, 18 Apr 2024 13:16:14 -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Add binding for the H616 NMI controller.
> 
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
>  .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml  | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node
  2024-04-18 18:16 ` [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node Chris Morgan
  2024-04-21 20:06   ` Jernej Škrabec
@ 2024-04-26 15:50   ` Jernej Škrabec
  1 sibling, 0 replies; 7+ messages in thread
From: Jernej Škrabec @ 2024-04-26 15:50 UTC (permalink / raw)
  To: linux-sunxi, Chris Morgan
  Cc: devicetree, mripard, wens, conor+dt, krzk+dt, robh, tglx,
	Chris Morgan, Andre Przywara

Dne četrtek, 18. april 2024 ob 20:16:15 GMT +2 je Chris Morgan napisal(a):
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Add device node for the H616 Non Maskable Interrupt (NMI) controller.
> This controller is present on all H616 boards and derivatives such as
> the T507 and H700. Note that on the H616 no NMI pad is exposed.
> 
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

Applied, thanks!

Best regards,
Jernej

> ---
>  arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> index b2e85e52d1a1..1e066f3057be 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
> @@ -775,6 +775,15 @@ r_ccu: clock@7010000 {
>  			#reset-cells = <1>;
>  		};
>  
> +		nmi_intc: interrupt-controller@7010320 {
> +			compatible = "allwinner,sun50i-h616-nmi",
> +				     "allwinner,sun9i-a80-nmi";
> +			reg = <0x07010320 0xc>;
> +			interrupt-controller;
> +			#interrupt-cells = <2>;
> +			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
> +		};
> +
>  		r_pio: pinctrl@7022000 {
>  			compatible = "allwinner,sun50i-h616-r-pinctrl";
>  			reg = <0x07022000 0x400>;
> 





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-26 15:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 18:16 [PATCH V2 0/2] Allwinner H616 NMI Controller Chris Morgan
2024-04-18 18:16 ` [PATCH V2 1/2] dt-bindings: irq: sun7i-nmi: Add binding for the H616 NMI controller Chris Morgan
2024-04-18 22:41   ` Krzysztof Kozlowski
2024-04-23 13:29   ` Rob Herring
2024-04-18 18:16 ` [PATCH V2 2/2] arm64: dts: allwinner: h616: Add NMI device node Chris Morgan
2024-04-21 20:06   ` Jernej Škrabec
2024-04-26 15:50   ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).