Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp633589lqb; Fri, 15 Mar 2024 01:49:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/av0oyeaj6XuSNtsZOB3lC15vhifhwOFB7o7upPTb3nsupQadEYvyOW8IovOMdxy6Yw9uObXqFpGhuQKMK0OSOkEKstSUzM3VwUg9og== X-Google-Smtp-Source: AGHT+IGi3fxRpXQpSPTw13bQHeXVE4F9REf7YhwrJVkyVUhz4NssYmJiE+BEHkEAVBL/uOXrBJ9J X-Received: by 2002:a2e:b8c9:0:b0:2d2:a3c4:53 with SMTP id s9-20020a2eb8c9000000b002d2a3c40053mr3574069ljp.23.1710492545355; Fri, 15 Mar 2024 01:49:05 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fi12-20020a056402550c00b00567e8ca1b0csi1637934edb.631.2024.03.15.01.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 01:49:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=GxFR8uRq; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-104177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E71E01F233B4 for ; Fri, 15 Mar 2024 08:49:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D76311758F; Fri, 15 Mar 2024 08:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amlogic.com header.i=@amlogic.com header.b="GxFR8uRq" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) (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 2D45E17559; Fri, 15 Mar 2024 08:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.107 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710492535; cv=fail; b=P/FMiUff551arZU7i7jeJFXHEJSoGJmCx8AEobnlYzK4TKYCHs0A1mK37rHLJ7NOGp9g1OJN/OiqrAldYruDKdJD96fp9T2fwNPBI7Q20iGkvkoIJT8Kzq9r8aRSwCZpQHjzMLUHuaEqQ2w4VD5EGz3+J0ZT+h/ON/4lUL/ba4E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710492535; c=relaxed/simple; bh=MPbI8qfUrtJIPCgGA/Vu26CAx2TRUhH29qE1w79euVU=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=KpMlNsPNhL0m7CpvdvUwl21PXGqioUt5agsfuBS4X6UnwXKH79BmtXwdrsmJWPwVtcKzMxTOhSuk6l3DFY7QZ9khuh6aLNZxUTML+e+T05+tnAHzB1fJLZ3F55D8GVdOHy/2sR9cUKYcgbrnQN/zQsQ2MQfPHTJIQGDGhvVN8qA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; dkim=pass (2048-bit key) header.d=amlogic.com header.i=@amlogic.com header.b=GxFR8uRq; arc=fail smtp.client-ip=40.107.117.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iU6BM1cPk4Ugk9nuK7dc4hE6ZzrmMr3xRp6iEFUWBSmhp0ApXf8kTzzKjALx8K0pqPXtVJP9Gv8aGpA8K7RJz9nprq8tRRwv3NMpW03ZMQUxay49I6dXJpu/utZewHWOVB6T0IloPmQVtmWv59eVWrzWtky2qCThzWMTWndHiznTx65Oh7MehYa1gYVBDDdny1pdDxYGlnYW8DVsqNnapupBcR/JggVJYAVqeeLtb+Yey6zi+afsyUx1giHBZZ1QAC1VlBFL3me5QejgzxsYmrF1UWqdQ+r5eWcHEJNXO5YbvPP0vzsnjAY44kLJd4tzZg8pb+nt6U2Tt3S6nDRl/g== 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=oLZHAHdsGpjOGZdgTPiRO2NMM0AoHmv8EirUrXbdH10=; b=fwOca8RByK2I7Mt6uYZsksW6ZgWhkcu5wagIt9p+ERGARUAeAlhAknge7GekiOF0NUhXwzfRWywW5Dkop3kCXuJILqgG2MrUHY/9WNiQv7ceKBcbA3KbttQO/HZXmChpGj/J8ewWgcM7VY+R4ix4iHQeipmzEBTGdK7qYmbvrUkws6X7zfC1EJdYA+XC7MF0pG2cXmRBPoC5VaONVkonBsyECt9lXHPPGaVvCSml9ni6XJoMQP+BEFKXKn/tfLWMxQ2e6N295f1UG7IU+UCdT/n4RUVLYYFdfDq5V6Yi4wgjUwDGil1J0rVDUOopEE77NFQHjj8ru030pJz7rJ5RcQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amlogic.com; dmarc=pass action=none header.from=amlogic.com; dkim=pass header.d=amlogic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amlogic.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oLZHAHdsGpjOGZdgTPiRO2NMM0AoHmv8EirUrXbdH10=; b=GxFR8uRqAAMnD61MtPjWBeqGSSomjpPI5vsuIR6tpsQNVMalFJiNQm3oWeEemKCbT7ux90pEnTv+no5pol/jgnBmSo0EGIJzooVhwdab0wSRP6hcOxOJyc3dX3+zHhDsSL6MCU7jM4Rl/oMnFejdHnHdTvAsJBVmOwpZtrh2Lhk3u2AonAgWLJkdIRZWwQwUp8P1dYLmnvjNYAcTTG45x0lcGVosXNQYWbI+edu6eGwNUr2eQG5oos0agZxo+4hIxd0jaGrnGAqtAeSKgYsn5Pyf6Cd1akCfb/PnPrp+gZe/Z2x57tK9yw107lan3M4GQdLVMCH/vFdhRgRKoUVo3Q== Received: from TYZPR03MB6896.apcprd03.prod.outlook.com (2603:1096:400:289::14) by TYZPR03MB8657.apcprd03.prod.outlook.com (2603:1096:405:b4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 08:48:50 +0000 Received: from TYZPR03MB6896.apcprd03.prod.outlook.com ([fe80::5198:1b2f:8889:17b]) by TYZPR03MB6896.apcprd03.prod.outlook.com ([fe80::5198:1b2f:8889:17b%4]) with mapi id 15.20.7362.035; Fri, 15 Mar 2024 08:48:50 +0000 Message-ID: Date: Fri, 15 Mar 2024 16:48:40 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/4] arm64: dts: add support for A4 based Amlogic BA400 Content-Language: en-US To: Jerome Brunet Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Kevin Hilman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org References: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> <20240312-basic_dt-v1-3-7f11df3a0896@amlogic.com> <1jsf0vephv.fsf@starbuckisacylon.baylibre.com> <9a38fd52-5eea-468d-bd7c-29a505503268@amlogic.com> <1jcyrxi2l0.fsf@starbuckisacylon.baylibre.com> From: Xianwei Zhao In-Reply-To: <1jcyrxi2l0.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR04CA0018.apcprd04.prod.outlook.com (2603:1096:4:197::9) To TYZPR03MB6896.apcprd03.prod.outlook.com (2603:1096:400:289::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB6896:EE_|TYZPR03MB8657:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yRjru0q2pcrRPApF4LZip/MOM+B3Fh+CXZJbtTn0K5Vso08ddrpAMVEnrmRd2yNvvUYmY/tsROPUQ2wdVpJMgHNHX+0n56rA47/i4TtUSI2fAsdRtPBfuCfVRTc1U8i8FN8F3gFZZMdDXmjXxDpFIx4GFmnlf+d2l7HSl1lWv8TKFlV0fIrGH8buHj1+xCV1mKhLWB6F+kgfd664HWQo7RyMntcO/aFnUYLY6YXbD//Dx6k4sqqz40W65elbsyLFwk0JGpGleKMZ3ZConJOJQiUl+x6PMmGMEIhJEjdJLIbE1MrU2LCL8E4iKVbw2NT5aVXh69MAdvFJjNqVx4NTnmxJBFVRjA9SSJ0jhQQ8pUYOXeYuDs9nwe3LC7CID782FUpmANLFkED/XPjTjEdW/78TTAMzxlcMn+bm6rldyHJ8cfh3pTdYd09SM9QXmnfExafh15vweV/t6Fx7PJm7Oz35IfqWv8n09mosFgxJ4HolV7FuJ78jG4CI9f4ZVM3FGIEJQaCt9f8zD8vBtrhwQhdPqEsVLv4ZKgKzXjJavuaBjHGu1qVwdu1PYg1m+5GaO89L5mw3qw1Hxpxi0SzJP0IcmSMn/ZR+zP8rNleatpOU7j8qAYgZk/MarZQYv93ACkl0V9FRs5gKB0FCZcQgwhLjaEKgXS1mXvvWide8x/g= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB6896.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VUlyeHpoN2ZHb2dSK3hoblBuS00wM2wweG5wMVRab25MTFhUVEwxdUJDZ2ha?= =?utf-8?B?SkV1c1FJK3VmUDRJc2N3ZEdHUVZtN0dydUQ4cG5ISjI4UlJWMGtKVitTVDN1?= =?utf-8?B?VzRsREJ3eVBRRTJFR2NnVXZ6dDEvVllZY3BsWWxYWlBQdTdNM21uTDF6Tmh4?= =?utf-8?B?ZFNIZFV6VmFsdW8reFY1VUE2Z1JmeXAzdFArdnVzTjFZOHlDK1lnMXNCVm9z?= =?utf-8?B?Y3pRM1lncWNVMS9ObXNGa0kxb3l3NlMzak5OekRTUThMbHlhbHpnTE82czU3?= =?utf-8?B?TlgvdExLdnp3S2tGN2cyT25mUmtoZ0VQWTdBYmdrekZ1TUd3S282WFl2NnJ2?= =?utf-8?B?cFpNNzZWZjBMelR1TWV2Y3R0bTB1V1dHeWdEeTFnU0QwckIyaUZtUkhsaDUz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MS-Exchange-CrossTenant-Network-Message-Id: 64732050-5d10-443a-8621-08dc44ccbc67 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB6896.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 08:48:50.6375 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0df2add9-25ca-4b3a-acb4-c99ddf0b1114 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kuazDdj11MSbgVrd0RwYqEZgAJA8Jj5FW5p13Mbvj/xP1yz0rWrYBYKf9J44SGWj4cM9/sdwEoRDI+8RsPJk2BBBGDHoT80GKCOzZS4R548= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR03MB8657 Hi Jerome, Thanks for your reply. On 2024/3/14 17:26, Jerome Brunet wrote: > [ EXTERNAL EMAIL ] > > On Thu 14 Mar 2024 at 16:08, Xianwei Zhao wrote: > >>>> + >>>> +#include "amlogic-a4.dtsi" >>> Could you describe how the a4 and a5 differs from each other ? >>> The description given in the commit description is the same. >>> Beside the a53 vs a55, I'm not seeing much of a difference. >>> Admittedly, there is not much yet but I wonder if a4 and a5 should have >>> a common dtsi. >>> >> They are mostly the same, A5 include HiFi-DSP and NPU, but A4 is not. And >> some peripheral modules are different, such as SPI and Ehernet phy. >> >> I would like to wait for the follow-on chips to come out before considering >> a merger with common dtsi file. >> > > No, Please do it now. There is no reason for the community to review the > same thing twice if the SoCs are "mostly the same". > OK, I will do it. >>>> + >>>> +/ { >>>> + model = "Amlogic A113L2 ba400 Development Board"; >>>> + compatible = "amlogic,ba400","amlogic,a4"; >>>> + interrupt-parent = <&gic>; >>>> + #address-cells = <2>; >>>> + #size-cells = <2>; >>>> + >>>> + aliases { >>>> + serial0 = &uart_b; >>>> + }; >>>> + >>>> + memory@0 { >>>> + device_type = "memory"; >>>> + reg = <0x0 0x0 0x0 0x40000000>; >>>> + }; >>>> + >>>> + reserved-memory { >>>> + #address-cells = <2>; >>>> + #size-cells = <2>; >>>> + ranges; >>>> + >>>> + /* 52 MiB reserved for ARM Trusted Firmware */ >>> That's a lot of memory to blindly reserve. >>> Any chance we can stop doing that and have u-boot amend reserved memory >>> zone based on the actual needs of the device ? >> Yes. U-boot will change size of reserved memory base on actual usage. > > Then u-boot should add (not change) the memory if necessary. > Please drop this. > Amlogic's u-boot will change the reserved memory size, size is not an issue. But Some one use u-boot himself not Amlogic's, If here drop this, there is a strange problem when it runs. >>> >>>> + secmon_reserved:linux,secmon { >>>> + compatible = "shared-dma-pool"; >>>> + no-map; >>>> + alignment = <0x0 0x400000>; >>>> + reg = <0x0 0x05000000 0x0 0x3400000>; >>>> + }; >>>> + }; >>>> +}; >>>> + >