Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp133275lql; Fri, 12 Apr 2024 06:09:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXy6tOhx8Q6FUPFDLSbTypDAb0n/2O/UOTIy+yTS47jv3WlK9CNW/H0B+2rCpPtBn2xS7l0gl2L5E72PEuryUFXoc5FtlYMzvsaM1E+Vw== X-Google-Smtp-Source: AGHT+IHkZ1tNjQfQM3zoI+etpOWZ+4I3V2gFfYo8iWDfjkYPqO6wHRq0iIordD6+bL2TLxdlHS3H X-Received: by 2002:a05:620a:10ad:b0:78e:bd2d:1689 with SMTP id h13-20020a05620a10ad00b0078ebd2d1689mr2731731qkk.36.1712927393286; Fri, 12 Apr 2024 06:09:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712927393; cv=pass; d=google.com; s=arc-20160816; b=sosX4GPWKhLdhQeGyiv+7qK3NEFhJITq746cyG2KXIkWyBbIjEvCnGY8wTdYVY9Gkb 9+NaWRZ/QamPhPZjB18EgVvLiGqNyiKJ9BXoEvsN1+YZ4/450ZmeM+KSxKN3Q6csz7Oo rF9xKhgAG4QXELvMctYmBXkxHdpJNZFnkkdj1LhLBO7BkQHSnyobbbqo/TTa8BLoT2pw qlwQODpo+H/HbWwCr5RqmL/+DB+uu58k6RZfxt3CvE+a3tSuG2IQrZ9D6C/842zorwn9 EpusceHdX0JtHUVvLk7YMVT/uVaxRP32IBA+knSGjXw/V7MWrcxz6uof0WLVFzfOnfQl qv6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=/mV7BMke1UIa5mb95gKPd8HhIzp2MCcM69xRq4po3gY=; fh=HgO3ZmyvnM65hcwT+fk2XqKe5wsRSD5As/UesreArvg=; b=XvSilrGD7Zl9sNaDgaRlAukfyA8Wgt554icwBZj/09pPCfqexh5kQqZaJyTHqjkb+9 Wl5fBHqwl4WR89JYLdQLpwOu6Pm3htMc0U4Vbj7gu7UrPriAgLPHFb8iES/HMizMO/UF YvIV7nIG43SvOxVBKBIYmS5NHMmV7TupuVuOQnOP8e8Ssg5NNZn60nTxrFdcF9XuSNNc tw8Yto9ZssGFxoqR5bsztDxVKU9CY5thesW1JwITsa2NHGBfs3QBlyltziVIbT6e67SK ghoiS8RpH6CT4E5080DIFFoTJGkeSCIZ1xLQWcXNHpHkkK9UMIE+rncfLKNHlEx6fhOs RY4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rctKXgMW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i3-20020a05620a248300b0078be9c26968si4179056qkn.463.2024.04.12.06.09.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rctKXgMW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EA3771C220FD for ; Fri, 12 Apr 2024 13:09:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0183A65BD1; Fri, 12 Apr 2024 13:09:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rctKXgMW" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62BBD64CD0 for ; Fri, 12 Apr 2024 13:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712927362; cv=none; b=WEif4ttnott9ANnJ/TxS+qtLg+g9bab5W9RS4c68KYKAmE6wA8nytzgvhouWoaVzvP+sNqtHR514IDod0suZ/CiYI5a6uTTPqOin4MALsLguy+TTSRqlqzRwdYddDsjgvAU/wjnLnT659I1A9277AvvXkhoTmOZP475p2KmCKN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712927362; c=relaxed/simple; bh=SudR6AJ+t1I99GYlhWex5QRCgcTgbdlUZZ+b4umDBxs=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=krJz5yq9W+PcQ3q9w8cedeMzV7I9SGhJgLyime/z/CTAgn+QKh3cXE5M/he2CnE4TbaADfyVSwrZZ7zQVzS7iSR/+7e5OTVUSY9/QG3af0BJmMfV/3heeDo8EhiYi1ld3jykW/2vra3MGS+MoMbUGPtsyBQZzEWntB8QR3A44Mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rctKXgMW; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41802f985baso3070115e9.3 for ; Fri, 12 Apr 2024 06:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712927360; x=1713532160; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=/mV7BMke1UIa5mb95gKPd8HhIzp2MCcM69xRq4po3gY=; b=rctKXgMWm0+0NaOoYTnm+d11SGs8U1uE4lHxpkKhgT+84QmwbbWJWalcPXKIdAYPzj ae8FYltS0tIiBzvFRkhJ70Kkgh1lNMDbi/gUgEZ3BgwWUFfOPHSLi3KvuPuN0dgo7jhv EpHrLVVuQgRLOKcg/gLRVv2+ID98hxkKeQwxKsIFTXlpOkOw6ND8zCjbHiQuTIQHrpR9 i9kuyEJOZM4Vd9ldr+beJBE1TMvbTmoUU7cIIwhTWoq+o0BZ7XyeY3FMUFhWQWoTs4dG LOFt6Hn3rhc0D7nr49xG9fr90hp9/g9RVh9MQaoLeFMnjfupJnHHlctCSft3NfIL9ulB Z35Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712927360; x=1713532160; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=/mV7BMke1UIa5mb95gKPd8HhIzp2MCcM69xRq4po3gY=; b=YGCoauezAGCQ3RMFLRa08wbmyKJVGJ0gUQSrC6hj+KNbJZCW4mxJbp/LGmFln0b+vE rtSN51jTq8Smbl9ym/kn4LwEUTv8dOMgMw2xd8OSCCWuIbBPiwqLQodQvzKT8eXg7c6O W8aKldt17jXSYZ6IFOPjpOEP17VQCh6lvkpWmDtMkPHFpLLE/IU2CHhJa9C1L9ULyOL3 +LJkF2OBnjqynqrfnICmJlfCDlc8xe4gx5LAIcVSuLmWBcDmStvDoumL2hIwFClCgNRq 6pj4fjx136b6PZjEc2JQ7pMN2zki6ioO1/tnfqyyrZ2SnOQDZdHhFpG7oCumev/CMPaI 9IDg== X-Forwarded-Encrypted: i=1; AJvYcCUfC8LzH26wpWFZ5k05ehgJ5u9P7qk3mKveAbhIWFKw+xcFwbNAdws98gX+/0J8NuMeCnwtvPk0ewZZG11PYuclk/lXH5HtNlusX/AR X-Gm-Message-State: AOJu0YzXEaoemxWGaTmGS7regts2++aLeulgeStdkDlVujYKch1Ep0Ed Wrl8WaFNFJjidif2KG4KJwUN9fROWHPHNDOtjfL+UKIGLHWY8EOgn3vAH0HFPrQ= X-Received: by 2002:a05:600c:1f93:b0:416:bc18:2a00 with SMTP id je19-20020a05600c1f9300b00416bc182a00mr1973759wmb.38.1712927359295; Fri, 12 Apr 2024 06:09:19 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:986c:54c:12ce:a121? ([2a01:e0a:982:cbb0:986c:54c:12ce:a121]) by smtp.gmail.com with ESMTPSA id j24-20020a05600c1c1800b0041643c9cb0dsm8907068wms.42.2024.04.12.06.09.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 06:09:18 -0700 (PDT) Message-ID: Date: Fri, 12 Apr 2024 15:09:18 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v3 5/5] arm64: dts: add support for A5 based Amlogic AV400 To: xianwei.zhao@amlogic.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Martin Blumenstingl , Jerome Brunet , Kevin Hilman , Greg Kroah-Hartman , Jiri Slaby Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-serial@vger.kernel.org References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> <20240401-basic_dt-v3-5-cb29ae1c16da@amlogic.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0U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ix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20240401-basic_dt-v3-5-cb29ae1c16da@amlogic.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 01/04/2024 12:10, Xianwei Zhao via B4 Relay wrote: > From: Xianwei Zhao > > Amlogic A5 is an application processor designed for smart audio > and IoT applications. > > Add basic support for the A5 based Amlogic AV400 board, which describes > the following components: CPU, GIC, IRQ, Timer and UART. > These are capable of booting up into the serial console. > > Signed-off-by: Xianwei Zhao > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../boot/dts/amlogic/amlogic-a5-a113x2-av400.dts | 42 ++++++++++++++++++++++ > arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 40 +++++++++++++++++++++ > 3 files changed, 83 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index 9a50ec11bb8d..154c9efb26e4 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_MESON) += amlogic-a4-a113l2-ba400.dtb > +dtb-$(CONFIG_ARCH_MESON) += amlogic-a5-a113x2-av400.dtb > dtb-$(CONFIG_ARCH_MESON) += amlogic-c3-c302x-aw409.dtb > dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-an400.dtb > dtb-$(CONFIG_ARCH_MESON) += amlogic-t7-a311d2-khadas-vim4.dtb > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts b/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts > new file mode 100644 > index 000000000000..11d8b88c1ce5 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts > @@ -0,0 +1,42 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "amlogic-a5.dtsi" > + > +/ { > + model = "Amlogic A113X2 av400 Development Board"; > + compatible = "amlogic,av400", "amlogic,a5"; > + 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; > + > + /* 10 MiB reserved for ARM Trusted Firmware */ > + secmon_reserved: secmon@5000000 { > + compatible = "shared-dma-pool"; > + reg = <0x0 0x05000000 0x0 0xa00000>; > + no-map; > + }; > + }; > +}; > + > +&uart_b { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi > new file mode 100644 > index 000000000000..43f68a7da2f7 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi > @@ -0,0 +1,40 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. > + */ > + > +#include "amlogic-a4-common.dtsi" > +/ { > + cpus { > + #address-cells = <2>; > + #size-cells = <0>; > + > + cpu0: cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + reg = <0x0 0x0>; > + enable-method = "psci"; > + }; > + > + cpu1: cpu@100 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + reg = <0x0 0x100>; > + enable-method = "psci"; > + }; > + > + cpu2: cpu@200 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + reg = <0x0 0x200>; > + enable-method = "psci"; > + }; > + > + cpu3: cpu@300 { > + device_type = "cpu"; > + compatible = "arm,cortex-a55"; > + reg = <0x0 0x300>; > + enable-method = "psci"; > + }; > + }; > +}; > Reviewed-by: Neil Armstrong