From patchwork Mon Jan 13 04:49:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 11329589 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3828F109A for ; Mon, 13 Jan 2020 04:51:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F9D22082E for ; Mon, 13 Jan 2020 04:51:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sfOKq4RE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sholland.org header.i=@sholland.org header.b="gKiqUekW"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="AWfMgKEq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F9D22082E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=Gl/OOT6WfvMLBXO9/sLdjBhHK+FXrtBJbFxH/DyKjSE=; b=sfOKq4REAoTFe4 gBndmBYCWT4SQne2TkU1ILBoRgYtvzqq+WJCnA50ruUGyPIQ15qwOsBxZ6oLpX4qZ+EOY0zYPk8Kw xDAH+dBEVGyGRkFm5T31bIkwf6PTh7ujePLuAFMp8nOPgbzzr567oHXR6gKUdL4W2wYWzRayY3kpn 6c0YXGETMGqLxne6FsoLnM1bP/su8PzlrdjCzYlahEjLmJlKxl0+fQjVjs0e2uIqnGUhM1cfjFevz n9ESWu0jT6SgvwRcmPBpcHT2VSRfHz/OQOVhWV8NR2pkQztrVj7TrXqqIyMJJWDF7Mg0NDFwTs7et gwFJgq4pPDcWAznpp+9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iqrh5-0002aZ-Ce; Mon, 13 Jan 2020 04:51:15 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iqrfh-0000Ch-VX for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2020 04:49:51 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 5D8B0657B; Sun, 12 Jan 2020 23:49:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 12 Jan 2020 23:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=eSYYFPyUyxZ0R tyfs3BMeEOWH0PFF5jUUQ1YKpLnMkI=; b=gKiqUekW1doGrmwCeHQ/gF5R8/otF JIRUpY9sNCDyeGBAXqWIfFcOcoFuFbp8zK2y2C+TVAbXgGo/qs8bnOwKkmPpRXrN LeZFO3593OEaj/F8UUruy75DYIR7OGU22fHz39dMLdse3xm9PY/Ii17i5o/RtEkV t4gIqtacShe4HICfNi8qF+hf77DN+nMsT8TMduCBIXNjmwpzPHDi5mXCbQMrvW4n /o1x3ApI0pT8a75jJyDDWcTXxvCTPKL0zqhtL5MuB4/MNrWrheNmscRiKh6wksNL NVHocz1f+/Ea0Qa0YtiepyLJw1IzxIeFGgAM+TXWPCUD6ffoO3Ij+VByw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=eSYYFPyUyxZ0Rtyfs3BMeEOWH0PFF5jUUQ1YKpLnMkI=; b=AWfMgKEq 3K8H6UJi6eCyJyXxYi9hi2I7N+pRP9yPFpfpvJzhtewZ5VE6O/s7g6hdKbTJlFuX AVGOELV8zNgE5GctgingTVF7Y5AzvDp03zzUXRJ1urDq6D4JJl1x/hTaog6kLWPK zdKIYwN56PRI3loiIw0vOxH/sOrvJ1BeHaqr6hRKGmQmNCj/+Pe+pUesm+fSr3NR fWQY32vTFbN8YHTNmN35fzgH/tEgSiLBd6nMy+4n7D8HMf2DrdtGMU8FHTWV3/gq uUKO2gPeoTtiHjRy+DLV8uE5c9ZFAeI8vY/Gbs4T+305PyG1Rmzd47xGnhKQzC9X Oa68FTTJN8guWg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeiledgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucfkph epjedtrddufeehrddugeekrdduhedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghm uhgvlhesshhhohhllhgrnhgurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 9DAC130607B0; Sun, 12 Jan 2020 23:49:40 -0500 (EST) From: Samuel Holland To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Russell King , Catalin Marinas , Will Deacon Subject: [PATCH 6/9] ARM: dts: sunxi: a83t: Move wakeup-capable IRQs to r_intc Date: Sun, 12 Jan 2020 22:49:33 -0600 Message-Id: <20200113044936.26038-7-samuel@sholland.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200113044936.26038-1-samuel@sholland.org> References: <20200113044936.26038-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200112_204950_157140_45B7D1AF X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.224 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org All IRQs that can be used to wake up the system must be routed through r_intc, so they are visible to firmware while the system is suspended. r_intc IRQ numbers are offset by 32 from the GIC IRQ numbers. Signed-off-by: Samuel Holland --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 74bb053cf23c..98513f2af21c 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -1103,7 +1103,8 @@ clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; clock-names = "apb", "ir"; resets = <&r_ccu RST_APB0_IR>; - interrupts = ; + interrupt-parent = <&r_intc>; + interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; reg = <0x01f02000 0x400>; pinctrl-names = "default"; pinctrl-0 = <&r_cir_pin>; @@ -1113,14 +1114,16 @@ r_lradc: lradc@1f03c00 { compatible = "allwinner,sun8i-a83t-r-lradc"; reg = <0x01f03c00 0x100>; - interrupts = ; + interrupt-parent = <&r_intc>; + interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; r_pio: pinctrl@1f02c00 { compatible = "allwinner,sun8i-a83t-r-pinctrl"; reg = <0x01f02c00 0x400>; - interrupts = ; + interrupt-parent = <&r_intc>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc16Md512>; clock-names = "apb", "hosc", "losc";