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: ChiaWei Wang X-Patchwork-Id: 12470743 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 D4226C432BE for ; Thu, 2 Sep 2021 03:49:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8F97E61041 for ; Thu, 2 Sep 2021 03:49:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8F97E61041 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PZT07w//rFSWMZu8tkErqALzc7G+CIt6y+LQ6oHQ7+I=; b=FRT9qWnxQv6tpa J88JngunhJTxeRynsq0aKz5hTGT4j1XjF80NiHJ01Yrs9Q5d9Upk4zZswgBdybyV7bcP4VNnmxQhj yhhtHubiIDQo5K/hHP9lCDqB4plPwO62A2OUJuI5FD4QkrMhPKtSey0kwWVToA8bKvGlMF32NjpZG nGNx4Vxbg+0nycJ+r9JCFkDEkGVm165308gstn2HXk0cRnEPHocCaEGW3gzJ8Zm0LbexUAMm19lB6 LtbdrFqRHlaQwHK59TSzSoEwDyM2oWHHIK6qh+DEQSP1xiSBC8deqBX95ccf2Qu1f2SxUie8lekDj DFgtXrcgT4lu/DPUEeaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLdhV-008MzL-5u; Thu, 02 Sep 2021 03:47:41 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLdhS-008Myh-1A for linux-arm-kernel@bombadil.infradead.org; Thu, 02 Sep 2021 03:47:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=flE6iP89ml56/yj5D9gSk8+a8rpF9M+fTWYgwhzz7Ig=; b=Sa0x6KZ+0y4n8m4eXFwhOS2Oye tnTJDNoEwuMt7KwypkiH/+kh0B2xixlzpML/Z3CTSiNz/Adr6svIbKz/EHeHsapU8XzUqpuTqIDjS 5sYO1tKIrKhXYncxxVvj3We72nEnDGJ+n9l4SNI3eLogfcn2Pyq34Ef06y+2ILVyXUh8ePX1MzWhP abw5yVB2pY4EgqTRqmhI+5lNPHotBlf/W2533m7eaAmMWf9RIyNGqafrafI7V13xTvRidiIQf1eLl CNXzSJbOXjSZWmF0deUROf5/VWlMZFJDE62sG4UMsM+fXZTasafSzZEUu+4OO7OVuVpHE3pBgcvDn uQ3DGBfA==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLcJw-0031Lg-3a for linux-arm-kernel@lists.infradead.org; Thu, 02 Sep 2021 02:19:52 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210902_031934_817443_ABED6EF3 X-CRM114-Status: UNSURE ( 8.20 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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