Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3560309pxb; Sun, 26 Sep 2021 19:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsup13ViMbWQfNlK7uvB+4cqqbOEJEtI9SFGDa+XGJh4CiFcPDfCAIls12EO+2y+U7zVqY X-Received: by 2002:a17:902:e5ca:b0:13a:4f10:b1f0 with SMTP id u10-20020a170902e5ca00b0013a4f10b1f0mr20412395plf.54.1632710003384; Sun, 26 Sep 2021 19:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632710003; cv=none; d=google.com; s=arc-20160816; b=hfR0L1aUF5p/lqCll7ogRpQ19JQxg7gUjqy+s/A791Tj308YYXaWVumW1hOcrTJx95 u9p67G6fXvzp3mSONivdde3fuI86pyHNrfJ7tiTx99PFoLYzzucUNH810vVfyEWnVvRM s/SnW4wbxWWx+y26KfG/+npPrC3TNz1LrgfaAakBzp+S1NOlBEb+99xujbJCH7wpQg5Q LZ57RrF2d0zHrUmVSX1RTE6tnUrVvhUsqQWxG0obQQpZ1dEuuZYlWDIzGvEN2S5sy182 aEuPpa2yBbwEPGsp5dMMAkd2Fz/9cNhHuD4prQy401qIVJa6x5lTFGu233WvWUhZVi6d ZvmA== 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=sRKnRDQiGy1L+dAVoDQIpsUuFQMzTVcB9kVG2QHyVgY=; b=AakOsrfRwkAdRksWeJHUaPS6UUp62nbhq6HcT9VYGPmC6uJ9BlEDMbOUT7ufg8kCSf T4RW4fWm7vqGzdNEjbpMmdsMvleYKr8cIJ0FMVL5lArulWh7+1crZC29GpDdCnhdW7Gc oOg51W9Clj5X+mR9ps1qme8gwlDvidNeJ7KdlMYLIM3QDd8ZHbiwRDNz1DsO+IR8Cao2 dFRcoJg4xhE3pjBjQmFhjk5Nc7WzdudgbznXJ1LtoMOXEVakS/TpLFCUvQp/iX4wKHKh R8T6sc1xHwQ6dDgTZFbX8judeQlndbyUR7wDVcCEyyvMD+wc6GWF+orPnermU2LedUfl Iiqw== 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 kk4si13207495pjb.103.2021.09.26.19.32.59; Sun, 26 Sep 2021 19:33:23 -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 S232493AbhI0CdN (ORCPT + 99 others); Sun, 26 Sep 2021 22:33:13 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:64565 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232459AbhI0CdL (ORCPT ); Sun, 26 Sep 2021 22:33:11 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 18R2AIXn038748; Mon, 27 Sep 2021 10:10:18 +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; Mon, 27 Sep 2021 10:30:55 +0800 From: Chia-Wei Wang To: , , , , , , , CC: Subject: [PATCH v7 0/5] arm: aspeed: Add UART routing support Date: Mon, 27 Sep 2021 10:30:48 +0800 Message-ID: <20210927023053.6728-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 18R2AIXn038748 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add UART routing driver and the device tree nodes. v7: - Drop unused 'reg-io-width' properties from LPC nodes - Revise LPC bindgins as suggested by Rob v6: - Fix another typo in YAML file - Move sysfs description from bindings to ABI document v5: - Fix typo in YAML file to solve the compatible string not found error v4: - Convert aspeed-lpc bindings to YAML schema to resolve dependecy issues 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 (5): ARM: dts: aspeed: Drop reg-io-width from LPC nodes dt-bindings: mfd: aspeed-lpc: Convert to YAML schema 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 | 27 + .../devicetree/bindings/mfd/aspeed-lpc.txt | 157 ----- .../devicetree/bindings/mfd/aspeed-lpc.yaml | 192 ++++++ .../bindings/soc/aspeed/uart-routing.yaml | 56 ++ arch/arm/boot/dts/aspeed-g4.dtsi | 7 +- arch/arm/boot/dts/aspeed-g5.dtsi | 7 +- arch/arm/boot/dts/aspeed-g6.dtsi | 7 +- drivers/soc/aspeed/Kconfig | 10 + drivers/soc/aspeed/Makefile | 9 +- drivers/soc/aspeed/aspeed-uart-routing.c | 603 ++++++++++++++++++ 10 files changed, 911 insertions(+), 164 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-aspeed-uart-routing delete mode 100644 Documentation/devicetree/bindings/mfd/aspeed-lpc.txt create mode 100644 Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml create mode 100644 Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml create mode 100644 drivers/soc/aspeed/aspeed-uart-routing.c -- 2.17.1