From patchwork Mon Nov 26 18:45:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10698923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF17013AD for ; Mon, 26 Nov 2018 18:46:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF7752A3CF for ; Mon, 26 Nov 2018 18:46:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF1782A3B1; Mon, 26 Nov 2018 18:46:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 424C029F28 for ; Mon, 26 Nov 2018 18:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wT3GLjKr7ilbwTaHbZ2qb7clB1PSLLTkzUx/EOb3Fhs=; b=Sw61jV3E2nxaf/N8xafXvdsaOM wddb+KAdsp55q4reC4T0RNaBmmoctT+BeKkSHECrjOO/hF6oPrG6mXDQg/kiWgWljOXs35BEy+ept MQdk69QOAHC0F3HsrthtprRwgjmO2FWiHeRrvtCGAiuVLD5rtU1pwl78+0hGMEPTCU3GYbAVqTQVd 40fiUCzdA0yeV/E38KRyVFHJLuYq8aiu/arbLbX0DdKTc9A6mhb4tGfhLxsLihwep+1RlvQhK6ray 7rkLr0T4NXUuGyomqfSuy/4v500AVrNTyuUxbkCSUoTo1O7jiblt/TExBEvNF6AWjIQlmy2+qkJmu xpmHH/RA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRLtz-0001Ba-Rd; Mon, 26 Nov 2018 18:46:35 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRLti-0000vz-CL for linux-arm-kernel@lists.infradead.org; Mon, 26 Nov 2018 18:46:19 +0000 Received: by mail-qk1-x735.google.com with SMTP id r71so12932185qkr.10 for ; Mon, 26 Nov 2018 10:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UJwXmkMuQRvbMlgyGW2sxLVTDjUAYA1M9FZrRI3FT9Q=; b=QpeEbtkeUm+q7p2gbB9emk48aEKI7+nGR14IUjYudLqRTB5a7K9ueI13jVApHvb4hA Tg+6PlOnfw249fzCdRfy/sNuMi0tu6TCNdRy5X3RSQLmCa2uyLKhjoJE3hbfi948nbK8 +1VNWFpeaYztbCqmHJAqZHQmvFoOqsRUx68sRnrWXNtG4LRnbU4YQBV9t5fCOPJ/BliD NtJlBAFuxeRCSHbQBEGflTOJJqPEAvBJzAJV/CDfN3VvSDvqAfjra+7D5U1gVrpmtPtn vIvBX4fF+rERE+icH0hn1LsGYsdOOTNe3Mnh2uWGft8voEkx++MuW6NGS15M/Nxc/aEh 5Mww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UJwXmkMuQRvbMlgyGW2sxLVTDjUAYA1M9FZrRI3FT9Q=; b=Ukn3IVTUks8AMj7n+gqNajwYj06Nacgbce60xGkCrEVncSEYmU8uGx8pc7C3qNrxs8 6qdMgTL/Y2rkyu5KWCUq/sGJjbfVGoBslIwrU+g4/Y7FaGMhpk95lSq56UZP48YISKFH U98ud+VqIC/Q4S74kUHYe+85odiYFZ0+ruIlbbDuoPDPtn8/t785PszjSzas8lfo7X2P 89yPJ548wKe2iAyxZm71jpvcunhmsmjvfpqNz2OdBSksAHb8THBfPR7NPztivshWa3Ld Q15oAXxWyZHcsXHuUO3COShpv1shQUgQkzDmaA0GVn8YRtWdhRtEYnDSu25To2lHui0y 9jIw== X-Gm-Message-State: AA+aEWYZ456HDFsk3wIH62ZV9j6qBc0Djd7QzGsbAtfCjy36oQeWbj4z GohfoLTOmUpebV7PBPjirf8= X-Google-Smtp-Source: AFSGD/UGioE88sgoXsZC7fUCZNy7JwBbix4QHJWQcbI8tdOPPUHLfNqx81kx4094lxRsRNSgXOjgAA== X-Received: by 2002:a37:6a42:: with SMTP id f63mr26717912qkc.224.1543257966940; Mon, 26 Nov 2018 10:46:06 -0800 (PST) Received: from localhost.localdomain ([201.82.144.36]) by smtp.gmail.com with ESMTPSA id i33sm427489qtb.97.2018.11.26.10.46.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Nov 2018 10:46:06 -0800 (PST) From: Fabio Estevam To: shawnguo@kernel.org Subject: [RFC 2/2] ARM: dts: imx7: Correct mask for GIC PPI interrupts Date: Mon, 26 Nov 2018 16:45:55 -0200 Message-Id: <1543257955-8910-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543257955-8910-1-git-send-email-festevam@gmail.com> References: <1543257955-8910-1-git-send-email-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_104618_415801_50A4D256 X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marc.zyngier@arm.com, liviu.dudau@arm.com, linux-imx@nxp.com, kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The GIC_CPU_MASK_SIMPLE() macro should take as its argument the actual number of CPU cores the interrupt controller is wired to. i.MX7S contains a single Cortex-A7, hence the second interrupt specifier cell for Private Peripheral Interrupts should use "GIC_CPU_MASK_SIMPLE(1)". Likewise, i.MX7D contains two Cortex-A7 cores, so it should use "GIC_CPU_MASK_SIMPLE(2)" instead. Tested on a imx7s-warp. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx7d.dtsi | 9 +++++++++ arch/arm/boot/dts/imx7s.dtsi | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 826224b..b066749 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -24,6 +24,15 @@ }; }; + timer { + compatible = "arm,armv7-timer"; + interrupt-parent = <&intc>; + interrupts = , + , + , + ; + }; + cpu0_opp_table: opp-table { compatible = "operating-points-v2"; opp-shared; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 477901c..be02a10 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -160,10 +160,10 @@ timer { compatible = "arm,armv7-timer"; interrupt-parent = <&intc>; - interrupts = , - , - , - ; + interrupts = , + , + , + ; }; soc {