From nobody Thu Dec 18 10:34:09 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C0A5C4167B for ; Fri, 8 Dec 2023 07:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235693AbjLHHQa (ORCPT ); Fri, 8 Dec 2023 02:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233266AbjLHHQZ (ORCPT ); Fri, 8 Dec 2023 02:16:25 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B485172C for ; Thu, 7 Dec 2023 23:16:30 -0800 (PST) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/a= rm64/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 =3D <0x0 0x0 0x0 0x40000000>; }; =20 + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + /* 52 MiB reserved for ARM Trusted Firmware */ + secmon_reserved: secmon@5000000 { + reg =3D <0x0 0x05000000 0x0 0x3400000>; + no-map; + }; + }; }; =20 &uart_B { @@ -34,3 +45,48 @@ &ir { pinctrl-0 =3D <&remote_pins>; pinctrl-names =3D "default"; }; + +&nand { + status =3D "okay"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + pinctrl-0 =3D <&nand_pins>; + pinctrl-names =3D "default"; + + nand@0 { + reg =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <1>; + + nand-on-flash-bbt; + + partition@0 { + label =3D "boot"; + reg =3D <0x0 0x00200000>; + }; + partition@200000 { + label =3D "env"; + reg =3D <0x00200000 0x00400000>; + }; + partition@600000 { + label =3D "system"; + reg =3D <0x00600000 0x00a00000>; + }; + partition@1000000 { + label =3D "rootfs"; + reg =3D <0x01000000 0x03000000>; + }; + partition@4000000 { + label =3D "media"; + reg =3D <0x04000000 0x8000000>; + }; + }; +}; + +&spicc0 { + status =3D "okay"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spicc0_pins_x>; + cs-gpios =3D <&gpio GPIOX_10 GPIO_ACTIVE_LOW>; +}; --=20 2.37.1