From patchwork Fri Dec 8 07:16:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13484960 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 C2131C4167B for ; Fri, 8 Dec 2023 07:17:03 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZBONAj0PCgojJBLjeGy4AKDc04I92XGjSICgezntqsk=; b=egOaiHk4Swmulj 21zRWlLD8JmhnY19gQO6IpAxxjf+m92XNOcIwBuKz4UmwCyQg7QkY4fgZr7yLdOJJC8CXvaK6NHj9 I/yaM+h/4dV17NNA5iNgZMI3lMehTp+iEFSC7J4qQb+Hor6RCavzjutdNjcXztcRTWuch3p0X4VAa 24Fx/N4M6/s0JRCyEDj0lA2AInPbN9R2zB5NSRPHJMQ0PWHMqIJ9IYJuwTvvM/4kCgUq2sfy9BXGA +amM565rDlpBA3y4QcmK+RnoFtne5fu9wevqO7UNAaIhrM301wusikRqDp5wiyIlFEKPo3vmriqVK hL7Xm4EUvdex+dUjPAnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rBV6B-00Ew5P-07; Fri, 08 Dec 2023 07:16:35 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rBV67-00Ew43-2V; Fri, 08 Dec 2023 07:16:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A5A16622D9; Fri, 8 Dec 2023 07:16:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0755EC433C9; Fri, 8 Dec 2023 07:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702019790; bh=Rbwv+ZPhCrPrUCGZqR6tyf6lxk9m88ubsPf5VOk1tfA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nhLS4XjbFZWlazrR1IDRr88//CxrI4lqufrA86OfjpBAQE99tcijWHy3TmmrHXLaq CW6vLzXspdsUigbc8jFf1OXT7x/gDPcG+vqjSV3nReoOGyVmRdLB3CdbcKT+IoZlQt 3/Q9uDcH8+uLUB5ql/EklHD5I3+peiLSZSjDFrxm4a1+HWn6I+fAO3Zt2AboJNlN1F JAz7S5cb+38cCl9FrzmtTCQUqFg5wCnPJZ/tFqCHAqkTTQv8eymFl5j3tr2WgE0uIo 1QvQS+Fu66jRZURWCxE86/kjnxw92z7Zd9kSXhjH9uP8vW3a4mhgqDMuXLaFJHGbXh a5V8rq9HB75zA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE62BC46CA3; Fri, 8 Dec 2023 07:16:29 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 08 Dec 2023 15:16:27 +0800 Subject: [PATCH v2 2/2] arm64: dts: amlogic: enable some nodes for board AQ222 MIME-Version: 1.0 Message-Id: <20231208-s4-dts-v2-2-5a93fa356c5d@amlogic.com> References: <20231208-s4-dts-v2-0-5a93fa356c5d@amlogic.com> In-Reply-To: <20231208-s4-dts-v2-0-5a93fa356c5d@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1702019788; l=1856; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=FPfG6Qexq9rPMZ1Ih+HGmxDokcf3sZTqaUTwsk9LhrI=; b=TFxXu9LH3b6E9JDbmpAZ++m2/kXsninEktll5WYBjpjcq4iwMqaSQLy3IOChg7F93LIiVrCfR vGEFzRjx+eQBxCdJgF3nIihzGVUXl5mqHOYM3yH21A9+s/2yWEB7pQT X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231207_231631_916026_C36668D2 X-CRM114-Status: UNSURE ( 9.19 ) 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: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Xianwei Zhao Add reserved memory for board AQ222 which is used by ATF. Enable NAND, SPICC nodes for board AQ222. Signed-off-by: Xianwei Zhao Reviewed-by: Neil Armstrong --- .../boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts b/arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts index c1f322c73982..18789242f05f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts +++ b/arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts @@ -23,6 +23,17 @@ memory@0 { reg = <0x0 0x0 0x0 0x40000000>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 52 MiB reserved for ARM Trusted Firmware */ + secmon_reserved: secmon@5000000 { + reg = <0x0 0x05000000 0x0 0x3400000>; + no-map; + }; + }; }; &uart_B { @@ -34,3 +45,48 @@ &ir { pinctrl-0 = <&remote_pins>; pinctrl-names = "default"; }; + +&nand { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + pinctrl-0 = <&nand_pins>; + pinctrl-names = "default"; + + nand@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + + nand-on-flash-bbt; + + partition@0 { + label = "boot"; + reg = <0x0 0x00200000>; + }; + partition@200000 { + label = "env"; + reg = <0x00200000 0x00400000>; + }; + partition@600000 { + label = "system"; + reg = <0x00600000 0x00a00000>; + }; + partition@1000000 { + label = "rootfs"; + reg = <0x01000000 0x03000000>; + }; + partition@4000000 { + label = "media"; + reg = <0x04000000 0x8000000>; + }; + }; +}; + +&spicc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&spicc0_pins_x>; + cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>; +};