Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1635513ybe; Tue, 3 Sep 2019 01:00:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLpbkBdy/1e3MbaHNeBKd98xrVzfGr6fNgqSORUhlxLlYx9S5UicI70Lxgc9N48R4o8jZA X-Received: by 2002:a17:90a:33e7:: with SMTP id n94mr17088866pjb.15.1567497659584; Tue, 03 Sep 2019 01:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567497659; cv=none; d=google.com; s=arc-20160816; b=P1G2RMeMEWz5j00w1ATwQF4iwvkzbrgKXWEJBnO3iB+IItRY2UeCFHN8vp0XK7U+wS frOefTZjqkTlozuiot+x+U2vOZ9pZ6xbQzIZIoKLfMtGQTsXdIr8Z7V0lhHxEoyZz9MR iMAO0JqCfnsYmC6HNeVjHJvT/3040pMjMacUK+s4tAV6UtbM88BkDrJlCsnoQyF9rwVM nC6exm7tNg2paTZiUsXjgeykBajdK7ZdokhkBikmXAJoCY9Im+RlQ7+iq4Fnb6zfZTKa AwQehcx4eYZ7n62hQblsUDf31qZd781Wmg0dNqogvSBGLBoHTNbo6u08NhR/wJftdpVy lQKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ig1bGli5jLTnj+9+knoBOv8ftlm9GydY0RDhtMWBy8s=; b=mTGNq0YcVKoNV0Bak//yxkV15Tjx0F2VvULYvMQIsRF7j0uMeFXDM4w63AWAV3yriq 9EPEy3Xk7+0HQ+TRAnIlElT93pSC9SoGDomjlCgysZUbBN1MpL152ec9//Zrh+3AuasM h38DqWSopS7rsLk9RdopeCSioNvSeUXri21KLKXCk4IVEjnxXGtZp7d8Y9k+3XtB8tLR b/u8QBf9axOBaTSX2zqMnbOUDNCc0tiJj8QNdyFxGiebNqtQgqE8Kkz5UDcTd7DT2oKc m4FLO7wyYxoSQNYAzxoRfHv2vSVL0gmyWvIgeOJEsKgPxlyf4MD7pWHZ51TsfU8ywiCm TDGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si14281759pgj.216.2019.09.03.01.00.42; Tue, 03 Sep 2019 01:00:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbfICH7u (ORCPT + 99 others); Tue, 3 Sep 2019 03:59:50 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:48872 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfICH7u (ORCPT ); Tue, 3 Sep 2019 03:59:50 -0400 Received: from [10.18.29.226] (10.18.29.226) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Tue, 3 Sep 2019 16:00:37 +0800 Subject: Re: [PATCH 4/4] arm64: dts: add support for A1 based Amlogic AD401 To: Jerome Brunet , Kevin Hilman , CC: Rob Herring , Carlo Caione , Neil Armstrong , Martin Blumenstingl , , , , Jian Hu , Hanjie Lin , Xingyu Chen , Victor Wan , Qiufang Dai , Tao Zeng References: <1567493475-75451-1-git-send-email-jianxin.pan@amlogic.com> <1567493475-75451-5-git-send-email-jianxin.pan@amlogic.com> <1jef0xrg5d.fsf@starbuckisacylon.baylibre.com> From: Jianxin Pan Message-ID: Date: Tue, 3 Sep 2019 16:00:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1jef0xrg5d.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.29.226] X-ClientProxiedBy: mail-sh.amlogic.com (10.18.11.5) To mail-sh.amlogic.com (10.18.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jerome, Thanks for your suggestion. I will fix them in the next version. On 2019/9/3 15:30, Jerome Brunet wrote: > On Tue 03 Sep 2019 at 02:51, Jianxin Pan wrote: > >> Add basic support for the Amlogic A1 based Amlogic AD401 board: >> which describe components as follows: Reserve Memory, CPU, GIC, IRQ, >> Timer, UART. It's capable of booting up into the serial console. >> >> Signed-off-by: Jianxin Pan >> --- >> arch/arm64/boot/dts/amlogic/Makefile | 1 + >> arch/arm64/boot/dts/amlogic/meson-a1-ad401.dts | 30 ++++++ >> arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 121 +++++++++++++++++++++++++ >> 3 files changed, 152 insertions(+) >> create mode 100644 arch/arm64/boot/dts/amlogic/meson-a1-ad401.dts >> create mode 100644 arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> >> diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile >> index edbf128..1720c45 100644 >> --- a/arch/arm64/boot/dts/amlogic/Makefile >> +++ b/arch/arm64/boot/dts/amlogic/Makefile >> @@ -36,3 +36,4 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb >> dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb >> +dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb >> diff --git a/arch/arm64/boot/dts/amlogic/meson-a1-ad401.dts b/arch/arm64/boot/dts/amlogic/meson-a1-ad401.dts >> new file mode 100644 >> index 00000000..3c05cc0 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/amlogic/meson-a1-ad401.dts >> @@ -0,0 +1,30 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. >> + */ >> + >> +/dts-v1/; >> + >> +#include "meson-a1.dtsi" >> + >> +/ { >> + compatible = "amlogic,ad401", "amlogic,a1"; >> + model = "Amlogic Meson A1 AD401 Development Board"; >> + >> + aliases { >> + serial0 = &uart_AO_B; >> + }; > > Newline here please > >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; > > same > >> + memory@0 { >> + device_type = "memory"; >> + linux,usable-memory = <0x0 0x0 0x0 0x8000000>; >> + }; >> +}; >> + >> +&uart_AO_B { >> + status = "okay"; >> + /*pinctrl-0 = <&uart_ao_a_pins>;*/ >> + /*pinctrl-names = "default";*/ > > Remove the commented code please > >> +}; >> diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> new file mode 100644 >> index 00000000..b98d648 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >> @@ -0,0 +1,121 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. >> + */ >> + >> +#include >> +#include >> + >> +/ { >> + compatible = "amlogic,a1"; >> + >> + interrupt-parent = <&gic>; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + cpus { >> + #address-cells = <0x2>; >> + #size-cells = <0x0>; >> + >> + cpu0: cpu@0 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a35"; >> + reg = <0x0 0x0>; >> + enable-method = "psci"; >> + next-level-cache = <&l2>; >> + }; >> + >> + cpu1: cpu@1 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a35"; >> + reg = <0x0 0x1>; >> + enable-method = "psci"; >> + next-level-cache = <&l2>; >> + }; >> + >> + l2: l2-cache0 { >> + compatible = "cache"; >> + }; >> + }; > > New line here please > > With this minor comments adressed, looks good. > > Reviewed-by: Jerome Brunet > >> + psci { >> + compatible = "arm,psci-1.0"; >> + method = "smc"; >> + }; >> + >> + reserved-memory { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges; >> + >> + linux,cma { >> + compatible = "shared-dma-pool"; >> + reusable; >> + size = <0x0 0x800000>; >> + alignment = <0x0 0x400000>; >> + linux,cma-default; >> + }; >> + }; >> + >> + sm: secure-monitor { >> + compatible = "amlogic,meson-gxbb-sm"; >> + }; >> + >> + soc { >> + compatible = "simple-bus"; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges; >> + >> + uart_AO: serial@fe001c00 { >> + compatible = "amlogic,meson-gx-uart", >> + "amlogic,meson-ao-uart"; >> + reg = <0x0 0xfe001c00 0x0 0x18>; >> + interrupts = ; >> + clocks = <&xtal>, <&xtal>, <&xtal>; >> + clock-names = "xtal", "pclk", "baud"; >> + status = "disabled"; >> + }; >> + >> + uart_AO_B: serial@fe002000 { >> + compatible = "amlogic,meson-gx-uart", >> + "amlogic,meson-ao-uart"; >> + reg = <0x0 0xfe002000 0x0 0x18>; >> + interrupts = ; >> + clocks = <&xtal>, <&xtal>, <&xtal>; >> + clock-names = "xtal", "pclk", "baud"; >> + status = "disabled"; >> + }; >> + >> + gic: interrupt-controller@ff901000 { >> + compatible = "arm,gic-400"; >> + reg = <0x0 0xff901000 0x0 0x1000>, >> + <0x0 0xff902000 0x0 0x2000>, >> + <0x0 0xff904000 0x0 0x2000>, >> + <0x0 0xff906000 0x0 0x2000>; >> + interrupt-controller; >> + interrupts = > + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; >> + #interrupt-cells = <3>; >> + #address-cells = <0>; >> + }; >> + }; >> + >> + timer { >> + compatible = "arm,armv8-timer"; >> + interrupts = > + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, >> + > + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, >> + > + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, >> + > + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; >> + }; >> + >> + xtal: xtal-clk { >> + compatible = "fixed-clock"; >> + clock-frequency = <24000000>; >> + clock-output-names = "xtal"; >> + #clock-cells = <0>; >> + }; >> +}; >> -- >> 2.7.4 > > . >