Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp294345rdb; Thu, 19 Oct 2023 05:01:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGU1nTuKKZkbrkq5Hhvp4EFTKkJKIN7Xaa2/YBQmD7PM2lCYWiMuZ5ykKIPU1qa/aLxDevK X-Received: by 2002:a05:6358:1812:b0:143:82e0:8cbc with SMTP id u18-20020a056358181200b0014382e08cbcmr1933842rwm.1.1697716891484; Thu, 19 Oct 2023 05:01:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697716891; cv=pass; d=google.com; s=arc-20160816; b=HhFC3PRRrPkQCAcPklImjcZzfdFgUpcD1uc+QzTE6F1jOlgA130EkPFB0X4bbUCWG0 zM6GQ8MS0S3QD5CSvcL2hlc/VMr5YuOGf0xiZt8sMHevBgjLX8PShAS1klgujF3UYJJp FUYD1bSRxozQ+HEbpGCr3Xe7wm6e4FiLrpG3jVwi3M5BWjlL5PhbTLBUlgXD61etTlEr FYBuMXPNVNF/gDv6BA6UBF5luJagBj++Z1l5mUHUU3ZsvmlY4PPRf/tSigpHJtQeMxOJ XN+BD2U8iSaUEoiGNvjgWPd1ejr4sx/9QwRRkm35CkcI/P/gBBX79KgmHY84/mgCqbef ODWQ== 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=hlzDjtdQVb+01Z78jPa66i6sQbaOtTLhQ2SHhg9QmrI=; fh=M1PslUX/OeJWBW2VgJm6Zks6HAeQJYTJm/ZPhlY+mJQ=; b=RxUO/c+Wp4GdEWisC1WZYgTFZq4tcfsenU1DJ0xY2qmN/KkOQniyJsIIx4X/jXHEzY Y+T7ym42FlH2cItqp2h6qsyVrv9SfYxWWKWolfLFiZ7f6a+SgtLFmP+ME5LPoh03iYR8 J2uIfY9pBXkZs9uz5f6tAmh1xfNudd6j7XXqvrWT/Hi50EY8j3BxhltIL8d68IpEJ7/F rEmoyvAk+vMwBpMAaKmqTCbNx0A/qHyPTjHjx6pGV2q2nre9Jdlx2L+q7MGMTA0fxZGM ns2IUmoJcBdaInSTyM9pTa8SAm+MSLgYUVyv9bbOk3ytjpcCwawV5Nxh0Za7HqlBNxBo BHfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ic8xWZ12; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j26-20020a63fc1a000000b005aaaedab297si4440455pgi.234.2023.10.19.05.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:01:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ic8xWZ12; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id C07EA82A5173; Thu, 19 Oct 2023 05:01:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345495AbjJSMBE (ORCPT + 99 others); Thu, 19 Oct 2023 08:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345475AbjJSMBB (ORCPT ); Thu, 19 Oct 2023 08:01:01 -0400 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2105.outbound.protection.outlook.com [40.92.102.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02709BE; Thu, 19 Oct 2023 05:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NbZGxWg9+iuz6P+q7JCCoVbot1T3pqTlmbc11LoERjODqlISxKlxAaykWaGZZ6MO3H0w3vCrXRYGh4CRMKVKC70AmZeGetD5ZZU6HTrZA2DJ/bDzghfguaBruDbgn8FUCJD/njHpyTkg3hPFG3UEnMlypKozDSt4CI8MRPpu6xczTAvDPqxKtsBCNmStzudyW7ldTabDjMrpci7oDvA+GEVmvXUU8eWs2NCYo0tiHkQnF585++3aKTeWR0C2DUup0xjEMmvDmDgc85BToEX+5FtJxPSjpCyIqUuGQ8q3lExB+4RQ7tlGADrGlsf3chHimbqTc+SLEtYnzj4j36Bl0w== 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=hlzDjtdQVb+01Z78jPa66i6sQbaOtTLhQ2SHhg9QmrI=; b=SQc67bn4cOU0+/HoRkyMMTYJjFr0GdW0DQo3/24i3Pp5UhdruZiFCddW5IfzSisjMvBByboAc5IyQ6UMBVX/X4nn5ViU+U4fqCzyGSJtcigOncbD9PAQvfNl/ve0pVMb8WHBTLX2BgFIui+jo7UAnfa9+dhYzyGZMpnxXsdGAri4wG4x/Gs+9a5QF+iLbGwSDsn/jT2uokAuk0AM0MDdddhUxFQd2WG9hRW8oEorrqJFMxL9NBxBUofQx5yHSqbL8dpmwckC7X6qtITjRyBqUKA2HBucqJHaaCDVcVbippyALeqh7ItocJ/kl9HVu4OSsalg7N+bvJxgQl275SgRLA== 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=hlzDjtdQVb+01Z78jPa66i6sQbaOtTLhQ2SHhg9QmrI=; b=ic8xWZ126WsHTiKnPkUILFMijiAq/IgeLO8CHDxoMwBGXb7JNqdh+aITMCGZlEG0VpunFHmz1sUfHEd6Jkv7ANYOUb2a/o/C0rLjsvgXKL5b/6NRp26IbPw25O4U7q72H3dJTIyICt9YcFGzWrakCVOMUqIpZ/wmU1EEI8c3X7geaG9kmp1Z5VLHLufAjOFdiTlXy7WG47/aGZBhDhGon7aDenPfajrDv7bvsQyBiGej96hw1ClExIzZ92Mr9xFRMQQ0ks0iwpVs93N4QGsMETW1aIOp8xA/Qap+DZ6gMs3Wf6cPVGGX3CwBEypxRcTADcF/7H6CRT8TNEYBSjKQ1g== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN3P287MB1233.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:196::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Thu, 19 Oct 2023 12:00:52 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b66:61a1:8ed:cc6a]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b66:61a1:8ed:cc6a%6]) with mapi id 15.20.6907.025; Thu, 19 Oct 2023 12:00:52 +0000 Message-ID: Date: Thu, 19 Oct 2023 20:00:45 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 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: From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [O61rarMArjJoywS/KcHN7cUD9ZRNcKLf] X-ClientProxiedBy: SI1PR02CA0042.apcprd02.prod.outlook.com (2603:1096:4:1f6::17) 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_|PN3P287MB1233:EE_ X-MS-Office365-Filtering-Correlation-Id: c40c5b50-2c00-4599-e2d2-08dbd09b09a1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TErgvkGQVqXEcyuhiSezTOfFQGzlNrFDUrMUCC44yPA+HXfFx3p7kD20uabJxaExOduTtSh4+1hzhl+bXCI5nZ9b4VoK6MFwGzRNiDIpTlR0NC8HO767gDp70eO2BLCM5vvycfwdqk2jtBh4jN2rg9v3zTMsuOBAcENfEY7epfltCVYc4iEcIO2MwrGTgoa8+M/RnVIY6Q4fPvgPIPLMl04sTo9Rkka9NDR8w0qr9ERslGcZd8R4u4CV9wNFej2MLQCz3h0DeZuj9aK6nTgaf/aQZFeLpA0b+P5M3Y26jvOM/W6WLIJ6gCZ2x+PNrnmVQwZKQ0QaLHI2NbKJ8XEZEpx8RdseclnIOr75C+/hGrxea9fEdqLvl+BnRKGyH4YPn3bU/dbtwoCd1S14VoCe1h+vsbQKYfi+ouXyg2y5QrDjXYXFbYJ9u9nLvo/aLdCK4ebBFNlmk/vL1eiO+nBOi7Hanb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f-8?B?VWNoREpCZDBYb1l1NEN3UkxVQzVYM0paUk5yVCtWdjZpUnM1V3p0MDVmc1lQ?= =?utf-8?Q?Naf3f1UMfFNHNaAkb/c4P1D1JDgjFozHcPyTCzk5tJGM=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c40c5b50-2c00-4599-e2d2-08dbd09b09a1 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 12:00:52.2565 (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: PN3P287MB1233 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:01:27 -0700 (PDT) On 2023/10/19 7:18, 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 > Reviewed-by: Jisheng Zhang LGTM. 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 > > 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"; > +}; > -- > 2.42.0 >