From patchwork Mon Apr 1 10:10:49 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: 785075 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 4F79612E5E; Mon, 1 Apr 2024 10:10:55 +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=1711966255; cv=none; b=JUWHz/XSYjq8/IOuzG6vGMnp7SCdK0jxPFt58FYDjMbi7+NJSKGCpTtrGNtUr1NB2DULXh62spTzbrSSFllCocyzVZDZHmxgY4lJ5r1y7R81K3OFWuCaItwTjCcmHhfXE8pEWFxioOpXAJC81CBYPldrZ+V0wIhYnIzigSUn1Y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=87vxEiXK4Bw7uWercX7BECQUi8vL2f8Pu9x/4eHktak=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eMDXXj1o0dUWeD6iZz5pYfmLXmg0UIy8onkoZUhvUGBQZEABKwquNrZAjdwH6xivTpp9CpCFtigP0GahIhtqYruQ0jpyCSytOh8hu+F1xlA0twU3XPnWfP4zFu6x0+ipQ+gTWGzEmzGc4q5IUaoAzl33azu4Ugu/Lr0k5uWdIP4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lxFxLN3o; 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="lxFxLN3o" Received: by smtp.kernel.org (Postfix) with ESMTPS id D079FC433C7; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966254; bh=87vxEiXK4Bw7uWercX7BECQUi8vL2f8Pu9x/4eHktak=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=lxFxLN3oGf0q9tbkirgIInupoQhqNN8zrXBxT7onNhhp3PREXnr5gP9xZ2ZdJc0gb GSnTx1wcpi6U9RRgLIfzCGpqNsXmZk7e6EhlQOHWINVYO25dsds1FoAtUE9cQaj8v4 TZUaHCFZU46N8MGf1f64YtY964ey7nZgfVnwf88pw7WBcOzGZtSion8R/z+Bq1HmGK gQVntk4zcTIRTr4ZnlsOW3AOfPQgOQe2YCj/tD7goWYXnCyzd7xpaarTLf4KaTh8hV 4Ltr1v4K79AqJ0UNNpTJYcqwe8J8Hu2JZH0OZL24G/ex4EBzuY9fGwv8RgZuYXHZNK mC4AHcIivPTPA== 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 BA6D1CD1283; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:49 +0800 Subject: [PATCH v3 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: <20240401-basic_dt-v3-1-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@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=1711966252; l=1029; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=qwPgdDWTmKejFsU6gaw/3XWYRmAsFuyvj2aPVFS4Wuo=; b=wphnuoooDrs+q+UVo1L5BE8A2WRQO5j1/LdinYam5CbywNyb9vcUwaME0qWhaFFCR1Wh0T5mL KWdkemYxCsABqjueasGGU48Gc2eJAWToeyYYQrponOeL8KDFPyaed0L 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 Mon Apr 1 10:10:50 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: 785761 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 51D3C12E6F; Mon, 1 Apr 2024 10:10:55 +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=1711966255; cv=none; b=DjCd/XnCFNRNH7pdEXy6HoHmWJJ+A/tn5nmVNSWrE8I5m83vF/mzaRc2CZTIs7q5ubSTCX+9xt/517Uw08Hn5M9B//E9andae4+13pOP9gi0I3rCOmzmY7Jvz473TI3oLmXI8vZp5V/MCojvuWTKYtCyF/IWs+P8ujLj4Bk/+78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=Uf0CCksxzPh94RRVnornSAILdhxqXP3ccZAL4skjSzw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pqKo3e2JgoqZSCixZPmAX29t1XSAs8H+2F4NTjcqsLAiLcDQY3RnfpEyiduR8j9xGcXzA1WMI/ZBA32prLbdEVkziKfPqfLU6Luuills7rw6XikjW6mT2UkCH81DzS5t5cYmiyooV/JFnKBi8KxWZNFQLVx0aQOEkUSGCa9bT48= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fj0vx3l5; 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="Fj0vx3l5" Received: by smtp.kernel.org (Postfix) with ESMTPS id DC397C43390; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966254; bh=Uf0CCksxzPh94RRVnornSAILdhxqXP3ccZAL4skjSzw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Fj0vx3l55hEoN0L0IuLIPThi+nEdBV66UQAuhpJAyc5hitil8zfOmgiLEheoy06xD /WCMi1Fz6v6DogktqAcbITcmwa0DEC+KGeiRTxgu+EDRhiH9mHGvjXY3dzGAE/+7Vk D2pnq4y3fM0fmT4upKK3qqhWdT3tmgstuFHHs8K+yWnnYS9vxBuUId3M05WRP8ClaZ Bx5ykOwnc6IKCAkpiIgTpV9AgUBzdZS6dHfIcafuX0tVig8E9RnRgOMjtU5Bh1BfIJ PxGAs6LYBmaErjyDPS7iyj3GpoyooO3n6C3UV6+Pu4sHs2R4rPx7X7sF8X1cM5kavf JWJdx+ibLUI+g== 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 CD5BDCD1293; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:50 +0800 Subject: [PATCH v3 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: <20240401-basic_dt-v3-2-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@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=1711966253; l=1029; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=r0xuqU4Ugjg7+rGvC23MyKK1+DvdlUD+RiCVMa++e2I=; b=7CcfDk6SyPhN7yKoit06AClCEA1AdIZ1Mg4Dx6H2q6MBebQbh5EvLxkgyXYkY5SdZgrLnyI1N +DVVa8nxlFbBKbVSctEP73cwf8sHtwbsQWb4MI7juozuWOkrR+sR/gJ 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 Mon Apr 1 10:10:51 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: 785762 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 2D71012E51; Mon, 1 Apr 2024 10:10:55 +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=1711966255; cv=none; b=HNA1tj/q/yOz1HW6xDFzKESA/qCXC85/qdCZ6FoqNJRpA3lDniCT1bgRtLLq6GlwLi24VYi6ljVA1wnugAUDW0kqq/vlahk/xVkmvQVicYIK3NJ4BS/S44/ttf3xj3+CoJYjS+VxttLtYarQMTVsa8AMbzdwDB8HBu2Sl0S7Zno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=BlBJpiUv7aUmAuFYUdvRYginZ8mbbvQ7MHOWOPOYjTM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JNGs6mYPmEBjIzBkCM9z6tcG8XGdjL9LLvu4JjuYtxz7X3vgiiukCsrSc7G5R8YbRxjELMPT1okIpBwOvfOU8cFcKY8raEAxFdPkuW5gaaLELs6Rc2RWLXlTJWd7Yf4VFXo/q+nkA30HpnaWFcJMxpqHC1BWDz7SW7VDHgHWyyI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rWOh7MzS; 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="rWOh7MzS" Received: by smtp.kernel.org (Postfix) with ESMTPS id EDFB0C433B1; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966255; bh=BlBJpiUv7aUmAuFYUdvRYginZ8mbbvQ7MHOWOPOYjTM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=rWOh7MzSja3Tv/nIkmXomxahTuXKF0z28xJ1UjSSC6Myrd78ZwCptLzhg1yszT9W2 5TlWDTV5bfTLYSIhV2yE3cyH/6Liiann71hkRcmafVhianLGdk27nVsdIIjdAcl0HZ yKvs/9AbM0k6JEGlKIgaWBT1EExijooUSbSPD/fnS0EIoXQk8gHhFRByYWgomVZi3u DKqzl2GIrD3W0fVCf1aioxwIR7oeXMVopCHKIRsdbEbHHOBu0D3/WWIX28pOytIa1T SxFqG8Iqqv/2/R5kEsNLTuyQxkVLOCpvhf9F0tDPqQGvHIiFnzxHfJJuXWYTyW80qi XKi7d11CsAsjg== 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 DDCE8CD1294; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:51 +0800 Subject: [PATCH v3 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: <20240401-basic_dt-v3-3-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@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=1711966253; l=1045; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=BoOg9oQGXAIVipNRqINyIKrEQRpu4JFfXxioyfv5GFo=; b=mZ+9Ep9WWQoTg3a/P02KSgdMBd1++x66NLZBVFzDPu+9hcHs0xLkwundg7BoZB9L42CWB88kJ IJIMFTOpNA0AqAFgMZslQiz9dJNHfYcjr9+2kgNGridt4qlPuRqOT25 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 Reviewed-by: Martin Blumenstingl --- 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..0565fb7649c5 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,a4-uart + - amlogic,t7-uart - const: amlogic,meson-s4-uart reg: From patchwork Mon Apr 1 10:10:52 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: 785074 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 70C6E134C8; Mon, 1 Apr 2024 10:10:55 +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=1711966255; cv=none; b=MGew8ZSPqL1nYViZPxY8at66bH2vd4jEj8RXmNy8EBXyztCeu1hkJkTDLjGQR15umcHr8e1svyYesySRGIwuaWdQWZ8zOSfCGyuOT4pymEUqD7Sm4YOCpXiyWq/M6u17irzfx22cdJXgA554c58MO0kEjCq3QXQCN1AhUvU411w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=2JElwhxMTZ+Lyru/NySatkrI9lsl5FsVk/jVdzEHjgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hOjmBOMdMcsbm4VqNCXF0IYoHLYQa8yUvG3yRByAvrJjSKp5YC7p5cwLq7xU1IUl/IZ4WkKmkPjL502pGnSI2uA27xC/dg48dWHqm6mMdnGIhWhd2MXMdH2zGSsmWoU6k+OzVvHQqtD11uZcbT5kzmrp8lrSSDvevODiNb8gJIw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AEGvKkRe; 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="AEGvKkRe" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0620DC433B2; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966255; bh=2JElwhxMTZ+Lyru/NySatkrI9lsl5FsVk/jVdzEHjgU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AEGvKkRejq2SMOK+FKxUN152QhuUmoKSgMd4gi6WZQCtkRdr5U7K+h31hkI1Kvok8 AHY2Q7OpAp5mlHkc+23AYKuNaKkfoM5+uDSI40LfbuCRV6EVw3KKZh1YICRpZVa6FA 2Skmn28fOeudHWmH3vHIhIdO3e7gsNwIsJrZH0oFaEqoLj9VnG9sKy4ZDxM8cGlxcw NbSqpygelJqn3YEqAqZIzhVXt91FYyxK6QS+uO153uLcj0M6YT69fpXRSmw3Yiwpv2 CI2Z9yquYotl+MCxG92CVB/PlDDIXZ+ZtsW2eC2SmMhHTy4VRmp/HPktPOcAo2tKem cX7tA1mkvXklg== 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 EF328CD1292; Mon, 1 Apr 2024 10:10:54 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:52 +0800 Subject: [PATCH v3 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: <20240401-basic_dt-v3-4-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@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=1711966253; l=5466; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=RfLd574Wp3hwxF/pWxflQftrTi/f96C/bPSUXXZxmuU=; b=y7iWoA3HnB5R9vMExVG8RSqBloO7jAcKNWCMoX0siVo2I01qYN3/Gzzf9K2JyvqFaULwstrHM eZ3EBAxQzXkD8+OphzS92wuZ8ZZSW3Ja1xE/iovJJ+ODaHZvTWLLakH 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 Reviewed-by: Neil Armstrong --- 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"; + }; + }; +}; From patchwork Mon Apr 1 10:10:53 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: 785760 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 6F215134B7; Mon, 1 Apr 2024 10:10:55 +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=1711966255; cv=none; b=JaJGmO9B4cZNMSIuyR8ink9awagLUqto6ZklMfbvVWVIOwOGH6RidbfsCy3OUQN3JF6TbOUHXqKk7Mp5ILNOs4z2eZeouLkOZxZhtGhD/m/MVCR6U4OkbZlgsrKQ23h6L0UO6qMRkQJ5V7uFzavqdsF+LEI0UYD0grbI42e+RuE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711966255; c=relaxed/simple; bh=6UGLqY9odgzIryo++HHG92e44N/TaIRCAft0GJGAV94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KSNy9LLviklrfOQ6SSjNkvM89aWCi/tB7VoAOMWGdWy86cXFhqWuC0dJZkQlkN6euHZjVLyPsjhgf17fahJqtgoB0ZZ2+mTfP6ZE5vVo/LLm7pIKE6xjwIkeXHsAH3LMp4sAZsofwonc6YV8BNi+FUACeA6ZWTYCTfpbG6bBsCk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BpQ6uj5+; 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="BpQ6uj5+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 185EEC43142; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711966255; bh=6UGLqY9odgzIryo++HHG92e44N/TaIRCAft0GJGAV94=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BpQ6uj5+YpkoDAkec+fiSN0D3db8DTNxr8cjDO+8cNg+PYc1hItriDMBxpcN08nN5 mJjmCvYs3DhT/Ldoy+fJeh3iqwkH+/JIqoN/d/XIQE7aMiaFZys/C0py6Wt6DqRtjt hiLaBEOkaGygQgoWs96awpX0v4dDEJCuIMX8THg2VtKPj6lEI8UvUjyh73qyoFvNPQ 0ehg2zj0cbshbzgc3M/MOYr/GtQrj8SFL/E7u4Hd7sRCsLRbBaidFpVXRfbIU4ElQ6 e+9CJlDIgZ1znBxebqwN6IebTIq5/aiq5/lY5Ha2ZmC3M9M2yieHtWcWdt8x5pEV0Z P5xIqgYGovrCg== 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 0AB26CD1288; Mon, 1 Apr 2024 10:10:55 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 01 Apr 2024 18:10:53 +0800 Subject: [PATCH v3 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: <20240401-basic_dt-v3-5-cb29ae1c16da@amlogic.com> References: <20240401-basic_dt-v3-0-cb29ae1c16da@amlogic.com> In-Reply-To: <20240401-basic_dt-v3-0-cb29ae1c16da@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=1711966253; l=3327; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=Dl4srjRZCo288fxVGeVbl9OCj623WT1z94/SvifjCLU=; b=7eYoRxg8m6HkOJPtSq+qik4iXOON1xb7oHenYqzrID0UuQUnaAjlRLb9MxU8Hc4eB1PS574N9 Hk6QWjRAG/HC7IKjGZZWEVNWAIWnDo2hN3aKKoOEheeE4vIcR4MiUDQ 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..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"; + }; + }; +};