Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp106846lqg; Wed, 10 Apr 2024 17:44:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2yhONm3Hew+Grr0+j1zdYRy2hNMi8fMyyOFACXeHVRY1lA0oG6HiUqDve5RUdgM67/IHVnv3HS7wHCnU8Tfx6n02HC6JbYQRu9J8oJA== X-Google-Smtp-Source: AGHT+IEeoUxVaf7Whg62Q1xMesIMgzgl5PbjaWR0uUdjLKM9ZctxxF/PScFK+7agyL4EU9nXUvA5 X-Received: by 2002:a05:6a20:9f8d:b0:1a9:5a2a:7e37 with SMTP id mm13-20020a056a209f8d00b001a95a2a7e37mr3977967pzb.56.1712796290644; Wed, 10 Apr 2024 17:44:50 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w13-20020aa7858d000000b006ecfb733245si376746pfn.136.2024.04.10.17.44.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 17:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=C66UwGc5; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-139591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 522A32890E5 for ; Thu, 11 Apr 2024 00:44:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE188F45; Thu, 11 Apr 2024 00:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="C66UwGc5" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn2025.outbound.protection.outlook.com [40.92.20.25]) (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 4B5BB1C01; Thu, 11 Apr 2024 00:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.20.25 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712796283; cv=fail; b=LpDMhcfOTxDvfBVsPJu4JREtBU/lYm6jJy5wQaMa0Tmaq26CSS4bTw0wEMIPrMyWwHmjfAbJxwH/KqCsnQJujx/HffZvGv/4No6NY9q3rAC8lGm1GUt0RCjh9g7tpCDL/7SzlhJu2M0Sa60RoQD4t8c0VRyF7HGbVGGkXq/b1jY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712796283; c=relaxed/simple; bh=M710Q1HOlo5OwyGK3POG9oEdhCW62MS3xlPJevOyXZk=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=WMqzqWsADrzVIGTcIzsn1xbhFLv/U/GcUuNyjys6WtBUfuaV6BP8NVk8ObSE9HVa4wq3CFtCijT+Gt7oGbb5GdBPP1apQkuXLQUPC0v506k5mwXoamJZwYtATU2eq5tuSkFj/tyRlYyM+mlKth3vlNWobmGNkcCBv6XwHIhEM0U= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=C66UwGc5; arc=fail smtp.client-ip=40.92.20.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fnZttv+VyN0JQEEdHobqk42+nvCJreIe6TQqwOkYT5edd8ie2ue8VKimI9eWn9EomgBpFK4/ZF7mSUpS6uYFcFbWAcNNunp5tl1foiT3Ov2J5r4zo1OBPH19iHSua5coQ2wXRd/ZomITRU48bQf8zEtK8YNYz2+gvnil9GLpc1I3Piw7zKhtepPLM1j93fEDAittMHjU/DL3v204gQiuPB+DICyfs6QXIijdRHGKfbGh2VLPjz6laW4Dtj2Czcn2fSNP/u+uF5tqgeEcibpS/3au80F9DLPpL3ggTstXa5X0/CJx0ry4cj7Sy8PAtaRDiMmLfEgFSc6SVc87+9Qf8w== 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=rzbUPzLMhB6olHj0Ld8L+Qki9ewrD/KTqF0szTsIRxk=; b=MKhhJKbKQnW1SyLsP4v68odcQWaSzQqo4LCJavyus3lRxYVqeMFlZC+9ilT/hNuVWRHz69efEjZVXm/y2oz8MfaC30+zOy7Uh3M2Kn4VcA4jJrKa1zx46/HEKifMgZDUXkS8vKAioqoUVvE4kU5dgsUWe23z2lEbPlWcZGeFRxzsW2pCCuRDPDVhN/raF3sttq7zq2XuYhqy5cnPvH3HPcxdklzNHDCux0SL1dmaMPG15ysrNimbg4IKta2gsNlmhYvw9GdWh1vHm738pXq5eb+aZgulf0ypnJozM2WVJjWlsZUB/bD2XTDL4F/pbJ+rBCqJL6q5s2xpwcWeAC2yWQ== 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=rzbUPzLMhB6olHj0Ld8L+Qki9ewrD/KTqF0szTsIRxk=; b=C66UwGc5eA08C0jRF1izFN/g931gAQbFjXgesh8XkVUsDPiqd9gxjqCTOb6pB3iC6rS7Pm2rb1/LQ1jaxRNBtfsmOLKlQjXIAdu2uQpq5HYvVxmzsVVKY1qJ67EcroOVU8LUKl5wbU4h4Sp/LbCvbmh5UjcAuNBhOJq+fq3rhwwBDhyaMrC0hLkCzCLznzFJ4tUjmC2U1vALAVxmzlLJOpgiakWH2/AYnbFCdIC7G7c2mgCiFV8rFjuSA+eouL9vBI4PHLD7NlwM+6/bO8X5Rp+Hgcpzh880T2umZzb7yJLdWUfWJ6+tpEMbIhTuRigEeF9/JSMgu6/JxdO/XeD0Sg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CH3PR20MB7542.namprd20.prod.outlook.com (2603:10b6:610:1e5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 11 Apr 2024 00:44:39 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.042; Thu, 11 Apr 2024 00:44:39 +0000 From: Inochi Amaoto To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Guo Ren , Drew Fustini Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: dts: sophgo: add reserved memory node for CV1800B Date: Thu, 11 Apr 2024 08:45:00 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [i8c0JPUcoOpE9Dee97rt4DyhI1LY/h8X/z38rQYUXVM=] X-ClientProxiedBy: SG2P153CA0045.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::14) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240411004501.120425-1-inochiama@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@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_|CH3PR20MB7542:EE_ X-MS-Office365-Filtering-Correlation-Id: f0bd24e2-71ad-4c6b-0f14-08dc59c09194 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VhQCi5oMx6KuOKZNhkqI9V5+NxFqSsMS3TVI3HszTOBXH7P31xaHmLO+vLIcqTq/p5EKkNsHgFoufNuz+vCbF7+EuIeP9o/wfDm1DTu/7nTfCXpzHPjCSnlUw73Zmvgv0ENkp8bFxQYoDuX151fTUJDoK6uGpdilba8Kwkkpv4DTyife6TjCP7z65pfsrZFXiKI1sBw+2BRVnO9Iy4d7b/TFunUXypfE1hVbFLmGqP99tvFldxmZY1HweBaW48VH7ML0gXDL0kWI6aIWJNbyQFkOFtueiinB3lKCPfcqV5ePoXreT0njmsNcYclBQQNXvn/RI/gnw9Aov0xR6jeha0U9pdFVFH2JfGj9wBx6TQ7VAUtFAPg2AZRn/WjkpQB0u0/jFpsAdOESokh8BHfI/9FuCqS7ISX9Ogm4cQ4PBsJu2cZDCPHnq1kroCGkLgAHBxXTjDmQkw1maTUi0CmNOxk9gs8vOmuL31SDbYjJs1ZP+4e6hVBeQrn4bg1QM4KMU5IgZ0jQehPMNKPflDOb9STdEMTcV62rLT+lPpmva516v0rSIRlFcsqV4g6QM32s54cJXPpdKEhte3jM9yQ8eWMDe/kQQCDw5jNg81JtPfY= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?muIEf8Iq3REblYipQ8V553YIkty3xRn4BjTlmSdshVC+LlbMS2cgGpd1p79N?= =?us-ascii?Q?/EOWuc2F0/TmRyPKpwVWbYSttLTXhLFFr8xcQAJbp4L1DnqKG2ke8gzBEeXS?= =?us-ascii?Q?4D2h/sFBuUcG+UJKpNuOs2N7jDZURhigTOhk57bKf8HFyrF7hVl4DwJwKQYk?= =?us-ascii?Q?OKLCXmcBqw3UZ/7hzHYAui0h8bRRX9Jp7VoxHie1PACICF6vaRxObwCpDORw?= =?us-ascii?Q?VJaVWVC5KCdrPC14azOMr/cApVbUnvUdh/3T6ddRtDd0qhY/MY4BSD9LDsxk?= =?us-ascii?Q?SzovqmeE4evuO3F/fAHanr8gJqEZgNDVFdBO1RgIW4Vl07rIAmcse1uSDKW9?= =?us-ascii?Q?B1r2fIVoOoUuOkS/HbTzDSR/DDA/+dfGiPryvvuGKBOhnp1t37489kRljoWl?= =?us-ascii?Q?nG8VhgwxQZ5l6p5sQ/igLuZESSGm0M1gF2oDAwB4klGwRJ8dd342rkVO1hcu?= =?us-ascii?Q?36rSTyBbG9jMsUohPEF6dp9UsndiL89ZWFdSsUjv3Okn4U0sZPlEqkTGR2nT?= =?us-ascii?Q?NLVax9HeGYPPAKEgv3/+8ETz19mvts7InWdUkQuAnBQWtrK/vm8vJFggrEPE?= =?us-ascii?Q?yA4Uwlpa4sGcsMXBAoVm1ATbL/BCMxv2qSmgkzLyuotWdspd7jnIInyXV+sl?= =?us-ascii?Q?R4whovAuECfJ0Z3XxG+jTVAfIeAAaMRlrDhrKaA9ruVIe3MjR2HGFRtyqRCS?= =?us-ascii?Q?uxGGWt6iEFCGfab43HR3pzM1BJ1GDGTVyHchgc1RDyFWk8qRXjeTeKRmdZr5?= =?us-ascii?Q?5/uQyQst4XZzmDqvr0dz1dZKmAOprd9WBte2hq3XDJpdYA4kLmQYlUzud901?= =?us-ascii?Q?CNeO+bVv/VYQooCiyv4uY6ivqVISQ8p4ptB+dbLQXrSgmq5yh02z772Mx2Ub?= =?us-ascii?Q?AXHOEiylZD3EHD1KnCFjQsNb1EzIW0bHoFZeWzNWbMkM+eDQIh4Tzbh0CYeq?= =?us-ascii?Q?OY8vSjRfg8Ht6+IUDH5gFygzk/FvloluUWgz1cz63XcndvH3pxJ3BXQwV0/I?= =?us-ascii?Q?zxJJbMQDhF1RLSSAt7LNZf47yfkN8KCoItDNGywYVjH1CDXi7xeiFEzACHC6?= =?us-ascii?Q?LsSRT18nb0oWYflvJgFaMQ6sq/+5615WlGpdk/JGfSRrLfYbqqI+iAEBz3bz?= =?us-ascii?Q?3M7YZrTm21/cn/t87v+tbG/T82iVC5f7SvM5wa180nnGjx+ogWH4lJY//ytz?= =?us-ascii?Q?sMuNS+PfLPHqkV026Rr91rc1/0TH3sbqWN0BxwDsLU0rQ76WGlq2PF34kNYW?= =?us-ascii?Q?ICTVC+zeUjpFAPmAD5JD?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0bd24e2-71ad-4c6b-0f14-08dc59c09194 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 00:44:39.2521 (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: CH3PR20MB7542 The original dts of CV1800B has a weird memory length as it contains reserved memory for coprocessor. Make this area a separate node so it can get the real memory length. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts | 12 +++++++++--- arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts index 3af9e34b3bc7..0b9128513357 100644 --- a/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts +++ b/arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts @@ -23,9 +23,15 @@ chosen { stdout-path = "serial0:115200n8"; }; - memory@80000000 { - device_type = "memory"; - reg = <0x80000000 0x3f40000>; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + coprocessor_rtos: region@83f40000 { + reg = <0x83f40000 0xc0000>; + no-map; + }; }; }; diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi index 165e9e320a8c..17ce8aa415a8 100644 --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi @@ -7,6 +7,11 @@ / { compatible = "sophgo,cv1800b"; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x4000000>; + }; }; &plic { -- 2.44.0