From patchwork Thu Sep 2 02:18:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chia-Wei Wang X-Patchwork-Id: 506762 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D428AC432BE for ; Thu, 2 Sep 2021 02:18:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8A78610CC for ; Thu, 2 Sep 2021 02:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242175AbhIBCTS (ORCPT ); Wed, 1 Sep 2021 22:19:18 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:2875 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233087AbhIBCTR (ORCPT ); Wed, 1 Sep 2021 22:19:17 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1821xAgu068909; Thu, 2 Sep 2021 09:59:10 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 10:18:15 +0800 From: Chia-Wei Wang To: , , , , , , , , , Subject: [PATCH v2 0/3] arm: aspeed: Add UART routing support Date: Thu, 2 Sep 2021 10:18:13 +0800 Message-ID: <20210902021817.17506-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1821xAgu068909 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add UART routing driver and the device tree nodes. v2: - Add dt-bindings - Add ABI documents for the exported sysfs interface - Revise driver implementation suggested by Joel Chia-Wei Wang (3): dt-bindings: aspeed-lpc: Add UART routing compatible string soc: aspeed: Add UART routing support ARM: dts: aspeed: Add uart routing to device tree .../testing/sysfs-driver-aspeed-uart-routing | 15 + .../devicetree/bindings/mfd/aspeed-lpc.txt | 22 + arch/arm/boot/dts/aspeed-g5.dtsi | 6 + arch/arm/boot/dts/aspeed-g6.dtsi | 6 + drivers/soc/aspeed/Kconfig | 10 + drivers/soc/aspeed/Makefile | 9 +- drivers/soc/aspeed/aspeed-uart-routing.c | 601 ++++++++++++++++++ 7 files changed, 665 insertions(+), 4 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-aspeed-uart-routing create mode 100644 drivers/soc/aspeed/aspeed-uart-routing.c Tested-by: Lei YU