Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2202140pxx; Sat, 31 Oct 2020 11:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7KZdY/bDH93CIXXmG17uDEq8dugAqcfzyjZnG09V2ol/RJbso1mFut54mAloDCXDG9XFf X-Received: by 2002:aa7:c3c8:: with SMTP id l8mr8860279edr.189.1604168721188; Sat, 31 Oct 2020 11:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604168721; cv=none; d=google.com; s=arc-20160816; b=G5teTsyvqOTPSEG4lSXho7wU/gqBu7Q7Fmb39Atoxna6WsCEj2zDt8/sKbO7lTzbm3 EPBkGgXhc4bikNXzahGVNRsKalq4srrgTbj4329n25LZY08Y1OBMCBBFnP66TGGTMvyW njVdwOwBpFpDuG6ZJ8ya1nMHP/YSrK8ASZkNKm4dooc/k2srF3t/FY62nXcDWvNy5O2a SQdGRHM+76qw/ojXCLW7L0cKd8aA+318XE4GZWl6GWE6Ve0fKM44vcmXwuDP1qrJnIbe E9pIeC+BRS1JatCd2zwApyfesRjL4AWt59wB+AKHz/pKlGJzUIyARzo/dx0gamVeEbca 0JGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=E2myvnMNXqdAJY2rNjH9udKqu8fsU6/SkQ9HHkV+hX8=; b=lAhjq/9gDSBA/6NwGSjolHlNuv0XSLKb6n8qcYeKCL3TJkAU1QE1M6WskyfrI25ij+ vTvno81ED2lqduVEeGYldktumvrdPmPULhsZ+Yj2N71c2RZVQc1ELHe1G5g4BU+C0Whr f1Q7Pd9MulelRZdh5t14//PxOJ7gZRl4skBaA7HayoPpHpIVBHm4u4ASDBlrwhtNFD3O mcFbyu2gDInMRxqT22rq/1KipetCK25YshkyM3gIVDpUn+g75PnoRsA4kw7iYLr0Xl6A 4wQMXlLi99+SE7MX+M/L8a4OoPtq7AqfUgTx5Wcf4NGiQJ6PjrqH1rYKNMm80n9QQ5ai KBEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si7424308edq.556.2020.10.31.11.24.59; Sat, 31 Oct 2020 11:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728273AbgJaSXX (ORCPT + 99 others); Sat, 31 Oct 2020 14:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728116AbgJaSXU (ORCPT ); Sat, 31 Oct 2020 14:23:20 -0400 Received: from leonov.paulk.fr (vpn-0-22.aquilenet.fr [IPv6:2a0c:e300:4:22::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2B68C0617A7; Sat, 31 Oct 2020 11:23:20 -0700 (PDT) Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 32619C036D; Sat, 31 Oct 2020 19:23:19 +0100 (CET) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 991C6C1D6B; Sat, 31 Oct 2020 19:23:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on gagarine.paulk.fr X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RDNS_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from localhost.localdomain (unknown [192.168.1.101]) by gagarine.paulk.fr (Postfix) with ESMTP id 6EF8EC1D6C; Sat, 31 Oct 2020 19:21:56 +0100 (CET) From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Matteo Scordino , Icenowy Zheng , Paul Kocialkowski Subject: [PATCH 6/9] ARM: dts: sun8i-v3s: Add the V3s NMI IRQ controller Date: Sat, 31 Oct 2020 19:21:34 +0100 Message-Id: <20201031182137.1879521-7-contact@paulk.fr> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031182137.1879521-1-contact@paulk.fr> References: <20201031182137.1879521-1-contact@paulk.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The V3s/V3 has a NMI interrupt controller, mainly used for the AXP209. Its address follows the sytsem controller block, which was previously incorrectly described as spanning over 0x1000 address bytes. This reduces the system controller address span up to the NMI controller and adds a node for the controller, with its dedicated compatible. While the interrupt number was found in Allwinner's documentation, the address for the controller is specified in any Allwinner SDK supporting sun8iw8 (V3/V3s) at: drivers/power/axp_power/axp20/axp20-board.c It was tested to work on a V3 board with an AXP209 connected to the NMI interrupt line. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun8i-v3s.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 7b2d684aeb97..d2e2abd3869a 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -157,12 +157,20 @@ mixer0_out_tcon0: endpoint { syscon: system-control@1c00000 { compatible = "allwinner,sun8i-v3s-system-control", "allwinner,sun8i-h3-system-control"; - reg = <0x01c00000 0x1000>; + reg = <0x01c00000 0xd0>; #address-cells = <1>; #size-cells = <1>; ranges; }; + nmi_intc: interrupt-controller@1c000d0 { + compatible = "allwinner,sun8i-v3s-sc-nmi"; + interrupt-controller; + #interrupt-cells = <2>; + reg = <0x01c000d0 0x0c>; + interrupts = ; + }; + tcon0: lcd-controller@1c0c000 { compatible = "allwinner,sun8i-v3s-tcon"; reg = <0x01c0c000 0x1000>; -- 2.28.0