Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp236248pxb; Wed, 22 Sep 2021 00:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysgYOmtkvnYb3hEFLl9ZbZAvYRSKHFy1Yrb0nOj+hXW6yubSSGCvmxUiJJvYMePj4w9dGF X-Received: by 2002:a02:7818:: with SMTP id p24mr3593727jac.72.1632296080759; Wed, 22 Sep 2021 00:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632296080; cv=none; d=google.com; s=arc-20160816; b=nU32xs5RZGtCsLFOi0M7K0GHsRt8+asyXeMmp15AjsmvxUW223iFrfQG0+/rFDLeaC 8394qL+iHgwTQL5dkqYZ8c+5HuxRu6ZvmcGGb1Wbc1MWxV3e1Kn0KoA42ZrcJj/qLI7c 0+d6Dmp8nBulLDd6ndkytVHTe/zpKBl5nxaGiVOPwr5IPdCL0mYGsqxBUBPOm2b9DuPc nV5d6osUe/9rhvFHktbQ+mVoPGDsTdLgsK4W3MSxb7jlranU4ztuyuLlTg/VLgpdHLHy gToVJwNu/CIbOq7CvGWyQ8zUv/Lx5M3wcpMebimYF2sSjM4pWWcap5CBFKrrkKQ3D6eg RKdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=tGYKzh2x2sdvQQEPXIfLXdIt9e98lnMoUhTZ6g1ixnU=; b=mPItY/8S/SMvUyxHsFixMjvi5KsA84NiKLSeUbEXUO/7r+njJJazj5aZjTQMG9Z6wc ve9TorxmutMzDmvvrZd6t5CqdEblxqNWBRrABWTYjO4ytfc+aNE43b2D75BwXJCUVQEE b3F2iKmJVn+m/Ev0fILBZfJnlA3JLRoLz3z6oaAz0JYqj50RfZL/rvYbkQe3seEOH+m0 mNDrK6h0QbzrVTLH8DpeU+AvT31m5NK5q4OR5G+4npPhh/b8xwhiJag3sbqV8JRskhV2 fkJ1FnZ6PCiHbfDhv6VeDout39uApLmlbxfF5s10n05wWS/3DDuneTGp/pl93JJ0PyIG eofg== 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 e17si1990641iot.109.2021.09.22.00.34.25; Wed, 22 Sep 2021 00:34:40 -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 S233244AbhIVHfK (ORCPT + 99 others); Wed, 22 Sep 2021 03:35:10 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:60915 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233228AbhIVHfA (ORCPT ); Wed, 22 Sep 2021 03:35:00 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 18M7CPFR096732; Wed, 22 Sep 2021 15:12:27 +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; Wed, 22 Sep 2021 15:32:43 +0800 From: Chia-Wei Wang To: , , , , , , , CC: , Subject: [PATCH v6 2/4] dt-bindings: aspeed: Add UART routing controller Date: Wed, 22 Sep 2021 15:32:39 +0800 Message-ID: <20210922073241.14119-3-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210922073241.14119-1-chiawei_wang@aspeedtech.com> References: <20210922073241.14119-1-chiawei_wang@aspeedtech.com> 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 18M7CPFR096732 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dt-bindings for Aspeed UART routing controller. Signed-off-by: Oskar Senft Signed-off-by: Chia-Wei Wang --- .../devicetree/bindings/mfd/aspeed-lpc.yaml | 4 ++ .../bindings/soc/aspeed/uart-routing.yaml | 56 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml diff --git a/Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml b/Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml index 9c66795a1fb6..fdcbb7906581 100644 --- a/Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml +++ b/Documentation/devicetree/bindings/mfd/aspeed-lpc.yaml @@ -142,6 +142,10 @@ patternProperties: - interrupts - snoop-ports + "^uart-routing@[0-9a-f]+$": + $ref: /schemas/soc/aspeed/uart-routing.yaml# + description: The UART routing control under LPC register space + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml b/Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml new file mode 100644 index 000000000000..6876407124dc --- /dev/null +++ b/Documentation/devicetree/bindings/soc/aspeed/uart-routing.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# # Copyright (c) 2018 Google LLC +# # Copyright (c) 2021 Aspeed Technology Inc. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/aspeed/uart-routing.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Aspeed UART Routing Controller + +maintainers: + - Oskar Senft + - Chia-Wei Wang + +description: + The Aspeed UART routing control allow to dynamically route the inputs for + the built-in UARTS and physical serial I/O ports. + + This allows, for example, to connect the output of UART to another UART. + This can be used to enable Host <-> BMC communication via UARTs, e.g. to + allow access to the Host's serial console. + + This driver is for the BMC side. The sysfs files allow the BMC userspace + which owns the system configuration policy, to configure how UARTs and + physical serial I/O ports are routed. + +properties: + compatible: + items: + - enum: + - aspeed,ast2400-uart-routing + - aspeed,ast2500-uart-routing + - aspeed,ast2600-uart-routing + reg: + maxItems: 1 + +required: + - compatible + +additionalProperties: false + +examples: + - | + lpc: lpc@1e789000 { + compatible = "aspeed,ast2600-lpc-v2", "simple-mfd", "syscon"; + reg = <0x1e789000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x1e789000 0x1000>; + + uart_routing: uart-routing@98 { + compatible = "aspeed,ast2600-uart-routing"; + reg = <0x98 0x8>; + }; + }; -- 2.17.1