Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp286385rdg; Thu, 12 Oct 2023 05:54:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOE2tyTMUliJkHfUXii1+sQmsdAFs58gOLTEV5aURR78x4Ee453Rw77sAeiEPP7/wH3db1 X-Received: by 2002:a17:902:a504:b0:1c3:308b:ecb9 with SMTP id s4-20020a170902a50400b001c3308becb9mr18392794plq.11.1697115271071; Thu, 12 Oct 2023 05:54:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697115271; cv=pass; d=google.com; s=arc-20160816; b=bt+vb2G4au4KJO9z/do0jqr+mI/mAjfZJA0uoHaBI+dNQcWQQI7yDr/nrNPZMLJEwo 77fj9YMNvDtvt5z37d7k+sGuC7xpiTGasjJMEC+KKaB15UaZ4jZCkMnPHPd1n+qtg+Hm PIspML+7ydv7PTIVSdp561dGa/AdQU+vnM9uaeQh96Uc5BNsK9i9cMrBP0MWO7WSWLSt 2rxihP5/tFqZiC7mCc1pWqyOpD9TZKGuqGISApffGiZV9jlkxsqNbJsyRovHFcjRt3Ye sqyCc7lImuup5veoP7/zZIO16qOzbTBbuUYi6LN+Db//N7QgekOX7bGo/wno/Z6BMNdd 1tWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=3yeBQI7gvIukwfXkqS6YAkwbM7WgxDh/8LcW8tFee98=; fh=M1PslUX/OeJWBW2VgJm6Zks6HAeQJYTJm/ZPhlY+mJQ=; b=In4XplAU3k++jPxbAtFFOd91YNpEruFEtpeHkiEBQWC++DDAhto2C4BYXO6kmVZo4t 1vJm3Vv9PTStMm3RCc5cQ9B7PIeB8ZFDI8D5xQ+roXXUhQaUpRMyCjjJzTYMYCCilZmb uOV0pDm5j9MVkitDbuyKYEnKOI7pMYuPYg3fQ55CEVB5mwp1kAnZGecVNAivPXPlK4oe 3geXMpEQCOvOjAsON8qmpVODkfbnbQIacDdEh307TghYyxRVKAOHMrlsIL96HZifxAC4 xoUeqd9qcxyk23yzRmHV4K/c3amNgLq3hzp81uJu3eCrzsHULqUnOlYU31M7HKkcfqKz fyjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Tdp23qBa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e12-20020a170902744c00b001c9ad8ca211si2035934plt.18.2023.10.12.05.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Tdp23qBa; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0A8908031D42; Thu, 12 Oct 2023 05:54:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378670AbjJLMx6 (ORCPT + 99 others); Thu, 12 Oct 2023 08:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378561AbjJLMxx (ORCPT ); Thu, 12 Oct 2023 08:53:53 -0400 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2049.outbound.protection.outlook.com [40.92.102.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4AF8BB; Thu, 12 Oct 2023 05:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QQgLVb6aR4emIbxZw1Rmdzmx3GzITOYtk385eTAkvf2nhx9EXA6Za6cuMjZnU/1S/HpXTHU/jtllUG4PaGpsM67BzAY8tYqpx9fOUyHxbMsmmzZ2U2f74r7yHW74H5QNfUL54mrxefBc1TsU5m1RlooXu5waXXcrat5kpVj+P5m/0HYwvAlIIXNu0erDy0dHkp1DgXEtF0Suff0JRl4IUl1aWOeR0ouX2wpp0Kzh8R32jAiyU0jNwSlw0G+hkKe2VD/Tik1DR/dEII3P812sJMgwqu0+w7CW7dHucvQzwpBd7hW7wwJcLkz4005oHJZg/Qhmx9DS4LwE10LHTfua+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3yeBQI7gvIukwfXkqS6YAkwbM7WgxDh/8LcW8tFee98=; b=D/XWnYGydCuPArymSccOoGvBFO/w2LQ9yijTOhLYyWbbTRR1YDQMv76WTyAwd7mv4LKgZ9z7EzekupE7LSDCi+GUx2lbRR5FtIaOKXjYXRT+jQmt8ohqwxCJ34ZWrHV2sipCxZwLkeE26B7hlnlnDkfuKKiqJt+jFS4uYu0JNFpzOfkFEbPMAZuuW6DB+by/5kKMytC/FvFqs6OIVtJDXlWbyMeLR/dk5U4vK3qF492XXOHc/lElSK5cKmmi1sOOWcCTp5cUhv0DhNd5OjErn9Oigy1A+O4BFEcoyC+CHNz4YeSiHkT5ZiktNW4eJXRCXbSI2mVF3HaNbUjnzKgwpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3yeBQI7gvIukwfXkqS6YAkwbM7WgxDh/8LcW8tFee98=; b=Tdp23qBaZM2wCbQp8kJ86gI+tMwzpDZo3F6h1b5JYjgHhkSzveoDwdxcIqDfWciT9+48VZEM7G7Gn2EPIvju5IUSzGiD9ltQz+RO8LGFg/ALgnoD9iMKTE0iPBEmgXZAc0yowCTKwyHI13gp9DtAzeRj++ttd4p/kdxhmpJWcsiGTnYlwXJGljOOAEpFqhoIukeZqNunMOQQtruWtw+BxKIzwV0PJYpCbn+l8z6IFGKhDNBODyOqZ49RE0Ff/ZyFnXNUXSenWzzr0k+/9c154oIyBsJCucrIdRkQnGFPx5OdTFTEfFNrvI4h6uDZCDW8YXsVLW1C86JBypZL3J4JUg== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by MA0P287MB2452.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:129::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.42; Thu, 12 Oct 2023 12:53:42 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::efe9:8d54:281b:23f7%3]) with mapi id 15.20.6863.043; Thu, 12 Oct 2023 12:53:42 +0000 Message-ID: Date: Thu, 12 Oct 2023 20:53:40 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 7/7] riscv: dts: sophgo: add Huashan Pi board device tree To: Inochi Amaoto , Chao Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231009112642.477337-1-inochiama@outlook.com> From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [KIOPBmNMXL6m+h7BUbuweKl25XvdOm9N] X-ClientProxiedBy: SI1PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:1f6::6) To MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB0332:EE_|MA0P287MB2452:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ef49d67-07b0-406f-3628-08dbcb2242f5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LJs007FoccCSB6n6osfZ1SOJXHFEQIGbvoygbUQSI3ZLModHrmpxtqTbVSqtiBmBb01gZQk3je9Gs9oN+3RTGk/DxJ9ZcR0YhcNq2yOxYSleyE1MBk6GB+j/wi5Odj0zxDkDujhk9f1QhM6GIWcuFu9B6FFpaKSGgJ5AE1awuM9xD01kHW7FZjTBIgLVep4z6LqCNaDZ4WQcqCY/+6i5t+lLatXjXV4s67b76o1+jtH7RbShCUSOQ07x7g3fVUI7DxJ/9Y9el+8+AiZn3yehECCBQeYZUR0Qc5h4s1W3LvUGUyHiYJgXAJVe1z1Ubq3w4yL3h8sn73qgeuGXcyBH/FD0AYYU8EQXWqLjA+eDyo0mtYlYNu3PXZaXcy1Kh0imqbzfP7Erz8FUsDpjIuYSr+8sqhwts3JBmAiWicAVe7eLdgr7P6OVzvzsL7FB0DdYngHL9GH0gxbalFE8JyrQSeT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utf-8?B?Mnc2UDU5ajFZbXBsSFJ5dkdSME1EeW41TlI1elluUlVBQmtnbWkrekRDNWdE?= =?utf-8?Q?JJloKULydOMFUxlTfWWLCJZa7er29VrRO1qQ+KE2aRkc=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ef49d67-07b0-406f-3628-08dbcb2242f5 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2023 12:53:42.6646 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA0P287MB2452 X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:54:28 -0700 (PDT) On 2023/10/9 19:26, Inochi Amaoto wrote: > Add initial device tree files for the Huashan Pi board. > > Note: The boot of CV1812H chip needs a rtos firmware for coprocessor to > function properly. To make the soc happy, reserved the last 2M memory > for the rtos firmware. > > Signed-off-by: Inochi Amaoto > Link: https://en.sophgo.com/product/introduce/huashan.html > Link: https://en.sophgo.com/product/introduce/cv181xH.html > Link: https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/build/boards/cv181x/cv1812h_wevb_0007a_emmc_huashan/memmap.py#L15 > --- > arch/riscv/boot/dts/sophgo/Makefile | 1 + > .../boot/dts/sophgo/cv1812h-huashan-pi.dts | 48 +++++++++++++++++++ > 2 files changed, 49 insertions(+) > create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts > > diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/sophgo/Makefile > index 3fb65512c631..57ad82a61ea6 100644 > --- a/arch/riscv/boot/dts/sophgo/Makefile > +++ b/arch/riscv/boot/dts/sophgo/Makefile > @@ -1,3 +1,4 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb > +dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb > dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb > diff --git a/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts b/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts > new file mode 100644 > index 000000000000..aa361f3a86bb > --- /dev/null > +++ b/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts > @@ -0,0 +1,48 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright (C) 2023 Inochi Amaoto > + */ > + > +/dts-v1/; > + > +#include "cv1812h.dtsi" > + > +/ { > + model = "Huashan Pi"; > + compatible = "sophgo,huashan-pi", "sophgo,cv1812h"; > + > + aliases { > + gpio0 = &gpio0; > + gpio1 = &gpio1; > + gpio2 = &gpio2; > + gpio3 = &gpio3; > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + serial3 = &uart3; > + serial4 = &uart4; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + coprocessor_rtos: region@8fe00000 { > + reg = <0x8fe00000 0x200000>; > + no-map; > + }; > + }; > +}; > + > +&osc { > + clock-frequency = <25000000>; > +}; > + > +&uart0 { > + status = "okay"; > +}; > -- LGTM Acked-by: Chen Wang > 2.42.0 >