Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3192210pxx; Mon, 2 Nov 2020 02:29:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8CPed/1vc9vgy9EChJe+UanV50mIVONdW6NcIrkLfAGE2XwfOSDXnACWnYftgHjOqppRe X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr249491edu.19.1604312940770; Mon, 02 Nov 2020 02:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604312940; cv=none; d=google.com; s=arc-20160816; b=AEiz2UMJSO2af568FmWyBfy/L7Qtu+1kwyxkLkBzeL+dVzqJz/mKMUvhocDgA5p2jN IQioiR/IC2wlWejL90lc+s6fHMykj93/d6SMky0tAnyX7UMAUEGQDtHINUBzZ3pIeOpq jTWW0+7lmiNM+wGPGW48MBsdDRnoYdrkatpaYrgyJRLz6XUBzHMoVEZAgFIG5B5WmYHi QdGC0pdlRTdKYXwH+Qw7Rlug0nSWy03jEHj4AJ8qaPZyq6qrRgy8gV0Eak7/eNLfRbwR 7mi9BPlMJg3qdG2fFAotylW3Qx778h0MPhQGlo2Jt3oVW/+00/70HO+CyBjEvZbXtDGn m3Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=W9JOkiS0k92CqDaVSBK0tJMXVIhejqAMrQj9jZzXs34=; b=dGyfRXwnQttCqnD5UAr+M/dl7b94LTEDMLBWrVnnyuPvdydAWQpjYVOOSlgPHZFo0y gXhP8HLnLB6z9ITIXxFLA/XYZI8paws26GVDUHUZ1c11iRC8ZVf224tl+QAPVx5Bmf+J Cnkq+Zxn8ts1+U+ALXMv2CT6sw1GF2grJgiUFTyuP1asEqt3q5CBe5oHWnmlY2Hnb4c0 btNHOkHa0LGrEPfuWeD+KISZcgcNU1pZWatZjodnObZYJD7xga7gRDc8hb0Hqw5E0S+y scRll7ZtnNlruXgBGz/dajQe0W6PaGAyZe737i3oMwUjkQ7WgicFgYCFCV16PBu4S4RC 8jGQ== 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 gj23si10727811ejb.600.2020.11.02.02.28.37; Mon, 02 Nov 2020 02:29:00 -0800 (PST) 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 S1728485AbgKBKZd (ORCPT + 99 others); Mon, 2 Nov 2020 05:25:33 -0500 Received: from leonov.paulk.fr ([185.233.101.22]:56318 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgKBKZc (ORCPT ); Mon, 2 Nov 2020 05:25:32 -0500 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id B79A4C0121; Mon, 2 Nov 2020 11:25:28 +0100 (CET) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 048E3C1D6F; Mon, 2 Nov 2020 11:25:27 +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.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT autolearn=disabled version=3.4.2 Received: from aptenodytes (unknown [192.168.1.1]) by gagarine.paulk.fr (Postfix) with ESMTPSA id 220ACC1D6C; Mon, 2 Nov 2020 11:25:23 +0100 (CET) Date: Mon, 2 Nov 2020 11:25:22 +0100 From: Paul Kocialkowski To: Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Chen-Yu Tsai , Matteo Scordino , Icenowy Zheng Subject: Re: [PATCH 6/9] ARM: dts: sun8i-v3s: Add the V3s NMI IRQ controller Message-ID: <20201102102522.GB11809@aptenodytes> References: <20201031182137.1879521-1-contact@paulk.fr> <20201031182137.1879521-7-contact@paulk.fr> <20201102101211.wtkmgfm2rcm5gdyp@gilmour.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201102101211.wtkmgfm2rcm5gdyp@gilmour.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon 02 Nov 20, 11:12, Maxime Ripard wrote: > On Sat, Oct 31, 2020 at 07:21:34PM +0100, Paul Kocialkowski wrote: > > 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. > > Is it after, or right in the middle of it? That's up for interpretation actually: - The V3 datasheet mentions that System Control is 0x01C00000 --- 0x01C00FFF; - In practice, sunxi_sram.c uses a regmap with max_reg set to 0x30 for the V3s/H3 so this gives us some room. Looking at other SoCs with the same setup (take sun8i-r40 for instance), system-control is limited to 0x30 and the NMI controller follows it. In the case of R40, the SRAM controlled is also said to be 4K-long in the Allwinner docs. So all in all, this leads me to believe that the system-controller instance stops well before 0x1c000d0 on the V3s as well. Otherwise, we should also make the R40 consistent. Cheers, Paul -- Developer of free digital technology and hardware support. Website: https://www.paulk.fr/ Coding blog: https://code.paulk.fr/ Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/