Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp397367pxb; Thu, 9 Sep 2021 03:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz77f6o8YV75N2tVS0PiHofmOcyco/uJG12+8SPHgrrvmV2SPlvtMSzCLzBhI8534s32Nqq X-Received: by 2002:a17:906:d88:: with SMTP id m8mr2714837eji.250.1631183524690; Thu, 09 Sep 2021 03:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631183524; cv=none; d=google.com; s=arc-20160816; b=s2P4D0RqdVdgNqPXFOSX6tMxF4LHboHiZqq/BfRVUCXdXtl7QCq2uXHqe1YqNCMVW0 l1cvAJtI0LMgP8Qq9p7PFs6RzuFsIoycGQk3u+wdRzHjzXqJuefnXmiKr5QJRK3ofhHk 0iPxR4c0kZFz3AKKSX69sYpnI5XPabEJX5tSdye2O1SusQlKAZoINmCQk7PLHaFgTqm+ D8fGQZSkET/BPL8m9ztXUdSBOCNa1/2iaMdWkjkqupGOLIXeJCa7XywLq2KHLEZjp1j0 rVbquNM5f06LjY3g3g7Wg3svB0/ZDWs6zxhR9DJWGIakfltNInw+Gmn67wqzuDHaOxFE AlXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=CTs+xUKKd0/AYYDTEVvaWY8aCimEHQzIN4oBv5oGy0w=; b=HzM3yJ1rvEM7H9P3qlsZ5w2PmxiltC97VGxbHHXmcDRQDxc95swytMF+vKt0LFckA/ RFxWtxctFTJ1bDXGlJRsuaD+dGKlIFo+TyYjFyjVtLh9ISWr8ACZWdIffObJkuEUFvit hYRaXVS0iuHvEZOw3JDM05b4a5ymiXIvOl559KWrqQwBDc+pycttr6/4j0EB4rhG4hCr zt3VnymRsZzs3SNXwaWyfrhUJLsaKEX4e7c91Y4QZjFAk+Yllp4NB13yoR7l+OfnAuC1 me48ag2HP9CX8KWBH/Lv+bd28esOO5JUDEbmImqpLUbMOMCER7uj0Tc7KxrA4wxvCY09 tX0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si1474254ejc.763.2021.09.09.03.31.40; Thu, 09 Sep 2021 03:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233979AbhIIKbS (ORCPT + 99 others); Thu, 9 Sep 2021 06:31:18 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:43356 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233802AbhIIKa7 (ORCPT ); Thu, 9 Sep 2021 06:30:59 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 189A9ikH075150; Thu, 9 Sep 2021 18:09:44 +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, 9 Sep 2021 18:29:14 +0800 From: Chia-Wei Wang To: , , , , , , , CC: , Subject: [PATCH v3 0/3] arm: aspeed: Add UART routing support Date: Thu, 9 Sep 2021 18:29:04 +0800 Message-ID: <20210909102907.32037-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain 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 189A9ikH075150 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add UART routing driver and the device tree nodes. v3: - Add individual bindings in YAML - Add support for AST24xx (AST25xx shares the same design) - Add more explanation for the sysfs ABI 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: Add UART routing controller soc: aspeed: Add UART routing support ARM: dts: aspeed: Add uart routing to device tree .../testing/sysfs-driver-aspeed-uart-routing | 15 + .../bindings/soc/aspeed/uart-routing.yaml | 70 ++ arch/arm/boot/dts/aspeed-g4.dtsi | 6 + 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 | 603 ++++++++++++++++++ 8 files changed, 721 insertions(+), 4 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-aspeed-uart-routing create mode 100644 Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml create mode 100644 drivers/soc/aspeed/aspeed-uart-routing.c -- 2.17.1