Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20357647rwd; Thu, 29 Jun 2023 00:53:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4r/I3X+zPIsWFlRm4xGrBjoQfr6WkoXHjNJFbFt6RVHVWXjUHYG7P6n668Vp/w+2OFTfg6 X-Received: by 2002:a05:6a20:8f06:b0:122:a808:dbbe with SMTP id b6-20020a056a208f0600b00122a808dbbemr36061488pzk.29.1688025236273; Thu, 29 Jun 2023 00:53:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688025236; cv=pass; d=google.com; s=arc-20160816; b=przd58GuaQoPyM+PdFwZEdBc+YJAbQE+t30ANjU4U7E/LivCiIFblTJ4MiElBVFZwn PE2JwJDoSX5tZQOnkJZ5bQ5kKkMegwCfYHYP6GcwSQD8Og+NhX5p56qU5zLA5dHWReZq CJLtG2/F5s9odoEKVFMecA2nUpE71f0oxe5jQeytahMAhcz5ZuqYi37vNFD8i/8IWvNj 0Q4ZbVKxPc0ZpAfBq7RrF8UdlwsPZelJdNCHes5YJCIEfY0OrmprSwjApdQNlsrmKqIk MBufnbDGZMhsPtq31BZq7NoNxa1Jf4J50BNl9spJMl/A42ruH3HIPqAkng3IfutLzsAf AnYA== 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:content-language:subject :user-agent:date:message-id:dkim-signature; bh=hUc8AlZQJWuCcK9tWQdI3hEIDrmwuMhGyYmDGN9V9QQ=; fh=m3IZC+FZ9NVlb7LQSKVDfmf9ePKzpIHtBVy3hDUFOPY=; b=XrlhSX6a79Ep9kG/qAy9iUIgzarMpZY4oyvDIIlRbCeqkTN3/mmnGDfJ3S6gkAT/sP 4fIepZ4XcPhtvVy/27GDIBSstn+3PFo57BtHG1hQRsnPfH2w7cFSDuZBkXocA+9oRrRs mKDnJpbRpowcY+U3kc3Ol75Le6ySMQZFbPVzPdZLcWZmTIoNAnwKm7TMbPpuDscA01gn 9mZ/nIrQ892I6hGmHJxxQGkaorG7ATf17IsYYn7yaPCLOMT0M565cp88FJ115WWn0pdR IZcxj8VXUogfGTKahc+YVOoMvbHMIhhXpeZ1alKnh7rDg9fZQAC9pkFFBU77RLncocJN lYYg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=IxEbPljj; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 144-20020a630296000000b0055ab9bf1e3csi8565477pgc.738.2023.06.29.00.53.44; Thu, 29 Jun 2023 00:53:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=IxEbPljj; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232348AbjF2Hiq (ORCPT + 99 others); Thu, 29 Jun 2023 03:38:46 -0400 Received: from mail-sgaapc01on2124.outbound.protection.outlook.com ([40.107.215.124]:38848 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232403AbjF2HhH (ORCPT ); Thu, 29 Jun 2023 03:37:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qa9fscREPK8W3I0ONeGc/Xcc0FjFUp7Pt5NylH1eD5FFfvHCHzKeVcIQiYH2QdrP+CPs7gdG/dhEj6YhIRzIjQuxMZPet7JqyXJWOBG6xPJwrE4pxtCp6dgwEotzGMUuxRQInveZopz6euaG63D79R2nh2bt7uw1B2kNjByj5iHHhfhMPUsakGDl8D9zUAVECG+haKwEeN17jBtUrCaM2Xry3xm+DnvUtNP4JtfWF1M+m0IczfdXKjtqMZHvTF1K0XE1Q2JoX5fRrrR4KmB4CqPlL0L+c3nQa6pjkz5cECiupwPbl0c8HwWvZx9+PpNWLZod4HkdZRcIG2+iS8Nlkg== 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=hUc8AlZQJWuCcK9tWQdI3hEIDrmwuMhGyYmDGN9V9QQ=; b=DJ+phGvJWmdW/3iTgaunkvvl6BaWrJ3cWsGD7KMbLKd+uEfTaxsPp4NxyjxH282+n+6om4owPC4O75gI+5NBk36JeEcS2eVagRoQRq+XQuj1uOISQ0zmQUe2ExgQC8lwiqOuBblVvWWH52mwUl9+lWc0Ly9DZnDmlFoXAOGyxwCt1rmVdMCRXgJ7eYwOaWyTLpDFZ/YWT6lF7WB4B/qWoh5DLOcRkYemHPtp1T5L7kUTgcBKqaaL0u5I9UJqp3ksDlPYwPrtLto/8QRF1KQniR5XdfTWHn2X2VBJaHTD5c7xHnatp4jTAS4AecAL3hcGntbSdf2MYkmG2LD0QZOW5Q== 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=hUc8AlZQJWuCcK9tWQdI3hEIDrmwuMhGyYmDGN9V9QQ=; b=IxEbPljj36NQW1RO7QN2LZZnGBu9+6/cSFS1nZoATqLW9CJLz6D+TGiG7DqK4Gko/Y8dWq5OAIYU+YpSwfoNdr3FYxmnRlyl3+0aINMnLj+IUV0PRTJJKv8lb35WlvJ9VGso3mccTfC+DuO8h6U0YDRvISapq0GTjEuGMgv9SPSs5flb4ktWcXm0sINrOSzE+uXnIxnX5nsXcirss1gkaLgIrJ9hlfmcE5RTcmAKBSKTM+EXE34KhrLrqXcenDnMt9F7xth2JEsfhLtDihVmFs5WtMHZClwnEnUZKugRbJE8BATRXigtvSQwVIjultXPdDeGqBPIXWwtFST7RQhpYw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amlogic.com; Received: from TYZPR03MB6896.apcprd03.prod.outlook.com (2603:1096:400:289::14) by PSAPR03MB5384.apcprd03.prod.outlook.com (2603:1096:301:48::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Thu, 29 Jun 2023 07:36:09 +0000 Received: from TYZPR03MB6896.apcprd03.prod.outlook.com ([fe80::e659:543b:2ac9:8fd7]) by TYZPR03MB6896.apcprd03.prod.outlook.com ([fe80::e659:543b:2ac9:8fd7%3]) with mapi id 15.20.6521.026; Thu, 29 Jun 2023 07:36:08 +0000 Message-ID: <0dd16ca1-9377-30e4-3f5f-3ce96d9db1c6@amlogic.com> Date: Thu, 29 Jun 2023 15:36:03 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v6 4/4] arm64: dts: amlogic-t7-a311d2-khadas-vim4: add initial device-tree Content-Language: en-US To: tanure@linux.com Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20230627091007.190958-1-tanure@linux.com> <20230627091007.190958-5-tanure@linux.com> From: Xianwei Zhao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: TYCP301CA0021.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:381::18) To TYZPR03MB6896.apcprd03.prod.outlook.com (2603:1096:400:289::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB6896:EE_|PSAPR03MB5384:EE_ X-MS-Office365-Filtering-Correlation-Id: fd0b43dd-e92e-429f-a96a-08db78738100 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7rfTeVdkIrdWH04JAT+4XM0Np8CZkv59drF/r5kYCC4RJmHDzWc6N5TWdxI7D9+qUoU0NjZdE7TUx2AV/2++9dI3n7NiAb/bRHSyzvMAhcKhG3fqvn/fsRbuyu++RcVuNtCKbiZ9Rsi1PUvEF0Rin21AphbtCoqY0FmnG3J/O+p7dBcjZTOa5kIiXqbGcPcSN6Q9a/xXCkJjOseLQkJXxWDZoPJ+rM4tWBPY6xKMRAUpzxnIb6AnRacSklPGISrz4m7D+Cx3ZWkWAk0TInWtQB9nlOarAZTO0BY8i2YuKPyzylwFo4LhxSF1I9+hUHmYSjwWTGFNakP2n0xBPSHBgKEnQQYLmHV+7tnkUtvZ91lWqQ5K7Yc32jJm1r54RBRudWVYOxo0Ro3Cq7O0KWHaFZ/tLTmhSgvDJL/3RloMT5efJb4kAPBHBf4gMfrtMqN8+XswCGpGj3JSrevcHcKldCR0X0qmnW6/i/xIDbSm+oaVvLQ1ORySYWKKCGfbJt/vUxI8r7f3r28TouGZQiSn2RNpg/5XQkYOu+JTQF23vOYmm3WUVyccIQl3qpN0TU73jLhnpB6S98dh/IFjRKB4+CjN5MhMywtFydAuBg6m3mwIwaTYiGIRbzJSGCdxgX0NPVtSIKISPzMqpjxLn4050/ANL5vcdJk9GGAVyGJ+z51QyoV1uIMjvdhYJC3rxq3OwecCiK9lI3g5ZCnS3Kx2/Q== 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:(13230028)(4636009)(366004)(39850400004)(396003)(376002)(136003)(346002)(451199021)(31686004)(26005)(53546011)(36756003)(6916009)(44832011)(5660300002)(7416002)(8936002)(66946007)(66556008)(4326008)(66476007)(41300700001)(86362001)(31696002)(316002)(38100700002)(8676002)(6486002)(186003)(478600001)(6506007)(6512007)(54906003)(2906002)(83380400001)(6666004)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U2F4akcweHphcnV5b1FCaE84TlNoS0JFOVFNWnl1OWthSjZKTzg3TmpSenpQ?= =?utf-8?B?NzByeG13STZDZ1FWamNrYndENXZpcVM2R1hhK29XV09MN0x5SFM1c2tMQlRY?= =?utf-8?B?em1ZVENBMkdjTVJyMGFkckw3b3prZi9leFk0UTBtTlY4ZURITCtzU1Freitk?= =?utf-8?B?TS9pRFFTM2trOGVoSnR6QnpxR1pVUlMrTEMzNDA0d1J0YVlsQTZPWGQ1bG1w?= =?utf-8?B?WDl6RlphSE04c25NcHU4ZjFqQnJDM0E2bW9RSnpmOExaRmZvZFBYMXNONzBM?= =?utf-8?B?cXcxREtjUnJLQ05IL0cxdVRmV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iZXdQ?= =?utf-8?B?THdQL0Z4dlptSWVMZVVXQXZjMGhVbE8zakVmWU5HMzlnNUxRRGFwL3RYVjE2?= =?utf-8?B?MUE9PQ==?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd0b43dd-e92e-429f-a96a-08db78738100 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB6896.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 07:36:08.6605 (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: BCFcY7S08kbE5/kHVxmkv3DXYJTW5bQ7HWAzizQE4dkmQrJ1/Hg7VDfWg0wD/MDu7aDp/Kcgyn/+0VGU1xjvGSGXDlyyPWHP3xAMb/j4aXo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR03MB5384 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/29 15:10, Lucas Tanure wrote: > [ EXTERNAL EMAIL ] > > On Tue, Jun 27, 2023 at 10:21 AM Xianwei Zhao wrote: >> >> >> >> On 2023/6/27 17:10, Lucas Tanure wrote: >>> [ EXTERNAL EMAIL ] >>> >>> The Khadas VIM4 uses the Amlogic A311D2 SoC, based on the Amlogic T7 SoC >>> family, on a board with the same form factor as the VIM3 models. >>> >>> - 8GB LPDDR4X 2016MHz >>> - 32GB eMMC 5.1 storage >>> - 32MB SPI flash >>> - 10/100/1000 Base-T Ethernet >>> - AP6275S Wireless (802.11 a/b/g/n/ac/ax, BT5.1) >>> - HDMI 2.1 video >>> - HDMI Input >>> - 1x USB 2.0 + 1x USB 3.0 ports >>> - 1x USB-C (power) with USB 2.0 OTG >>> - 3x LED's (1x red, 1x blue, 1x white) >>> - 3x buttons (power, function, reset) >>> - M2 socket with PCIe, USB, ADC & I2C >>> - 40pin GPIO Header >>> - 1x micro SD card slot >>> >>> Signed-off-by: Lucas Tanure >>> --- >>> arch/arm64/boot/dts/amlogic/Makefile | 1 + >>> .../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 52 ++++++ >>> arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 158 ++++++++++++++++++ >>> 3 files changed, 211 insertions(+) >>> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts >>> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi >>> >>> diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile >>> index cd1c5b04890a..166fec1e4229 100644 >>> --- a/arch/arm64/boot/dts/amlogic/Makefile >>> +++ b/arch/arm64/boot/dts/amlogic/Makefile >>> @@ -1,4 +1,5 @@ >>> # SPDX-License-Identifier: GPL-2.0 >>> +dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-khadas-vim4.dtb >>> dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb >>> dtb-$(CONFIG_ARCH_MESON) += meson-axg-jethome-jethub-j100.dtb >>> dtb-$(CONFIG_ARCH_MESON) += meson-axg-jethome-jethub-j110-rev-2.dtb >>> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts >>> new file mode 100644 >>> index 000000000000..5d7fb86a9738 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts >>> @@ -0,0 +1,52 @@ >>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >>> +/* >>> + * Copyright (c) 2022 Wesion, Inc. All rights reserved. >>> + */ >>> + >>> +/dts-v1/; >>> + >>> +#include "amlogic-t7.dtsi" >>> + >>> +/ { >>> + model = "Khadas vim4"; >>> + compatible = "khadas,vim4", "amlogic,a311d2", "amlogic,t7"; >>> + >>> + aliases { >>> + serial0 = &uart_A; >>> + }; >>> + >>> + memory@0 { >>> + device_type = "memory"; >>> + reg = <0x0 0x0 0x2 0x0>; /* 8 GB */ >>> + }; >>> + >>> + reserved-memory { >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + ranges; >>> + >>> + /* 3 MiB reserved for ARM Trusted Firmware (BL31) */ >>> + secmon_reserved: secmon@5000000 { >>> + reg = <0x0 0x05000000 0x0 0x300000>; >>> + no-map; >>> + }; >>> + >>> + /* 32 MiB reserved for ARM Trusted Firmware (BL32) */ >>> + secmon_reserved_bl32: secmon@5300000 { >>> + reg = <0x0 0x05300000 0x0 0x2000000>; >>> + no-map; >>> + }; >>> + }; >>> + >>> + xtal: xtal-clk { >>> + compatible = "fixed-clock"; >>> + clock-frequency = <24000000>; >>> + clock-output-names = "xtal"; >>> + #clock-cells = <0>; >>> + }; >>> + >>> +}; >>> + >>> +&uart_A { >>> + status = "okay"; >>> +}; >>> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi >>> new file mode 100644 >>> index 000000000000..6f3971b4df99 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi >>> @@ -0,0 +1,158 @@ >>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >>> +/* >>> + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. >>> + */ >>> + >>> +#include >>> + >>> +/ { >>> + interrupt-parent = <&gic>; >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + >>> + cpus { >>> + #address-cells = <0x2>; >>> + #size-cells = <0x0>; >>> + >>> + cpu-map { >>> + cluster0 { >>> + core0 { >>> + cpu = <&cpu100>; >>> + }; >>> + core1 { >>> + cpu = <&cpu101>; >>> + }; >>> + core2 { >>> + cpu = <&cpu102>; >>> + }; >>> + core3 { >>> + cpu = <&cpu103>; >>> + }; >>> + }; >>> + >>> + cluster1 { >>> + core0 { >>> + cpu = <&cpu0>; >>> + }; >>> + core1 { >>> + cpu = <&cpu1>; >>> + }; >>> + core2 { >>> + cpu = <&cpu2>; >>> + }; >>> + core3 { >>> + cpu = <&cpu3>; >>> + }; >>> + }; >>> + }; >>> + >>> + cpu100: cpu@100 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x0 0x100>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu101: cpu@101{ >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x0 0x101>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu102: cpu@102 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x0 0x102>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu103: cpu@103 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x0 0x103>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu0: cpu@0 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a73"; >>> + reg = <0x0 0x0>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu1: cpu@1 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a73"; >>> + reg = <0x0 0x1>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu2: cpu@2 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a73"; >>> + reg = <0x0 0x2>; >>> + enable-method = "psci"; >>> + }; >>> + >>> + cpu3: cpu@3 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a73"; >>> + reg = <0x0 0x3>; >>> + enable-method = "psci"; >>> + }; >>> + }; >>> + >>> + timer { >>> + compatible = "arm,armv8-timer"; >>> + interrupts = , >>> + , >>> + , >>> + ; >>> + }; >> cpu number is 8, not 4, need use GIC_CPU_MASK_SIMPLE(8) >>> + >>> + psci { >>> + compatible = "arm,psci-1.0"; >>> + method = "smc"; >>> + }; >>> + >>> + sm: secure-monitor { >>> + compatible = "amlogic,meson-gxbb-sm"; >>> + }; >>> + >>> + soc { >>> + compatible = "simple-bus"; >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + ranges; >>> + >>> + gic: interrupt-controller@fff01000 { >>> + compatible = "arm,gic-400"; >>> + #interrupt-cells = <3>; >>> + #address-cells = <0>; >>> + interrupt-controller; >>> + reg = <0x0 0xfff01000 0 0x1000>, >>> + <0x0 0xfff02000 0 0x0100>; >>> + interrupts = ; >> cpu number is 8, not 4, need use GIC_CPU_MASK_SIMPLE(8) > OK > >>> + }; >>> + >>> + apb4: bus@fe000000 { >>> + compatible = "simple-bus"; >>> + reg = <0x0 0xfe000000 0x0 0x480000>; >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; >>> + >>> + uart_A: serial@78000 { >> use lowercase, "uart_a" > > OK >>> + compatible = "amlogic,t7-uart", >>> + "amlogic,meson-s4-uart"; >>> + reg = <0x0 0x78000 0x0 0x18>; >>> + interrupts = ; >>> + status = "disabled"; >>> + clocks = <&xtal>, <&xtal>, <&xtal> >> "xtal" why defined in amlogic-t7-a311d2-khadas-vim4.dts files > > The 24MHz clock is a crystal in VIm4 schematic, so its something the > board did to provide that clock. > Other boards using a311d2 could provide that clock in a different way. > Or are you saying that this clock is mandatory at boot time, and all > boards using this chip will have the same crystal?The board must use crystal, different boards maybe use different frequency. DTSI file be included by other DTS or DTSI files. It is strange that DTSI file reference DTS file's property . The property "xtal" can be defined in DTSI file, DTS file can Change the "frequency" if necessary, like other property. > >>> + clock-names = "xtal", "pclk", "baud"; >>> + }; >>> + }; >>> + >>> + }; >>> +}; >>> -- >>> 2.41.0 >>>