From patchwork Tue Mar 12 09:18:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13589702 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3579C54E66 for ; Tue, 12 Mar 2024 09:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eenXA+seDYvTSyuFTxy3dmpKlXfBrzkSj39qa2MMmsM=; b=eGwidfX7HGC7Gl F+1P2FC333foLat605B/A2X+xuKaTXSXT0i5BN9/1oG6acahcoc2r+JDPRiRWUBgQIBoYjXdkTffC /X4qVRwcZ/mIt+1BglY4Bgq9n9qdGC/rtrxU668TO1jse66iK6l4EJp1yFwX6QmABGtgNHcdD7owX rIP0h8+8cBjgfm6gMyaSer6v7oFBth2uTN2AZa0JgHZPOzQWvYiNq2BndV9HPhDGvBFgFx+3e5y1w IKz0zzrVgoNYTl4LGhD9OgRvcm4wzQVo4AV4tCB1iyZws14vQrwzuPdhb+lMCCKuaD49HHiPxUmVD lo1cU7FnhdlpVUUHlPdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHp-000000054rf-1zNP; Tue, 12 Mar 2024 09:19:05 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHl-000000054p6-3sGb; Tue, 12 Mar 2024 09:19:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 105766105A; Tue, 12 Mar 2024 09:19:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id B2FD5C433C7; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710235140; bh=GY1Y3YgslgI5nfRHL9M2c1UwLc2CcvyuUQy+xFniYMY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Zl8o0WctTI41LRkGlWN2Yims8ZWoHOizQZIP8JQtDLArypYakxc9Ze/wE02ZIA/NA H2PRsZONK6+ZCvRXy4IOHW7l/NsoPNIbTlSCp77DGnMAm7EuwgChpPQnkyTAgX/4Zl 9VXvCqTAdR9YCNtUZK9LHKmiEj4MIacGlUsaQXOxvny7deycNYjHnbi2tljR57fcOt Ukr2g2UJ5sNOyd4xh+B51zL0WnKvd3meLpG2s/2QGlR6vBkDFwvzwgWakBrRny8auT Ly5/sFaJpIKnv3TlGcd1fUprOU3U63wiEyW7SeTDhSMAKHzFwsMxPT7I2resg6ATBd GZiTfSKKfnl9Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D28EC54E67; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 12 Mar 2024 17:18:57 +0800 Subject: [PATCH 1/4] dt-bindings: arm: amlogic: add A4 support MIME-Version: 1.0 Message-Id: <20240312-basic_dt-v1-1-7f11df3a0896@amlogic.com> References: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> In-Reply-To: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710235139; l=1031; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=7CB3caeULILonhq2akOBlXwuATMVWXMmUGpiqCh9RIo=; b=dp75MXR6HO7WQiTAAb/cIulbes0mAbyUf01Ax8fSgIxPPQeaaCRltOJb7yIkRUSzWLltdnK8W wvZEfuMIwJFDfCeKSjWlC5YD9dm6E1evNOW6Luv+0ymGX/47VIzEvhl X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021902_093975_8D9B41AC X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Xianwei Zhao Document the new A4 SoC/board device tree bindings. Amlogic A4 is an application processor designed for smart audio and IoT applications. Signed-off-by: Xianwei Zhao Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/amlogic.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 949537cea6be..9a135fe1c862 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -201,6 +201,14 @@ properties: - amlogic,ad402 - const: amlogic,a1 + - description: Boards with the Amlogic A4 A113L2 SoC + items: + - enum: + - amlogic,ba400 + - amlogic,ba401 + - amlogic,ba409 + - const: amlogic,a4 + - description: Boards with the Amlogic C3 C302X/C308L SoC items: - enum: From patchwork Tue Mar 12 09:18:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13589701 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CDFDC54E58 for ; Tue, 12 Mar 2024 09:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nYXsreZjVIibGevgUJC202Nz2DaS65B2iXIVWRhuF0I=; b=BqR15KNuOtDS3D czPljPm0WhiefWXvek6z0ePCVsFqqCBJ5hqzG1BWN55oPTQTj+prbMN9g3vZQ+/DGern7ceT3RtJX Vx7RpFddWp2wsSZq863sMxYqvt/rWgT2z3cLWtzbP0+7FYPYaRoDpxYPDnVP85XGPdfAZ5KStGtqF JXk3f5Spfb8udYdeAduowAvn0M27nbW9V/wOWdgkqF6BKEkJE1Z3cUq0C+pM35JmbtK1xFEj+DON5 9CjczWqKoglQ66qpbBq86Ojw3Our/rzXHcnWkyGqHY+dnZRbB6LusLoFsZYZR7w6h+Qa8Rwpmsc9A UKUKWPSX321pQRfGbHPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHq-000000054se-3ZpC; Tue, 12 Mar 2024 09:19:06 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHm-000000054p8-0dFB; Tue, 12 Mar 2024 09:19:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 451186116E; Tue, 12 Mar 2024 09:19:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C0BC1C43390; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710235140; bh=K505GhKHcy56JME2WlR5Eyql4DOJ1aVM0Jyv/sRU6Ng=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=KyekibctYHT9HzLt2zQc3SmuyEoeh/FRA4OVtGUaBotXGJ7mNOFdHDtFVpcgtXQ8B Dq9ZQ4EBF9cQynni61hklaDMK4iEdjbHgyflZ2K3of57c0wzn23cLHS843hiA3bJuR unaX6jskRMazud9ck/wXuEurn9TBBzeSXSVMwd/BUfJ8Cu/zJA+nCIpdat5ET93m5T C/MV4Mvwu9GcQ9VWkJ11mTm3C0pyrwlRkEKWkyA4xBK14s7L93SDG3OS4GWsyZrQb1 Q94n7rySvCpQRHgkmwOeaPWOQFuNibAUAtPSsXAVywcn/TECIDOmgghSSz8X3OkXDT cvQF67HTXM4vw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A88AAC54E58; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 12 Mar 2024 17:18:58 +0800 Subject: [PATCH 2/4] dt-bindings: arm: amlogic: add A5 support MIME-Version: 1.0 Message-Id: <20240312-basic_dt-v1-2-7f11df3a0896@amlogic.com> References: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> In-Reply-To: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710235139; l=998; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=OjYemETinzmeJ9Q4YrGV5qbHibSqK0gJRNB1l5DOrLo=; b=tFHNPr2tadjZI0f7yRXUHfGbas/LCBRkjU+cD60xc4dwRmucwJfD80aGFsMz+cb+Z2SBUuaOU 74GeQ1M93BzDp4bVIzFNNlPxL0TvuH7avkGhY8wfhLiRFYGh5XVTY0l X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021902_295985_571AC377 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Xianwei Zhao Document the new A5 SoC/board device tree bindings. Amlogic A5 is an application processor designed for smart audio and IoT applications. Signed-off-by: Xianwei Zhao Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/amlogic.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 9a135fe1c862..6090cb674b65 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -209,6 +209,13 @@ properties: - amlogic,ba409 - const: amlogic,a4 + - description: Boards with the Amlogic A5 A113X2 SoC + items: + - enum: + - amlogic,av400 + - amlogic,av409 + - const: amlogic,a5 + - description: Boards with the Amlogic C3 C302X/C308L SoC items: - enum: From patchwork Tue Mar 12 09:18:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13589703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BF77C54E58 for ; Tue, 12 Mar 2024 09:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/alqr9QGRWDcpZPJO26vCvgBbXNggvHG/QrJHMlvTjE=; b=vvlE3F641ZwcS8 FvoJLeDSSX8aEWC2lVyfEWPS6wBCOgIsDqujQUcK5xCd/y6Or/IzeWL/IyM7CGSVoRn6pOOsB/PW5 /nm70LdCy2i97s4nglfTYFUZWo8b5UOx+TLwYsyDMOU+Z6OdUxVK/xymKGOALgb5lkib/L3Xw4cdb UTuWxEneGGNLIGxwBI+JgdU/2fO68x18dIhUlWhmAWrha9+9bcr90kdvIr2xOLKM+hCVZ0XyNjpQD ioYPmbsY4C29BhEQ7KpGwcnkn4qfNsZAFuMND6dU8fBu9Tu4qs4W/zMW6nxzS5O3OpEzzspgBhlep XKazTjDjSmVSP+AFmk+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyI1-0000000551d-2Ntb; Tue, 12 Mar 2024 09:19:17 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHn-000000054pA-2NT8; Tue, 12 Mar 2024 09:19:05 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 55D7261173; Tue, 12 Mar 2024 09:19:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id CD09AC43394; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710235140; bh=zwrXDOWMVPvaGS68DHzTYLstjBWJEwhWk4JzhbZzS3w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=p+5ljolgFCjpCM77k25/tjYibI2McZkBNwriXYNP6H6EX5EvA34zgsqcQYuNybyMp 899KEP3gymyDt9xerjouDfbRSZj+qWWJTTiAV0rUINOxgezqFvpSP31XO7YzsnlNf0 PndDXHJgz7Bk9p41OAZJIHubNSFU7q0DvCsozc/r+2AVOHnrdqutra7IpVSP0zUiyX c0ovUjipi8Rju4Y4QBlTEX9k8LI98wbFwbmSpTZso1g511l/KW3PsWRgKRNfmcfRwv 1gvEMVrU5D94/cYnfHqbBwmqTlMdeQCIffJ9s3y7THA6OMOdcdmpJAQgjZvHbwor+/ aZUQY3z7nU87A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B531BC54E69; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 12 Mar 2024 17:18:59 +0800 Subject: [PATCH 3/4] arm64: dts: add support for A4 based Amlogic BA400 MIME-Version: 1.0 Message-Id: <20240312-basic_dt-v1-3-7f11df3a0896@amlogic.com> References: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> In-Reply-To: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710235139; l=4991; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=srTx2B8t7DUaqPtWIw/JiEFweNJKbpHQQNuF9nbmaGo=; b=6Ow3ycp8amiXNKAmoJK7FprZbTEqXDNavOhbBOvS8MdR+c60ZZw7OtDw1AdII3szoG44POYkV izawIIagg0YBA+9WNYMvP3Fe7KjX0Ngbp2nMjOwtgVAu2YAsVNj2XBh X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021903_802686_E43BB461 X-CRM114-Status: GOOD ( 14.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 | 43 ++++++++++ arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 99 ++++++++++++++++++++++ 3 files changed, 143 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..60f9f23858c6 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4-a113l2-ba400.dts @@ -0,0 +1,43 @@ +// 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; + + /* 52 MiB reserved for ARM Trusted Firmware */ + secmon_reserved:linux,secmon { + compatible = "shared-dma-pool"; + no-map; + alignment = <0x0 0x400000>; + reg = <0x0 0x05000000 0x0 0x3400000>; + }; + }; +}; + +&uart_b { + status = "okay"; +}; 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..7e8745010b52 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi @@ -0,0 +1,99 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + */ + +#include +#include +#include +/ { + 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"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + psci { + compatible = "arm,psci-0.2"; + 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 = ; + }; + + apb@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,meson-s4-uart", + "amlogic,meson-ao-uart"; + reg = <0x0 0x7a000 0x0 0x18>; + interrupts = ; + clocks = <&xtal>, <&xtal>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + status = "disabled"; + }; + }; + }; +}; From patchwork Tue Mar 12 09:19:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13589705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18CC5C54E66 for ; Tue, 12 Mar 2024 09:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=edbdkrc+A+XLod2x30k8PRow7MB7VCBxiFvvekb+Otg=; b=bSDZ52tShbeMGX UKF5zbQGzFTsnzA+bvFEm1WzNNkZOkpApLxBjbKb4kZt+w9Xkt72DNRaf4PGM/rMYntpHehwdoPUU 547tgzzdQxhTIhwPZopbFuXYqJKeabm+Hwr3SncZefJypu7eGZr4u2z9iR1OLeUOCw2qN4xSaNrTD 04FR+oDSriDwGfJGWIiddOD0VHywXs71vO0KT8uMXcNMU0JqBA+4GM+i0TPmBO6zAjxuQs30vADGS iZaI674+t0GXroJkLozsnLIKY/gnfD3OiqQSMM1KWLdRsA5zHAMYt2WhiDRbkPGFUlMW8HGAR6+f3 9fol7AnZa7788Rz/9k9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyI3-00000005531-0rv7; Tue, 12 Mar 2024 09:19:19 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyHn-000000054pv-46iN; Tue, 12 Mar 2024 09:19:06 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 08AF4CE16E6; Tue, 12 Mar 2024 09:19:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id DBF57C433B2; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710235140; bh=VUv3NkQu+JmNcsjP/ny6setNiV7uCjzIctFGtpXJ0RA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BTAstBbpuoYupU5df0ZCY5nnbUX/Ob38Hf5MtJbEaFFnkmqjAs/UXwNMtoYH7sxyK PiWjihqLLZdY8bCSfpULeipsp3/XF2O5qS/SsFa5rdoBbtJHsn8Y1A3OoFsMEsaWBL kkCxOrYqIOoXIdr1R4x5MjeqP+3dDUvKz76+HAYO2Y4iV3OSS6F6VpwSsNdTFUdCsi bsaTY7o50tcqjnHNX1ZbdH58xIQYECY+u6mdR7Eite4CPH0nRfoshRFfR+GomwbAjA aDTYvuf6N7yNyDi9OUAFKnEPAxVXYHgIfaCOKBkzpbdALA+LH2PPVCgf/lN+Nfb47q yO49QCt64JnLg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB611C54E68; Tue, 12 Mar 2024 09:19:00 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 12 Mar 2024 17:19:00 +0800 Subject: [PATCH 4/4] arm64: dts: add support for A5 based Amlogic AV400 MIME-Version: 1.0 Message-Id: <20240312-basic_dt-v1-4-7f11df3a0896@amlogic.com> References: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> In-Reply-To: <20240312-basic_dt-v1-0-7f11df3a0896@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Martin Blumenstingl , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710235139; l=4989; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=pH0aL+QTvYtYOKVMhXMKqMBAqECW+id7MYJXdKVvDyA=; b=zTLhLa0fC+whvD1zBxSOnpPljy86ucekmboHv/IJuadP1H2lr772ji7ySx6N+nbsnxAu6wzX8 m2E2ut97xNHDKrPyjsbuvqQ5ujdutSq3rPAziqrW5bfLOxWcghEQtO6 X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021904_458505_17B197EB X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 | 43 ++++++++++ arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi | 94 ++++++++++++++++++++++ 3 files changed, 138 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..e36fae1cf844 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5-a113x2-av400.dts @@ -0,0 +1,43 @@ +// 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; + + /* 52 MiB reserved for ARM Trusted Firmware */ + secmon_reserved:linux,secmon { + compatible = "shared-dma-pool"; + no-map; + alignment = <0x0 0x400000>; + reg = <0x0 0x05000000 0x0 0x3400000>; + }; + }; +}; + +&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..bfb9f13f84ec --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/amlogic-a5.dtsi @@ -0,0 +1,94 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. + */ + +#include +#include +#include +/ { + 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"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + 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 = ; + }; + + apb@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,meson-s4-uart", + "amlogic,meson-ao-uart"; + reg = <0x0 0x7a000 0x0 0x18>; + interrupts = ; + clocks = <&xtal>, <&xtal>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + status = "disabled"; + }; + }; + }; +};