From patchwork Wed Mar 20 09:44:13 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: 781483 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDC9A3B78E; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; cv=none; b=Gf2VxNOhQgWwENbYX5iTJQB0O/0YEsv8T0Kvj0bTPWQoBOecht9MRz16tISZwJX82I3aTpas+qjpox6m7Gb0nj7CqdXS6XxA3YqyzS57OPYPlWjoUylETI/2A+h2NO05u19s+E1Qd3rA6OH2cAyIhdG/u1ERt0sgHpPjl++A/S4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; c=relaxed/simple; bh=87vxEiXK4Bw7uWercX7BECQUi8vL2f8Pu9x/4eHktak=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rtRWRpHWm8o0/aye2ArSE5kaxsS6RqKZYbv7KB0ZVRWGMs0pnV75mDKmdUuYIH1XyuFXX3/J4LgzrCpKdFzFH2hkuvz4Hn1K5mBVaCETwQvG5nc8TiPgLqTRDeoKfU2y/RdnUwiQYbTdQp5IbLBerXAWXv19G9diyGpfKdlR+/g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mycg3aWP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mycg3aWP" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8708FC43390; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927868; bh=87vxEiXK4Bw7uWercX7BECQUi8vL2f8Pu9x/4eHktak=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=mycg3aWPkh2stNlENyue3WOvNrc4PmxRfCsKY14oX6ZlTeMgMOrY9rvhDnpu5SRgG M2y2YCnU9tvkoejc3DISagH+mBMfdllKIDhrcZzI3itIORBNhlfcgzFmDtyPpv4emH Gas4aW1hjJToWM6CGYItWZyDTCJXTclI1siBDM0WiNbhswQSw9vGr8C76XtT7WneJP SWkgBvb0ncrJuK8HtTRoyxjGk8+PHVYNPW8JvFE/NRSBnqhaFQlUrog7ve86dhTqzi y7wQMBEIb2IN7ZMgt+ckgSP8V7zB3HjmWH2QPv4d6AbwXcQFCFvhg/wECPwN7Ff4k8 0dCF5jFNe+K3Q== 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 77921C54E67; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 20 Mar 2024 17:44:13 +0800 Subject: [PATCH v2 1/5] dt-bindings: arm: amlogic: add A4 support Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-basic_dt-v2-1-681ecfb23baf@amlogic.com> References: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> In-Reply-To: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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, Xianwei Zhao , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710927866; l=1029; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=qwPgdDWTmKejFsU6gaw/3XWYRmAsFuyvj2aPVFS4Wuo=; b=1Y+87cYoqA7qCw8jl4n3ryhZaV5jTb5mf2nD51Z+wc9wxdzZRhSQyHF2Yo2IsLnlyU2k/ChML BzwGUPXnvwNDwQ2poKUz+o1mrRf5KhR0mKdxDRGsd6mXD+W1K2OTmdd 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 Reply-To: xianwei.zhao@amlogic.com 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. Acked-by: Krzysztof Kozlowski Signed-off-by: Xianwei Zhao --- Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 949537cea6be..520975e7cac0 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -201,6 +201,12 @@ properties: - amlogic,ad402 - const: amlogic,a1 + - description: Boards with the Amlogic A4 A113L2 SoC + items: + - enum: + - amlogic,ba400 + - const: amlogic,a4 + - description: Boards with the Amlogic C3 C302X/C308L SoC items: - enum: From patchwork Wed Mar 20 09:44:14 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: 782234 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E88FC3B794; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; cv=none; b=n/DsxX8fxGdPKTNkbmbVPugTKszcP1qF4E3kNN58PEL2MC4ysbm03vRata7izN78wD1qI79m4CY6zxp/ThJmhZesGhWQNcoxoih3jXbt6VkigeDbqdXbdDGGsV5sPQXEoPZe18qNtEV9gbqzURCgtEjbjm2UOPIffH0RifPq+j0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; c=relaxed/simple; bh=Uf0CCksxzPh94RRVnornSAILdhxqXP3ccZAL4skjSzw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MXWR3vnoox6rzll5BI+llkNw++ZagIcAch0L/5WhqziMgT3hqAvIppLUZv9EoWfrVj8GWYx8TGPlCyW1IYPpz7qXhBHZnUnER+X/R1Xpw6jzDyxjJos2GWF9cHtdAb0VY48Q9zEJTSKeeQHpmWhriMMPySPkM5gPyTdrm9aCY7w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i+R/Mv6E; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i+R/Mv6E" Received: by smtp.kernel.org (Postfix) with ESMTPS id 98545C43394; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927868; bh=Uf0CCksxzPh94RRVnornSAILdhxqXP3ccZAL4skjSzw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=i+R/Mv6EMFDPiERKE2XT94eFmGajTCo07nPgECSQHYF08j3VQzrLoLm1h9vnMsPj2 hwxYehm5rNYGT5+JnnTHaFfvduTUZnZxiINOuvS/Apgh3jvNqSlCA4u2GrGJYabX9d 3NxUtLW/41N3CwmGAQJq+PrQg4S30dFApfH+PBxNRZ+4vXjb/ve7060KdXJc2VU8+h /bXcVKr3O2HoLYru6w/viq7I6v+tKBQJxdYxDi553gicQqTKuZPwvT3WOKFbM/wnwN TRL5ksGryYJypUav/MlJKp0n5h6H50TdN70UQrkIFTDX+TqM1QAnSN7kObNh5TyI/e W/ZaducsFm0Sg== 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 82C30CD11DB; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 20 Mar 2024 17:44:14 +0800 Subject: [PATCH v2 2/5] dt-bindings: arm: amlogic: add A5 support Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-basic_dt-v2-2-681ecfb23baf@amlogic.com> References: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> In-Reply-To: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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, Xianwei Zhao , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710927866; l=1029; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=r0xuqU4Ugjg7+rGvC23MyKK1+DvdlUD+RiCVMa++e2I=; b=uUUPeJHApSTFAbpk9atAj5lylvkx6geVJ0wgftmHDcIXC3+zOlKydo3Z9XGmH+wK15238Lica XrEMVzrTLoRDpOTZNXpzMrzByUyx5lPlxrmqa2kNnHuSEcHB++wU7S3 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 Reply-To: xianwei.zhao@amlogic.com 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. Acked-by: Krzysztof Kozlowski Signed-off-by: Xianwei Zhao --- Documentation/devicetree/bindings/arm/amlogic.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 520975e7cac0..e64ced44ece8 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -207,6 +207,12 @@ properties: - amlogic,ba400 - const: amlogic,a4 + - description: Boards with the Amlogic A5 A113X2 SoC + items: + - enum: + - amlogic,av400 + - const: amlogic,a5 + - description: Boards with the Amlogic C3 C302X/C308L SoC items: - enum: From patchwork Wed Mar 20 09:44:15 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: 781481 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6707C3C068; Wed, 20 Mar 2024 09:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; cv=none; b=JH9rzwY0N9Mu1k87R2E/lt+oSXH41mhiMFsES4WpG6SglqMCADv/KMR5W/5YULcw7pvCY5fCIoMnL5cVOilTxYCqba2u8rks4hRAJlcr0wuq5T3YDaEyMGZO18kNNAaeLpK3p0fctxTgzcwxGfvO2P2irk1oyJLEEXfMbznHHps= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; c=relaxed/simple; bh=QO0LZCtSW8apYYXm/bnhc9+79zlXJs+onlGEOcYTAEA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NaSOIRLPYZxYm69/5lf3gfxwXxfxjLucJB0u5n9IcuSmFXjPLpq6dS1uO/KxuCvf7umWObH75/Il7ykmKTb9Q2N4M9S3vJ/N8TXc5sLZ7adIX9gvo6xYCHz6Hgxt4yq87UXQYnwzVNLCrvzNMX+UzMsHEiMxMEE9Pfl8NXaCWlA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YgxinzTy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YgxinzTy" Received: by smtp.kernel.org (Postfix) with ESMTPS id A62AFC433B2; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927868; bh=QO0LZCtSW8apYYXm/bnhc9+79zlXJs+onlGEOcYTAEA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YgxinzTyd6ZofH2Y0OdXgs27eeV26pdVZCt+CwZon4Z+lvTQRL5MLAJDPS9xPsh4d XVQQbDg5cEhP+LLtsNxo5AjnkU1hkjB7eOuz2KbICB4Uhsi3dn2qVoMzSkkTNAMxKp h3KrX2Dv0rfZTxSrH79W+2aHscqYtPJlTzTVp8Dotn8jC10sDAF55CNH3gJtgxQjf6 L9lfxDnseIfmnM9S69UFdjhbRbZM2vOkYWqhoJSkXngvrP26ab61bc8YJZNWUn79AB d52hASYr55Ow9QH3cWWWhf1+406m3IULw3xiFwSF9PmUCsCtqCu94XF+M4VFknwTRA Q2IHOPahi811w== 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 8D1C3C54E58; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 20 Mar 2024 17:44:15 +0800 Subject: [PATCH v2 3/5] dt-bindings: serial: amlogic,meson-uart: Add compatible string for A4 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-basic_dt-v2-3-681ecfb23baf@amlogic.com> References: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> In-Reply-To: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710927866; l=1045; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=UJBOI4szfDVcoXnl7lw01lakzjuj2KmlihYXzmVHsfw=; b=8pu+V1R6pp5VQ+slxCMO6g68EDljBjihstf8hEg2+4Whq2atJPLqkR9bOPCaPMXyQFShC+vkD gtm1ft8HeXyA9/EvkLIi+Rxh5hsRPh2jF9/IO0jA4BLReHJtoAbIhRh 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 Reply-To: xianwei.zhao@amlogic.com From: Xianwei Zhao Amlogic A4 SoCs uses the same UART controller as S4 SoCs and G12A. There is no need for an extra compatible line in the driver, but add A4 compatible line for documentation. Signed-off-by: Xianwei Zhao --- Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 2e189e548327..d05c45815dc2 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -54,7 +54,9 @@ properties: - const: amlogic,meson-gx-uart - description: UART controller on S4 compatible SoCs items: - - const: amlogic,t7-uart + - enum: + - amlogic,t7-uart + - amlogic,a4-uart - const: amlogic,meson-s4-uart reg: From patchwork Wed Mar 20 09:44:16 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: 781482 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 180283B7AC; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; cv=none; b=WzeTrnjXuO0GdkeOQePyDRZnTZzlJUFgq9qrOhpHbSOqrN6KW6sFBAEyC3csP7SNFbG3jU7KOHcz7OZjSgDNEE7PKKTOgNONItSX1WhzzFKO/5vpDRos6BZhhMb/RNyD6zbiIeEUdzWPIm7Pen5sp2AWafyGtOCx5/IwZlGyDR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; c=relaxed/simple; bh=u8mfXGf5B72rCyQC3VDhY6iqSlG2v8pfM8qbOzy0uyE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mNheknbnKu0ddZFAdSpGxAhTBlU0MjfRPxjKLvgHlCmO6MERaYrcrehMY+abjzNiRZOn+BJQp+7Vp0sv+g0KXUSmgcmojOTxFZiCDZNg4RWgoIH3TGXjcOk/IPuVU68hJWEqntz+Ql4pUrsfjNni3ddCHvEXJDC0WJPnF/TaJco= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FHFWHRCO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FHFWHRCO" Received: by smtp.kernel.org (Postfix) with ESMTPS id A98C6C43330; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927868; bh=u8mfXGf5B72rCyQC3VDhY6iqSlG2v8pfM8qbOzy0uyE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FHFWHRCOE58pWF2huWdFnbYA4lpx5vhyRLj+83iJ9Y6EVDy75OkMC87Aew16l29s2 mUH78raCK54S2sHTnwBU0MsKOEtm4bNr1oWc94VbgTsnD1JNNPTc44XllSwHF8Q/rg Wmpsq5Yvo2zOQoGIRMSrNKXEEUyRpZQXsTBw3nUcDKB0cira0VeZJp9UmI7zsSedUs 0MpWbTUv7gE/DSKtdpyNCEQ/9u01WPiUN5+3cXAU6ZJLyejU6amAbarDa8Zx+NJGtC L1gXzobsvxJLQhefYabqH5h0hoOzBaKTpp34X/J2CYp5UGGQisKudruIBiU+nsJH6F lbwwNxDlBoubA== 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 98398CD11DD; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 20 Mar 2024 17:44:16 +0800 Subject: [PATCH v2 4/5] arm64: dts: add support for A4 based Amlogic BA400 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-basic_dt-v2-4-681ecfb23baf@amlogic.com> References: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> In-Reply-To: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710927866; l=5465; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=SFjI1BLUCKxCYAtB6G93CSaHjcRWfiPNSsuscwbBSHg=; b=Yau//iYfYinyB0SFsrI91rCkzVwxerH9m6bMksa8pXMuWbl8AOV82J4DEsO2zz07L2GUCPz9a UHLb5UoVooeAUJk6d5uNu3TA3xx/5ua5WSASj9tWN9ok8RLifdtaSlc 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 Reply-To: xianwei.zhao@amlogic.com 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..43a9c666e1de --- /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"; + }; + }; +}; From patchwork Wed Mar 20 09:44:17 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: 782233 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23B233BB35; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; cv=none; b=DnwA19FEr+gDbBvwbME0GQKWFcttc3mYU1A6aAPE5SkGQCihRoM/5OtXEa3c8lFWEU7FIlT4HEB7L7gt8Q3OGRGaqQaosDBJ3HowtM4YTOol9hgKOzSI6Tr3E6YnRr3KER6pObAm/Yw8Z6Y2Gf3zs8NaPDKh0zlHQn9JkkFffsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927869; c=relaxed/simple; bh=sJuXYcyQ6GZ0iZsrPSXK5CW5UxpQPZ0L1biya4xAw3A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XY1jbpWh9X+e/lsz7BMJLOTQWUmYpmDIxsiOJobJakrM2xLmVxITRKT+ixYonPDpru7d5Hel6iyN4ey7xTtG7EXDmVubMM3hoA3wH2Z4uU+P8hfnCZ3Skbyvv9E3yPY2qa+LznLEqwbDVMwQZYzqYqZfDyCk8He72VL0CCpl0aw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bc9t4K2I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bc9t4K2I" Received: by smtp.kernel.org (Postfix) with ESMTPS id ADC41C43601; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927868; bh=sJuXYcyQ6GZ0iZsrPSXK5CW5UxpQPZ0L1biya4xAw3A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bc9t4K2IL8Np6jXxnHDjfIuZt4V82x1+zJdRO4QajHRmFcVKiJEB1VsHckPvOuDhZ EHf7A3VF4tivVBUBRWhbBb15FfC5zsoTVu3x/ZWVXb6Adarbnm6me1v+HtjY9dlMeS vBD7Wh5i+L9E79w3E9LK86Fd6INRjTIxvqno+9M8qLLAIR/wtxS8/oNZubGvvP0Ese Fw0G+N5Vm7CjkwHzmpnAeXAdic4UZEbSyHo55Y6v7hdYBkgQ+QtTBJZdVUwL94cDy+ kzrM35NvJkCTtzfds50OKjqffaLQbyxNHbZWe1S3TggSxyPLm6ePbU1fAN4crgQkT+ IvxDB47tLi7Gw== 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 A4814CD11DC; Wed, 20 Mar 2024 09:44:28 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Wed, 20 Mar 2024 17:44:17 +0800 Subject: [PATCH v2 5/5] arm64: dts: add support for A5 based Amlogic AV400 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240320-basic_dt-v2-5-681ecfb23baf@amlogic.com> References: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> In-Reply-To: <20240320-basic_dt-v2-0-681ecfb23baf@amlogic.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710927866; l=3326; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=+nsr1cR06XPF08fHlBRi3tq1y5+nQcWz9Xnyv8VVsTI=; b=HvreiFnqqra1y7Ctrg1oBcSke/nvJmtjWISD1xdTUiBDGTSNh2uPLW5pnc0YEeCN3hQ4WWTVt RstQOG8wSwFDfeqSRxzg2T06J5C2uch2NFVKoju7o6ND8c98ZzmC+qc 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 Reply-To: xianwei.zhao@amlogic.com 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..2f5f5ea74bc9 --- /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"; + }; + }; +};