From patchwork Wed Oct 18 11:31:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13426921 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 54720CDB47E for ; Wed, 18 Oct 2023 11:32:52 +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=IKXYKPjJPhYUZGnDthIuHmQPtWIokucy/unC4POO5fo=; b=oQD3sst+Qttd0z Vot12/0/lB+XX0Aki3v9NpQ/QWs4tk7DQilW0MtFbpsks/xwTw7pRab3mji6qbTmT2xEpyefjLpP8 +7I6RnFC6yiqdxMyLCmN9v9Afa2CeK3f0JafL72g0mUQ0lyE+Z62lUw/FM09HDfwfcsTdCk/1kA1O butVOp7PSkR4l48IlMgazd2mvWojEoQrBf1bqVnZotQNHky+Vt+LLp0kOWUG3WgIADFSMwp7+2P+8 OqB4kL34uDkUjDBX/Hv9nJxVTQ6OvHer942VtM517ojQFvdwbb1Tg095fGluQyrEEYDKVuXCqqeAW pDaG2KeO9PayhpVxylHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qt4nA-00EZ26-0F; Wed, 18 Oct 2023 11:32:48 +0000 Received: from mail-dm3nam02acsn2080a.outbound.protection.outlook.com ([2a01:111:f400:7e83::80a] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qt4n7-00EYzE-0l for linux-riscv@lists.infradead.org; Wed, 18 Oct 2023 11:32:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RmDVWHexC0tQFcsTd62SqV/aLT+at3AqjxMo1Zlj+KRRH6/qmn1RzOAti3HRceIn1vjDin9ug7GXU5D8px5WgCzmZaYWTELiZW3hRg7a57cDKkXRkOu0auM8STyD763N7FBbXDSptWI8VE6a+vNeMR667kTlQEI/WVCA/N+nkhKvHqFrrW6QLZ2mBjzUXgcR8HyHdykpxDL6ELtg+7gILa/X4YNrQ43AGadiqpXkWyz/tpjp0ZUMS1/IphIp7EqMmR3Sj2GfrRZSKDgkVn/ZxNQvl5u7GBO7hCkcFmyBlBCgxEHWxZH0MLtYvro0m/oJIZSllACUtna2vhYZ7NzuCQ== 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=wxdFQHva1tIfHsLwtonuuEUHgRqniT4rOOd7FVoCvqE=; b=NcFv15oY3bkc96bVyWefDUKrxDjWEUUPH0FHaurSs3WsX+yQQYcwQl2WbEqCvgkMtWtkT2oynqxWG53/P9yU0R0jm83NX9sFTtQaDaTRKjZfH3t/s7XZQDso2N7jEkGqpLMrVRKb9DXJMmXoZyjJRouBR6z/7UXDGwEuAfIB5XYUEzvxHsTdb1wh7TP6icFOqyJEsj7bPkeYmwo5KYiPQeNR223jFxsKc3jSI7CkHd55tMYzEkq0MCumNHeHRiuqWKbMte/TnYe7b2mjDW0N9zQ2aSoj5IWPvhCE6/mQ1uO/L8Uvfq3sdqUiEb9fyE7HTEPl1oNZeKst0B7vVku5Xw== 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=wxdFQHva1tIfHsLwtonuuEUHgRqniT4rOOd7FVoCvqE=; b=V9Wn/6gT0+P8Pm8g6acYWkvDKVs0DL46HjU/cgAXmV2nxRDsQxdH6PedB03HbAEdXzkMyOBrfG9tL8T3DCQfAshSMpN+ktABkc87vvqmSY4NwLDuvLEX5uEBvRjceUTqCGypL4CiJr/83D7r9i8e3Q9THp/kvqKDGwjAmx+c9rlUinadIaC7jAcHkQ1pCzHwt1o2CIpgH2w8Af0g/JrdT9fwZ3faQSzuGEiVwHguAvtNT8lhOYxHowArkoZc6D48jk5jAW4TOuECZuJUuw9KlL8vQjNwiJpES25ZGcIeY58+Pb9/qr0+s2JOhBwAquMGXlEK6X8JdBossQDATqfN/A== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CY5PR20MB4772.namprd20.prod.outlook.com (2603:10b6:930:27::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Wed, 18 Oct 2023 11:32:41 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263%5]) with mapi id 15.20.6907.021; Wed, 18 Oct 2023 11:32:41 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Inochi Amaoto , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Jisheng Zhang Subject: [PATCH v3 8/8] riscv: dts: sophgo: add Huashan Pi board device tree Date: Wed, 18 Oct 2023 19:31:53 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: X-TMN: [CRhN/S6ZeOCrGtsoa34BwfxNtc1DWL+uwymuLhpXJCY=] X-ClientProxiedBy: SG2PR02CA0124.apcprd02.prod.outlook.com (2603:1096:4:188::9) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231018113155.1605537-8-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|CY5PR20MB4772:EE_ X-MS-Office365-Filtering-Correlation-Id: 9716db7f-0247-432a-74ce-08dbcfcdf06c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YXT2JF9N2kvKdDG/Bj9sjh8ocjsDV1NxwkNaUoNAtcN5jz9rcchznGM42hg6rA5KCT8Au2J/U2FD+gRwk+GIraTnOrMfTAPBsvdQ1kWwuN5bkDYpsapOaKEM0z7Z9gvZp5lJzvq3WV0U+liEkdt+w2z58J6bd4ehcf5vltjazjtrS27nJnof77zz3m/uch4lBHsCwMhOBVlJdSEgOS/mr1V1Tn9swDgsXEppA02x9mBrsxbl2ghYDd6604bkvJhSqzkFBRCr4iFOJqrOmbh01WczhYYaoIwFtF3kGXZqtatRiifg/CTtpcihVn2D2GVMN2s73Z+4ueDb75aCdjPwELLYscrsQcvBvONb1yWYNdER1QG4ALJOBAcPGc1YSGrbjP12M11Zxtd7Gf3VzfXoUqkr0AKzzVYWTr5CMuZd6hu+bY4pgZCZvF8lKs/wWa8Ub/rwnExkgIinHiy5rWsgoxWuYqk4C09FkwoBwdcDjt+QTGmtN4Kxl/GnDITm1Bxwxpl0v8f3t0U9ZCA1AgcdNOH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eooxAyjwA2C9o8ReIwlExPIDX9oXD56N518bghiE83ww6uqQP8Po6cFp6wnHYUCK7NipuNc8COks/ERWUu41CShg27xjJA8Y6DqM5QjuPwlXQniI7at8N9LHbgtZufbcg8VhsrJNBjp+y/8i9n/QxdVyTCYjU5tlruWcFeA91Ik3pjPn849uqN0OyXh5AGN5J7Uhn8RJmAaYPH6nPG0rLrxZpIrBEVczDnSB1BACUqr1Zyzb3JPtiVDPt9aLLL4EiW7/HRlJMotbp08/QPzguXUDM8HXLtZJUC+zxLYI/CsgiI88Aghk/Spbtugjn8GjYtXsyYaNLex0HeSq8Az0JtPCuvbSWKh8aqPRQtsfI+iD54jwYkUE= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9716db7f-0247-432a-74ce-08dbcfcdf06c X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 11:32:41.4165 (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: CY5PR20MB4772 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231018_043245_275766_F56CD230 X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Jisheng Zhang --- 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 -- 2.42.0 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"; +};