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: 154832 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4722195vqb; Wed, 18 Oct 2023 04:33:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBmQKgapYyqDmczyycrHt73qwmkFBaFC/rB7IEWaooFPuDcMrtGKRh1LLfUBMbOk9296TK X-Received: by 2002:a05:6a20:8f28:b0:172:55c1:f1d4 with SMTP id b40-20020a056a208f2800b0017255c1f1d4mr5561537pzk.4.1697628793596; Wed, 18 Oct 2023 04:33:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697628793; cv=pass; d=google.com; s=arc-20160816; b=d/Sjb6DP31Q7ifzq9R54uZD6Yc6RyA3ORCkYXf1wenOcgCoP/j8qg4UDi93NOC17iE 65Lc4R3oOwi8wX/H7ivwSdd4VBvSny6Ji3nZWpNILI4f0vnsihXRQGLGmFL/38jkfGGJ MKweO/Um1I6yWRcovEaglEAPLW+7GNEweG1ItoZ/Dpbu945xOsd/H9opblSo/QKTBVto 4+L7P1XCDVS23gEEE7q3yCn4RaD2C7ppZjlfxwtayk5iVtSfhZYpTo1N3NDmvMf8pz+S +q9wLU4p/boD6VR5ASlb2/KCYu/N0/9nGzFonG2TR04YckvnDuhzlx9LfsMm/BJUcVwI OBeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wxdFQHva1tIfHsLwtonuuEUHgRqniT4rOOd7FVoCvqE=; fh=4dv+EpesmGlSJW1ePNk16uCF6WKGJZIUfMzMkpkRsvg=; b=fIQZgwI3oWDTj6fTzzk+407nHAe5ga3wXtad26LI5iFzJA6HRIqRMg/mOemeb4H2D9 zhAb5SG5jelhT1XIFNCkFbZrnCimvqDKZRqf3w7rD6iN5i1APEW/piwge935OhF3xAUG FbpDVQjTzRXwdJLVPC66IiRiOlYxRQ+Ol8cIRz8pSIrRYBj0TpYa82lDYN0HJT57pcl2 TXdOmsYLfankK1RpfGBUmOzrnYV29tNba9vOlU2lzjYPrN7ITi9pr6E15OqkA7UZ4+bc g1mehb/ORkkNZi6qckwW77R4t3KpwszQNPnkLa9A2Z//7faypd+UD76MCNhHwfNg7xEB 724w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="V9Wn/6gT"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t1-20020a17090a448100b002748c1bbd79si1299248pjg.6.2023.10.18.04.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="V9Wn/6gT"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 43AA9802AA02; Wed, 18 Oct 2023 04:33:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjJRLdA (ORCPT + 24 others); Wed, 18 Oct 2023 07:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbjJRLct (ORCPT ); Wed, 18 Oct 2023 07:32:49 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02olkn2095.outbound.protection.outlook.com [40.92.43.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CE3913D; Wed, 18 Oct 2023 04:32:43 -0700 (PDT) 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+4ueDb75aCdjPwELLYscrsQcvBvONb1yWYNdER1QG4ALJOBAcPGc1Y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+CbjKbKZe9QV4H168XR6lOCSkep6DAuQTvLcpuSCopm8NCciXaxXdibhSejaNpNrbx1biJQmf3a01nYmJWBcKzXizaY3Q75TliTBPDg4iP5FloXwimQHA6WS/Yd0mN1fKnH8hPXbv6vtwrm8nRCx+M1npTBbDYtm/IFUz7f3eooxAyjwA2C9o8ReIwlExPIDX9oXD56N518bghiE83ww6uqQP8Po6cFp6wnHYUCK7NipuNc8COks/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-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:33:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780092810087474631 X-GMAIL-MSGID: 1780092810087474631 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"; +};