From patchwork Thu Jun 2 17:42:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12868033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9F6FFC43334 for ; Thu, 2 Jun 2022 17:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xYqD07W6Ry/o69QPwWsq2wK8DqQ4SIXtDofM0soAbnE=; b=PI36jQgC7VMI64 6e9uXJx7KIaOrs+yNQqax8Pph8RG07Kd6UWSnsRUAo6SfqFTMn3wTqZ+Cr7uKA65TBa09KqZob4Sc y8XpxtIJtjLmlVwg4+cmcSISadgsh2k9RQWLrVXwp6zqZFEBPyvdJN/4j6sYfJ846klKcr0SvdnZN YsILn51t3MkU99hwOrKu8NbQf9Zz33my5HsiGxNbFkazfyaz/ETOoMjkeZQwpJLnsse917uUsppcc 9AkilmnnxilvjsVNZPIEk4w+2nrxsPIUbb4CfQjAJ0i6xn/2KRJqQj/160FFh6MgK8YDDRK2Frrgi w40fUnN+h7cJI4xKMR4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwoqB-003suC-RB; Thu, 02 Jun 2022 17:42:35 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwoq8-003stt-SR for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 17:42:34 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 5CE35320031A; Thu, 2 Jun 2022 13:42:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 02 Jun 2022 13:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1654191750; x=1654278150; bh=cvL9SEcO4X rzAEItTo8sQ83qSs8Uxjzv9TSBOoGmt2Y=; b=TeBIU2qeqDd6nKie+jZUnSL5WL tY4qti2AEn6kObPMQ/CwkYX7YFk4jH7XhN30sLh7qjSpylWKuuBWm6uXyk5N578H 5l+g2cx8VydpHv7jw8r9o0q/SmVbiQFOeEmfQe8TO0gd3U0K86Za2JRo/TL4v8oU BYRHnqVjLNP6dQzy9e3xTnRcq9pREw6jzl4lIyTtWlR9+5nHT0dJFIGU8ToyIyBg 6lbxr0yLAULc3Mc+uwa793q8bisYt/KICIXz44qkZm2RNo2HOyXfhw+2MyhdZLYX p+V78OLxJGx1FjRD/A9i3Q9ZnU39h8VMgSzJnsLEPY9wwvuorkQc5IKgWwpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1654191750; x=1654278150; bh=cvL9SEcO4XrzAEItTo8sQ83qSs8Uxjzv9TS BOoGmt2Y=; b=JaBT4j6ftjbjOF/niwspOQRpMEmQBCp1AWBeKKsMQA8OfCWPwxa 7TvhXYe3NVkI3JFtxI6rOhu+LTjNlAMl+Mxy1oXaBIp5xME3vNkXztGSfgEa0KQN rekwC/Ry2/ZmKL5ouMlRf2aXb1rQx/fh14aIYj9ax7L3DBrNa9tKnUdLt+f+Trri UUhWW2sxpr3HLQjUde70d4uMQbcXV7DTyWU3ENBafhGUBI3MVnyNLaKb8kkjCbkB ice715C7p4utN/MqDn9CfsqTQqV6vi/8TejmOT/D9833vH95HolHBY1XQAirPP2U 826ez8HF9hD9ik3fptTxxTkg+cgpP6oX7fQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrleefgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epleduffeiheeuvedtffevtdeuleeljeduudfgtedtvefhfeffvdfghfejhefgleelnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnse hsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jun 2022 13:42:29 -0400 (EDT) From: Sven Peter To: Hector Martin , Sven Peter , Alyssa Rosenzweig Cc: Rob Herring , Krzysztof Kozlowski , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: apple: Re-parent ANS2 power domains Date: Thu, 2 Jun 2022 19:42:12 +0200 Message-Id: <20220602174213.2737-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_104233_010515_C5C25472 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hector Martin Turns out that the APCIE_ST*_SYS domains do hard-depend on ANS2, so without this they refuse to power up. Signed-off-by: Hector Martin Reviewed-by: Sven Peter Signed-off-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103-pmgr.dtsi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8103-pmgr.dtsi b/arch/arm64/boot/dts/apple/t8103-pmgr.dtsi index fc51bc872468..a6dbb1f485d8 100644 --- a/arch/arm64/boot/dts/apple/t8103-pmgr.dtsi +++ b/arch/arm64/boot/dts/apple/t8103-pmgr.dtsi @@ -725,11 +725,6 @@ ps_ans2: power-controller@3f0 { #power-domain-cells = <0>; #reset-cells = <0>; label = "ans2"; - /* - * The ADT makes ps_apcie_st depend on ps_ans2 instead, but this - * doesn't make much sense since ANS2 uses APCIE_ST. - */ - power-domains = <&ps_apcie_st>; }; ps_gfx: power-controller@3f8 { @@ -836,7 +831,7 @@ ps_apcie_st: power-controller@418 { #power-domain-cells = <0>; #reset-cells = <0>; label = "apcie_st"; - power-domains = <&ps_apcie>; + power-domains = <&ps_apcie>, <&ps_ans2>; }; ps_ane_sys: power-controller@470 { From patchwork Thu Jun 2 17:42:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12868032 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A1CF1C433EF for ; Thu, 2 Jun 2022 17:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5DE5lwdl+VHDMMGmDzvqloA5bYG1xdknoY+nTu75ojQ=; b=IE6m6GvQeK2e5E 9rqBLhDHLFDf45DztYIBP1EAXbpuEj27Nc/w62HzIegvIdiuW+AQfYJ6fCRkw7tUZqchSC1DHrnZC ohdcQ3YOU88uNesMIWRczDZR3FuJ0W3gstHd33lqpJ8cv3vm5tRHcy4H2GNuYSGQWq4J9GWUdrfFm JqcCw0/eHNyM3upbz8HA/NJZpXOFiglZrepayiCM9OpntFf6J5Dbekk90CRmSzxvQmVjpCWCWrvTK M3CRRKPNwd/0Gl4TPK8t47tqOvD4ldWKUdX3q9sppa42/n7li5rojOb7vD63BgzrZnQ1xQKU3pNQq qPTim3U2fR8HnEb1vb9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwoqK-003svf-CN; Thu, 02 Jun 2022 17:42:44 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwoqE-003suv-Sn for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2022 17:42:40 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9921432007D7; Thu, 2 Jun 2022 13:42:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 02 Jun 2022 13:42:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1654191757; x= 1654278157; bh=sdCSDnTwZq4cKIMvJzFEUcWYJ3lEuGnemhaFysCn4Yw=; b=h m5aaRDeaBuxkLWm2i4Nl+cUCfkn1NntvvL0E5qNsGUiDuFUx8q1oKwV3OIB6YSaa tZ/ln6iH3Osjx1KLtWr7G+r/A3E1gupNMi9xRmMOmWAXotXWYjO/PAjhhUYKX2AD IvAzEXMByfBx2OEVLxFmFplqRPKNDaMGHP6ze4B5eBE6EGuDYxiWHazWvq2Nf1Ji m/yPT9zqLrg5ZjZ5NfjsmoASDBFoMNLy+W06HK/EMWTNIV957DvBXqHV2PcTcs84 2PZWSRgc6DTNfZmgb70uOok2eBtD4ykkTZAY5NXcJ6Mbhx79KqMB6SztG8J4oFrQ 9uhICn0oOVnbwaWM2mkgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1654191757; x=1654278157; bh=sdCSDnTwZq4cK IMvJzFEUcWYJ3lEuGnemhaFysCn4Yw=; b=qkhRJqAy0YW0NayKJJvWEw0OXxR32 sOCEPBATJVW04XZ/8sZ6DNMJR671ZQNI7mpZk277LcknyW9STZwmVjlpM0gefjW+ ysZFwN5GBR5somBKd2lkK/5Yj3aTNYP+H2Nsxl/11tzJeEP/gluY9pefF4xJUmPk X388jSjI4spjKNzBThWJUSfRhlqoEAmjT5YYqweu3fB+xeqhgi06rZmV6ynZZOzG QDFm77/urOPYPjuXtM0dq+O+fi3wMmxRzMBdeJkhQAeIUs0yLqq4cIKX2jV48ROo y6MgMw+/qKMpwsaVoIVv/TCuZi/XVRvdLyKGbditW+uP4Ull0bS4b0nbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrleefgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcu rfgvthgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvg hrnhepjeeiheehkeegvdejhfevkeejgfdutdefhfethedtieffleekieeuudefleekjeeg necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvg hnsehsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jun 2022 13:42:35 -0400 (EDT) From: Sven Peter To: Hector Martin , Sven Peter , Alyssa Rosenzweig Cc: Rob Herring , Krzysztof Kozlowski , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: apple: t8103: Add ANS2 NVMe nodes Date: Thu, 2 Jun 2022 19:42:13 +0200 Message-Id: <20220602174213.2737-2-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220602174213.2737-1-sven@svenpeter.dev> References: <20220602174213.2737-1-sven@svenpeter.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_104239_003952_89731165 X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This allows to use the internal disks attatched via NVMe. Signed-off-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103.dtsi | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index 9f8f4145db88..51a63b29d404 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -378,6 +378,40 @@ pinctrl_aop: pinctrl@24a820000 { ; }; + ans_mbox: mbox@277408000 { + compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4"; + reg = <0x2 0x77408000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = , + , + , + ; + interrupt-names = "send-empty", "send-not-empty", + "recv-empty", "recv-not-empty"; + #mbox-cells = <0>; + power-domains = <&ps_ans2>; + }; + + sart: iommu@27bc50000 { + compatible = "apple,t8103-sart"; + reg = <0x2 0x7bc50000 0x0 0x10000>; + power-domains = <&ps_ans2>; + }; + + nvme@27bcc0000 { + compatible = "apple,t8103-nvme-ans2", "apple,nvme-ans2"; + reg = <0x2 0x7bcc0000 0x0 0x40000>, + <0x2 0x77400000 0x0 0x4000>; + reg-names = "nvme", "ans"; + interrupt-parent = <&aic>; + interrupts = ; + mboxes = <&ans_mbox>; + apple,sart = <&sart>; + power-domains = <&ps_ans2>, <&ps_apcie_st>; + power-domain-names = "ans", "apcie0"; + resets = <&ps_ans2>; + }; + pcie0_dart_0: dart@681008000 { compatible = "apple,t8103-dart"; reg = <0x6 0x81008000 0x0 0x4000>;