Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2167844rdb; Thu, 7 Dec 2023 23:16:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcyoiASQCVbNOi1/Ltg5r/VhikMNUa3KABtSkgvxm2VePQdzTm3XXVjMCEgCM10DJQw7pn X-Received: by 2002:a9d:750e:0:b0:6d9:9ed4:b058 with SMTP id r14-20020a9d750e000000b006d99ed4b058mr3936522otk.28.1702019819365; Thu, 07 Dec 2023 23:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702019819; cv=none; d=google.com; s=arc-20160816; b=y4DpEqkoUn6TuuwLPo4z8P0How8tpIDDJBTjFLQc3k4VJmik1Sed3hgZe4bXzen74i GWiFTwrPQ8SnL8nVWuwOT/hsNMiEBpU+T9LLECaKE+NhAMLB4uDDz9pi3m+Ufubur47j ErYbGm+nQD77AlEBftL5tKjPk/sQLobJItkOn6egHVlYB4kEUBdZyq+AUKJ24QluZQIV z1YrhVSzSmjExwYEz8AdWd2ye6GMu2uBun6O2Rp8FtA0uFpjT2M0uJ2I0HRzpdF7nEC2 2i/t4mco/U8xkxg6cZXJF2DB6hU0M7hipfKjQU+qf+xq72oRfwqm4klvTl7uox7u8IDh UtIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=5YmhfEOV9UxOObnOc/znpy+Xy9newYyRNwry0d0sypo=; fh=HvSvDRVf0Q2kQTB69PR4PYYBE9c7cE0c3pK/USPYbPw=; b=DsNoAqObOCNbT5XcVn/VmOnbJJV4OnhhXv5bx2eKHJP84meW8pgtgkfGFNw00foCki K7em7x98H3CT51BoowEU/1aC2MH0oD2WHFRx0UPedutk03KohMFZ3LrX896hesEMRWAB Lkb3VtXcCyED1/u7+695sPH51E12vGyF2QneUgrvqIOJ2B9LAlCFGcS4LSKdd3wSNfAu 3XYTuN5y0D8/wGoa8nK/e24/7QKbHOrYtVrkfrIxjbGVHG7eMYlfNLc3MO+6eMvH0EXw JiFBNzFDWM4HD1pRZb3h1xsURfHn7Ew1lleyYlNw8iUQ9akRO1V9PIwkRWGidOnDlVHe 9G6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nhLS4Xjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v3-20020a655683000000b005bdf5961d93si1074722pgs.387.2023.12.07.23.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 23:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nhLS4Xjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D75E2812E369; Thu, 7 Dec 2023 23:16:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235676AbjLHHQ3 (ORCPT + 99 others); Fri, 8 Dec 2023 02:16:29 -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: 7bit 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: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 23:16:54 -0800 (PST) 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 --- .../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>; +}; -- 2.37.1