Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp133070lql; Fri, 12 Apr 2024 06:09:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVe95U3ydQJAQK9gsluyZeJ7Bxo47kapapFcGl4ZONxg8fZp0F/O4IW/uReJ1OKmxvhEFv9gmA7tawrZ6gPTd1ol9ZXzkIW8Y29M4Fs3g== X-Google-Smtp-Source: AGHT+IH+skCjUo4BSmbyust5Ozc3rSCtrgwVGzl5OzIH/cJkgeH5mSNmEo93ln0dKShw+8XlIOnZ X-Received: by 2002:a05:6102:cd2:b0:47a:4221:5511 with SMTP id g18-20020a0561020cd200b0047a42215511mr3030482vst.3.1712927379123; Fri, 12 Apr 2024 06:09:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712927379; cv=pass; d=google.com; s=arc-20160816; b=rnhLTt6RfeZMpGcTBdDEFsLGdG7ZFblKd89RYefhk+cb19DjvG1REDH1cpaEr14z6/ NmAfARm8CunRITytECFarg5eXMo+WhyJjUsXGrLNPiYS4Rw6k7Y1+/XnU3twQGwy16Kr gthGfDRhmW0OFrYBRda7MFObdIzAu/nWo8fVb85AC0at54fWaese39OcfsQDQ2ElIvM5 4ehkaldfvMk0WZjm8CAspj3y5HVr6GGzOVarnWzSUNuDV6+rF1/PxD/HKtg0zC8ot7/Z edCWkkKw5RAMTCRc+NV8FPetGZZ1DFtipmjJIjo8Njbcnk/AkMyHcA0hTcQCNNqCLanA 2JiA== 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=FyhGtAL2JqR3ZsyVTsMGwTRUWIZ14NRIR0wRv4m8Vlw=; fh=jZaGRyJD/EaDb7cLxD8LK/ekMU0MwN6ZOEj9DfjoFGM=; b=PpYiljBpGftinM44Iq1XQyQVfFZ87mvjsrMYZP2oPCpMcaE79s4vllXofZQYWxzSeO oGTf+vUJMDBIIlm7fB4dw+XxNkVyxtv+FKWQNJZJvvpWCUDVGPT/KsKYmW5MyZQZ5k37 czF3EaZduyk2qgUo8/S1R0CkMrn4tGMU1VaHLHjE1CJL/7bU0pbbbyPEtOW+WFIzD2UO SYOZpdqWlqRkAt/DLbsRlRErXlWZprzI8zyIFKyocIzVcTppmBMCzgY2k67SVQIRu9Qk jLjzH8iS57HlbncfuQ9e+BhcHM3nEpHZ2AnYysw+lL0BMjNyuKzE9K7RFfXjvlaa7Gxw AMJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQkseLRK; 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-142694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142694-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. [147.75.199.223]) by mx.google.com with ESMTPS id bl41-20020a05610250a900b0047a42fc4b4fsi310597vsb.452.2024.04.12.06.09.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQkseLRK; 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-142694-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142694-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 3986C1C22A51 for ; Fri, 12 Apr 2024 13:09:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D99E5F547; Fri, 12 Apr 2024 13:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oQkseLRK" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 669F955E4C for ; Fri, 12 Apr 2024 13:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712927358; cv=none; b=gks9awknOlUgph9ubufjgszpoB/IjsVSTUvhZEI7EkkuEmJNSAMapg5b3gm0D0THQKW/vZ9wYGBLzIO5t+STpuOE/OcQ7OA58WhPimJolc7DVHFIUxotEmE8is4BcWh2kI3kgZW4zchK9flKJS5SQ0nvuVFoTWAt+VWxdVYsJPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712927358; c=relaxed/simple; bh=mFyo9VpcENpvw4o3ueYazfeD4d0eSiNTRPwUrwcfyqY=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=f1U6vRND4twaojt47cZuDYRZGaToA78JK1tvWI137+oUR02vbs+dzunfAhKfEevUg4r5SS//Vd5Bynaj4ENwVKHM0LPlIqVxMGoEKibJ9gkfQeBkeqOrqkfyK8wnWmlH9Bcqf9C4+9rFP24RrECoO2jTyW5uLeFQOcu5fJ+f5R4= 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=oQkseLRK; arc=none smtp.client-ip=209.85.208.180 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-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d895138d0eso7206781fa.1 for ; Fri, 12 Apr 2024 06:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712927353; x=1713532153; 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=FyhGtAL2JqR3ZsyVTsMGwTRUWIZ14NRIR0wRv4m8Vlw=; b=oQkseLRKWa5jeOR6l4k1bruNlnG7aKF89einZ/nMZv8V6zXfRdcZ22CvcRfNSWWYH7 MSLN14CoDVfIpLXd/+AWQAuLLOr24dcPgkT0y4dan1ZCXfy/d0yp+nrur3weufXWRIbn Cq0uZ8POAhshZXaYfvDC7/uPX17evGSLxXD79QsSyYG/bMMBcDAo19wiLtkcnT/IZwwn Ag4bMTWtZwyEHnTsMTCWYqwTUhdhA3bdYvKHZ3h3WPAyaPxBhbHx44xJSQaxyqN2NQ7u OQvfnTYNrEo4YyU0UVrlFJ4u0tllI6u47QSj6VjpDhyrGWnwhqt7/3wVfRGjQveCY5jy QHGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712927353; x=1713532153; 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=FyhGtAL2JqR3ZsyVTsMGwTRUWIZ14NRIR0wRv4m8Vlw=; b=N/ZQekYv1VmTYtlsb8IjcvFBusf9S4cJ1vRjFYdSiBjRUcyk/KRdUiJ0SkHZ6j3YS+ nkKSF4L9tOzwq+xE5y6uHISVhLywcVLazUg/MSmtKOZVeGq96oIWM5WvJQkWAgKaipuF 7lr8SFoE0dU0Mg0bKq5kqDKL5UXogT7ZzwIy3MCCKGz4ezIp2IAiPGIesyb+crJoZYEF 57z+KzitwhehnsNEi263d4uOjl01C3S1ImU9xEtayX2MMlE7eLC2w5zSHDtsXnBkoSWe Lel242Wrkgk4LQS7QEiLxhmjWpR/l0ejMUqktaAhoe2fghQH8cBm92Jtsy68i8FEaGhr 5aQw== X-Forwarded-Encrypted: i=1; AJvYcCWiBrReOajkA3vs0PRn+ZiLFCp1w4Ke/lIub1znGJpmMuXGwYlnDi4oXGcx7WRpRZC3sppqY7UfKgTqP0788NXG4f9d6+Z/6zUJ3dTj X-Gm-Message-State: AOJu0YxLAhpLOJ9HsMO+iJlqNdiOF8wm9S0q6U+vvHWAFAjdT6EBGRLO 9hdzLC5OpRFkMWRLptrbWEJx9WGCiT7TyKjqr4/sfVM580v5RB4IMmMz9SM3vkE= X-Received: by 2002:a05:651c:80d:b0:2d7:2ba:525 with SMTP id r13-20020a05651c080d00b002d702ba0525mr1623643ljb.18.1712927353096; Fri, 12 Apr 2024 06:09:13 -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.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 06:09:12 -0700 (PDT) Message-ID: <97a18d71-4cf8-4d31-a6a1-2b6f69fabbea@linaro.org> Date: Fri, 12 Apr 2024 15:09:11 +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 4/5] arm64: dts: add support for A4 based Amlogic BA400 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-4-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 OwIbIwULCQgHAwUVCgkICwUWAgMBAAIe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JC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20240401-basic_dt-v3-4-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 A4 is an application processor designed for smart audio > and IoT applications. > > Add basic support for the A4 based Amlogic BA400 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-a4-a113l2-ba400.dts | 42 ++++++++++++++ > arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi | 66 ++++++++++++++++++++++ > arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 40 +++++++++++++ > 4 files changed, 149 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index 1ab160bf928a..9a50ec11bb8d 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-a4-a113l2-ba400.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-a4-a113l2-ba400.dts b/arch/arm64/boot/dts/amlogic/amlogic-a4-a113l2-ba400.dts > new file mode 100644 > index 000000000000..ad3127e695d9 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-a113l2-ba400.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-a4.dtsi" > + > +/ { > + 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; > + > + /* 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-a4-common.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi > new file mode 100644 > index 000000000000..b6106ad4a072 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-common.dtsi > @@ -0,0 +1,66 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. > + */ > + > +#include > +#include > +#include > +/ { > + 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"; > + reg = <0x0 0xfff01000 0 0x1000>, > + <0x0 0xfff02000 0 0x2000>, > + <0x0 0xfff04000 0 0x2000>, > + <0x0 0xfff06000 0 0x2000>; > + #interrupt-cells = <3>; > + #address-cells = <0>; > + interrupt-controller; > + interrupts = ; > + }; > + > + apb: bus@fe000000 { > + 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 { > + compatible = "amlogic,a4-uart", > + "amlogic,meson-s4-uart"; > + reg = <0x0 0x7a000 0x0 0x18>; > + interrupts = ; > + clocks = <&xtal>, <&xtal>, <&xtal>; > + clock-names = "xtal", "pclk", "baud"; > + status = "disabled"; > + }; > + }; > + }; > +}; > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi > new file mode 100644 > index 000000000000..73ca1d7eed81 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.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-a53"; > + reg = <0x0 0x0>; > + enable-method = "psci"; > + }; > + > + cpu1: cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x0 0x1>; > + enable-method = "psci"; > + }; > + > + cpu2: cpu@2 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x0 0x2>; > + enable-method = "psci"; > + }; > + > + cpu3: cpu@3 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + reg = <0x0 0x3>; > + enable-method = "psci"; > + }; > + }; > +}; > Reviewed-by: Neil Armstrong