From patchwork Mon Oct 9 11:26:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 731170 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B05B2156C3 for ; Mon, 9 Oct 2023 11:29:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="gTr25GUT" Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02olkn2099.outbound.protection.outlook.com [40.92.15.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD4A19E; Mon, 9 Oct 2023 04:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jd4mhS2kTWW5mTXCOmwGUYA45O6Xm9vt457/2naqHHi0Q6ztsRSft6DBXF4RwIVN1CPHr8MMK+vxVYKLXH2JFJs55XHAwp6PaIXMF68UFhohe14CzG+dgy/Ib4PwwYN2OVQshFb0TcCzkEHOkJAQ8z/0LuTkyMY5esaL9e+8GtaLQvGWJ6tOjnmUfCFC4p2KwJDFFy9lDjwx9lSmJ5hg8NGlE0I4dK044bBLmZM1k8d7W5PCOMT+Z9IUCXwZI87r9NUVY5gkIF6MqQ65pFPUGJklrrG3BAqYA6YMdKaMOzbbDqj/sda7cnx1I0Qi72vlOh+lphXgHQjOEQ+bg/U/Kg== 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=Jl6q8EOE+QklzaGMm/oPqAWsf3LDO5ZIFVK02dU5XuE=; b=WeEAjs2gbY/ljTutxgBcxHYBytqJ1XV1Qvsn4Ngj6iCpAmuvhy8zIBHyZ3/xrcauh2hVEus0l05iJeAtq51d5M/pHYogN3weqehB1RUthQh6RFPvM4LxCovcjOo/uotrV1ag8zCsOHhWurhwr5lk1Zd8g/qf5A4LLvk5/VEvv7Yd+QoGUmOYg7CTAp3uS7Dsv4NYW831pJSpF4ma/Kt+r+8ikBSMZgvOqQQ4Who+aWgPKiecsSLETluW7OzJp1oQOAkGBXuWFf4UGcDC3foBGDJGubA9WNGPuQ9SyXKhMW1tG+KjopxpIRXQipZ32d2oSPGHcRZ8UyxnajC4lDIL0A== 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=Jl6q8EOE+QklzaGMm/oPqAWsf3LDO5ZIFVK02dU5XuE=; b=gTr25GUTYKZtWr/4Va6hCHIy1fzYP0WY3bv2UDYiKyq4WO/eM+AJg/T/EIFiXNIyr4I3UqXLUHHYvW/kzN5SSdnMfrMWPdjxBupbRwotuGpzSXP5US10xsVOqpLMsK1wQo5+gbosDtS9A//IlZYdhoyb3Rx7Q2ljQjXwhTY9Wr932WdSjsVGB6X749ve3OaLGp/u+ckIVBv2sEwJyUA8v5yvUkDqz+TJeG/IqtF4YouBSKUJZW1bZldqmZptVCwiGDh5uWrnOE+mhD206hyASeyMym4ssPWG0xHBDm0jUTyPy5FmPGav8RlfuncaXYnG/rOGh/FrWIWOmyC+m2aQVQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH0PR20MB6129.namprd20.prod.outlook.com (2603:10b6:510:2a2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.37; Mon, 9 Oct 2023 11:27:20 +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.6838.040; Mon, 9 Oct 2023 11:27:20 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Inochi Amaoto , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/7] riscv: dts: sophgo: add Huashan Pi board device tree Date: Mon, 9 Oct 2023 19:26:38 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231009112642.477337-1-inochiama@outlook.com> References: <20231009112642.477337-1-inochiama@outlook.com> X-TMN: [JrogtGcL1oKHfA62cN+wiAZbhjowZcaXHIEsqEIyb/I=] X-ClientProxiedBy: TY2PR04CA0010.apcprd04.prod.outlook.com (2603:1096:404:f6::22) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231009112642.477337-7-inochiama@outlook.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH0PR20MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d7a42d5-8e81-434f-5b71-08dbc8bab2dc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aVwncFc/Qlrzb/dKawwHzNNu0riIdJU3e5uo49a3KgFYondXJSArljEK7Fk4o7wsPf1xEEooaaKpl2+vpaLUvxiNAFJlseWEc+zYSpBJ1uaj8aFwCR7MdkUbnN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9szBD9Ls9dK+d74iFEwHAEtR3PTFJNS5RgRT7SBnDxrfSjFxC2U8d3UD5AgjcCfg1W3oYi/ltcqCH6pwIqWAkozvzoYI+ovP+BpxsuZPaxV4Jy4n17sRrsW3osrg3fIH6Y93Mvj1XMbOCGPScuEj17PEgHI69nHtbq0/hyLpQp4yZoLfFyPI428/wqRfmt5WWEdLs2D5BRqHeaTlGOejheVUhMmT9BS+viiGlh65ZP7tmxxHVwepyRMUmqfjNkiOXClxGi/P8UvaC/bfnKYDk04qyV8TAZRPp10olVgVE6oMWZU1eipo/fpiXJd/psmgz5FzaeYARbcZHCOyheyo55DqS7rR+ArDd0wuZyLZxxEphkdvsMLXaFYtZhGkHKkUtUfWI0DqHPBxhijbl5VP0Q4gA8nWszQdy44KfFuLY19wW8lJ1rK7+IgmQj3OXAw/Mo3y8mBF9CgVTRfTKiCQouVMtyBBFQ7+mr56WC9MXp+hzU/z4gnxab+tqkqxvyElv7vD0S4BXtEu9RAnRWt1KcSejS3wCoTnLrZCIXTtXA1PJCnCLC54mZNbZ/DKCL9ZlfNNG8mGVFO95yqRAOgAn3KlUMXcowkXNkxU7FZZgwj1vfmjOWkI5JoBCIYfM8iAuxJxrqciTap253SwaXjnAyJITme/yuly9kcYf/jkxgni2Gg/4jw9Hx7K/Zr5o39Gs09QyKZlYk7NtxEr5OHLApu0Vwh2c7wsCTfGCVjYDRJBhqZ/BOYb1YNi9G35EKlFXcphOL1+lhmH5rC7jIdWtQCHKkUDxJlXQ4= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d7a42d5-8e81-434f-5b71-08dbc8bab2dc X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 11:27:20.3369 (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: PH0PR20MB6129 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 Acked-by: Chen Wang --- 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"; +};