Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp373694rwr; Thu, 27 Apr 2023 02:32:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SvolO3ccA0Fp6loFVOwvXqwVCxJw2XNq6axD3Xd6I9wBJAO4V1Vuo6eZsF7VG/YTPnzFl X-Received: by 2002:a17:902:f68e:b0:19a:a815:2877 with SMTP id l14-20020a170902f68e00b0019aa8152877mr1096112plg.6.1682587955925; Thu, 27 Apr 2023 02:32:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682587955; cv=pass; d=google.com; s=arc-20160816; b=ESJSU5cuFk8SHxeXxngQ0h0YRwrGA3cTO4bLYsUbXeONhWX0KL2PIyJ+XfLCKcpPTP sGIcF+hVBQVZ8NfC24A6UWFqb69GQyckPq6TUjVQKtb45baBPuHp8bFVC7avNAKxNVT4 nFDdQ+qzJMOUVrSbfjLHcqscCo2lZZsdhaUh6pzs67bwCYJHbGtiLQzDC3YOjp/QqwYx iiIRTwjR7QO0l2Y6DiMFazzRas2edVOo8oiTjKGMP6QZ3TW1dW3U2k8n9rx2c3rA/+he D8Nqj1CMi8cvYy+b0fPgU/rmRJveX/LT6B91JVzQkb696Nep8tSti+EUP8HvCue/tn3X bn8g== 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=d8U8GJuL1xrZ+0HLBOt0VQxZr3xHR9RQDkj0LbUgmcA=; b=KpgwfD3Ji6uGoXKEcPTYyc+1/LTmGXINHjo04UyWN5bsK/c2XvrnpfKeW5BtOcr+oL H47y5PIiXqW3CRz6QNGt9JqYKJGlbYHlSq6IKUoRO2tD/MNHGAUvpZny7kVDQB+ErM3X 9AUHNMl+0eDl9wIVQeSU9c0vrlUo3ZUdzDjAwr72fcaZBLo/vSdtvYu8EdjvsCBx5fTJ EPW9iHFxQQbG/87egwGcGZVEAy5DDvJYDAlLry+5Ri/XPaoXihjyg4Z5qUKhkgGhoDkE L90smrPmH6f/vuZg0XoaQoCdNU6yFymuN+pyJ7ENyKxlGwGAGQasTh3zGbGJ+n0jjIEI QyOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b="Vwn/Y8ve"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jh19-20020a170903329300b001a9a87d0c09si2389490plb.496.2023.04.27.02.32.21; Thu, 27 Apr 2023 02:32:35 -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="Vwn/Y8ve"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243304AbjD0J0Q (ORCPT + 99 others); Thu, 27 Apr 2023 05:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243314AbjD0J0N (ORCPT ); Thu, 27 Apr 2023 05:26:13 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2092.outbound.protection.outlook.com [40.107.215.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35558DE; Thu, 27 Apr 2023 02:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B7L6nW9Z1S3QUcKw3RUXcBHtANhrECPPDUj3PEC4n211cBXllPN/gSEMLhc8pGayK2EwfJGzxNA6de+xinPtj/I1KoI2tKzUni928Tm1HuqdLOiGIU3tKrOTPgkKowmmtR1Gn01a1nlpAnxLz7KI/3wtOi21SVtwDVwlYL9TmtPKiA0VXGI6pBYnQUOOwdHJillL1hlSG9JC9iBnC8FmiuvxBN5jFvlmdZPO8Gyh2HkpnKYDoj6gcQHYWw1R1IwdTzKbCEJOKDl3yfWcf/ycG+9tO5c9vCPAr5uJbG1bN11FZW0/6AJT5JWyJlJafNmG+yNOj+p4QysMU+tebk9nng== 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=d8U8GJuL1xrZ+0HLBOt0VQxZr3xHR9RQDkj0LbUgmcA=; b=gVVZWnlMugA+Oboc94dNJ1xrpyyqJDXKMPN/NfIT4YPqPYurcoPOv2cB7K6lhI7okE/02Y29FLnB3QTvu01dm6U0kpvD8JHAMxXy7ifvc4Zl9QPf37CHIfBXyb29zg5C/UlWQgY7mtPtupszCXo4ZfYLlRwsWuriRhWgB07wtB5gH/hsAy/uizol+v5px3+P9rbtHA6LkLNrIYTmYzs9XqOcisfpVu+TWnx675HSzdKS/rqyI8tt+mQYMWUXgyHJa7WPxibJ+CDAHeTt6o/nYg4hgO2rjl3UWKUf1qhpwNJbzTvprBsjkDj5fnJPw3sHnKNL5evlVxvsxYqUBEn85w== 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=d8U8GJuL1xrZ+0HLBOt0VQxZr3xHR9RQDkj0LbUgmcA=; b=Vwn/Y8veoGFf8nSQUi34viT7GnV6im63+sbOTmWl5QzOEi1rbm62KJt3V8ExGGDi9Zo8ExpkKrCG7xi4peKPrhNQdCFN3ZH6L8nhLuEV0tpWxs3ktFP0umvJj9E0LHlREow3f75LHBd+Mu18E4Y2sKBdjldTBHUXEa6z65XP4wqEjFetxFokbuud3XvxuVyZmYEG+TB8AjfeJZskYEtR+J0AA3IUQsZXJzVDmtW3S5Gn9rBDPIYk2T9KEje6JyT9zauy7MjFhK4PiLTwqML0pS/L4fgOoAq2zat6UrQjx7JFsc63W7l8FlcBfAI7NWZglk8lKC9za3c9115WDZqpqg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amlogic.com; Received: from SG2PR03MB2734.apcprd03.prod.outlook.com (2603:1096:3:21::22) by KL1PR0302MB5361.apcprd03.prod.outlook.com (2603:1096:820:48::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.22; Thu, 27 Apr 2023 09:25:25 +0000 Received: from SG2PR03MB2734.apcprd03.prod.outlook.com ([fe80::9c6d:3128:b370:5fb4]) by SG2PR03MB2734.apcprd03.prod.outlook.com ([fe80::9c6d:3128:b370:5fb4%3]) with mapi id 15.20.6340.021; Thu, 27 Apr 2023 09:25:25 +0000 Message-ID: <8cbc82f0-1ebe-b664-5d8f-98f1edff5842@amlogic.com> Date: Thu, 27 Apr 2023 17:25:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC PATCH 2/2] arm64: dts: add support for C3 based Amlogic AW409 Content-Language: en-US To: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Neil Armstrong , Kevin Hilman , Rob Herring , Krzysztof Kozlowski References: <20230419073834.972273-1-xianwei.zhao@amlogic.com> <20230419073834.972273-3-xianwei.zhao@amlogic.com> <4e6469e5-0f6c-4150-4709-7459597f06cc@linaro.org> From: "xianwei.zhao" In-Reply-To: <4e6469e5-0f6c-4150-4709-7459597f06cc@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: TYAPR01CA0114.jpnprd01.prod.outlook.com (2603:1096:404:2a::30) To SG2PR03MB2734.apcprd03.prod.outlook.com (2603:1096:3:21::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR03MB2734:EE_|KL1PR0302MB5361:EE_ X-MS-Office365-Filtering-Correlation-Id: 28787a74-de41-4695-59be-08db470153cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oMMXWHK5HFd/ckBnDuENtDZaIp9rv+Q2/vAiGOR0q2p7IfwpdyDzy58KY2gYzGfbEp8vajySyW+JG3dEjV/IJT9Yasz4Kge9ujYe27Q9CGdnf9BBVUsNoen5ODNzYYTAgxT8L70QnE0D494PQ0Hi5f474vRCHAwvDbNf+N1tLyn4aZI+8McytfT1lEW+J3hnA2corg1UvPXPD35kvSdjXbsQtZ8SzbJ7udDDJV50ejDUr2X2UD1+RL9YiG2jjjm3I36VcZn01M3CM8ItbhbUBT++Z2xrlNhSWbEiPhx72rFHHdcmlLNbIXeZ1n+CjhbMOlgcm8VMOm52LC1aaiMcyJuIUDwj2SCYTlzE5lONeLFgCWJ924Frms/+GNbbQJMaB1132rok2DUbfhhwGJJPIDCV9DeuBy/m96zr0zA4XNPTYmGg34Rp8HAPWKMsY+Q8uljCbzzRsEbsALic8X4tX0UDC3T2O+n7x/kPff5McrfkLEqfZEBxdPnkgdbgUQUD/Ki9pM1Y1G4qxQkqkptAqCxIZBTD7kd+x5Zot+aybfnJM63YfJgB0bwnBO0fu8TDpIKcWmJaYts1GNlcoUqoOULlXVAQn8b8mA6TGUrnhPKD6SPJ0hOTKUFZB/mYN9VJjXddOFbMvgJdlULeP84vpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR03MB2734.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(136003)(366004)(39850400004)(376002)(451199021)(31686004)(26005)(6506007)(6512007)(38100700002)(6486002)(966005)(66476007)(31696002)(41300700001)(4326008)(66556008)(66946007)(86362001)(6666004)(54906003)(478600001)(36756003)(316002)(83380400001)(2616005)(53546011)(186003)(8936002)(5660300002)(8676002)(2906002)(7416002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U0xtVzRBZFRqajYwczhaYVVQK2ZSMVNLakxvVE40VWRRL0x2OHFMTWFZeVQ4?= =?utf-8?B?aThXcHZ3b3FxVHFZSm93U3BGa3NiczQxbVF3Ymx1a05hMkVSR0NqdmVmOFow?= =?utf-8?B?bkZPaUtjbkdoejJBUzlubjlFbk5QK1JrZWFScDBNT0hSaTFBQXRrNXlscFZJ?= =?utf-8?B?bDJDZ3BPbVc1YjBYSWVLbnR5aXZ1OHFnTmVXSEhwQmlEN09NQmI4ekpRYnZ3?= =?utf-8?B?aW1aWmIzV0g5eHRNTVA1cVZkQlkxdXdJcmVTNlVzV0Q3MFFGenY4bTRRM1BQ?= =?utf-8?B?dHJ2VkRmeWpIcVJFdlcxZWRoWGtJL1krVWYwa0JmcF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8?B?bEdnYzQwRzMxUGMxbGovWC9hWjJaT0RMV3BGVlNBU2JTNTlrTmJSR3ozYXY3?= =?utf-8?B?aGc9PQ==?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28787a74-de41-4695-59be-08db470153cd X-MS-Exchange-CrossTenant-AuthSource: SG2PR03MB2734.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2023 09:25:24.2783 (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: opfjO0jKUk+9+1KlmzKsdvlwwT5i2TjPCXqhhKBhwJnLK55q9ML/dpqEKkdskatMISdXeASbeEdlZj0gEjwDhk1C4on5ny6VInFZFUnDuPQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0302MB5361 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, Thank you for your reply. On 2023/4/19 15:48, Krzysztof Kozlowski wrote: > [你通常不会收到来自 krzysztof.kozlowski@linaro.org 的电子邮件。请访问 https://aka.ms/LearnAboutSenderIdentification,以了解这一点为什么很重要] > > [ EXTERNAL EMAIL ] > > On 19/04/2023 09:38, =Xianwei Zhao wrote: >> From: Xianwei Zhao >> >> Amlogic C3 is an advanced edge AI processor designed for smart IP camera >> applications. >> >> Add basic support for the C3 based Amlogic AW409 board, which describes >> the following components: CPU, GIC, IRQ, Timer, UART. It's capable of >> booting up into the serial console. >> >> Signed-off-by: Xianwei Zhao >> --- >> arch/arm64/boot/dts/amlogic/Makefile | 1 + >> .../amlogic/amlogic-c3-c302x-aw409-256m.dts | 30 +++++++ >> arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 87 +++++++++++++++++++ >> 3 files changed, 118 insertions(+) >> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-c3-c302x-aw409-256m.dts >> create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi >> >> diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile >> index cd1c5b04890a..d2b5d0d750bc 100644 >> --- a/arch/arm64/boot/dts/amlogic/Makefile >> +++ b/arch/arm64/boot/dts/amlogic/Makefile >> @@ -74,3 +74,4 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air.dtb >> +dtb-$(CONFIG_ARCH_AMLIPC) += amlogic-c3-c302x-aw409-256m.dtb >> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3-c302x-aw409-256m.dts b/arch/arm64/boot/dts/amlogic/amlogic-c3-c302x-aw409-256m.dts >> new file mode 100644 >> index 000000000000..38ca98a32181 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3-c302x-aw409-256m.dts >> @@ -0,0 +1,30 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. >> + */ >> + >> +/dts-v1/; >> + >> +#include "amlogic-c3.dtsi" >> + >> +/ { >> + model = "Amlogic C302 aw409 Development Board"; >> + compatible = "amlogic,aw409", "amlogic,c3"; > > Undocumented compatibles. Run checkpatch and fix all warnings. Anyway, I > am not sure this warrants separate architecture. Isn't C3 standard Meson > SoC? > The patch related to bindings is committed, see: https://lore.kernel.org/all/20230407102704.1055152-1-kelvin.zhang@amlogic.com/ >> + interrupt-parent = <&gic>; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + aliases { >> + serial0 = &uart_B; >> + }; >> + >> + memory@0 { >> + device_type = "memory"; >> + reg = <0x0 0x0 0x0 0x10000000>; >> + }; >> + > > Drop stray blank lines. > will do >> +}; >> + >> +&uart_B { >> + status = "okay"; >> +}; >> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi >> new file mode 100644 >> index 000000000000..c69072ac57f5 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi >> @@ -0,0 +1,87 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. >> + */ >> + >> +#include >> +#include >> +#include >> + >> +/ { >> + cpus { >> + #address-cells = <2>; >> + #size-cells = <0>; >> + >> + cpu0: cpu@0 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a35"; >> + reg = <0x0 0x0>; >> + enable-method = "psci"; >> + }; >> + >> + cpu1: cpu@1 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a35"; >> + reg = <0x0 0x1>; >> + enable-method = "psci"; >> + }; >> + > > Everywhere... > will do >> + }; >> + >> + timer { >> + compatible = "arm,armv8-timer"; >> + interrupts = , >> + , >> + , >> + ; >> + }; >> + >> + psci { >> + compatible = "arm,psci-1.0"; >> + method = "smc"; >> + }; >> + >> + xtal: xtal-clk { >> + compatible = "fixed-clock"; >> + clock-frequency = <24000000>; >> + clock-output-names = "xtal"; >> + #clock-cells = <0>; >> + }; >> + >> + 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 0x2000>, >> + <0x0 0xfff04000 0 0x2000>, >> + <0x0 0xfff06000 0 0x2000>; >> + interrupts = ; >> + }; >> + >> + apb4: apb4@fe000000 { > > Node names should be generic. > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > will do >> + compatible = "simple-bus"; >> + reg = <0x0 0xfe000000 0x0 0x480000>; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; >> + >> + uart_B: serial@7a000 { > > lowercase for labels > will do >> + compatible = "amlogic,meson-g12a-uart"; > > So this is just meson? Drop new ARCH, no need for it. Anyway, you need > SoC specific compatible. > > Best regards, > Krzysztof >