From patchwork Tue Sep 4 20:20:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oskar Senft X-Patchwork-Id: 969239 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 429jzt4b1gz9s4V for ; Thu, 13 Sep 2018 12:59:38 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="rWfXEH/C"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 429jzt2v8vzF3SC for ; Thu, 13 Sep 2018 12:59:38 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="rWfXEH/C"; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=flex--osk.bounces.google.com (client-ip=209.85.222.74; helo=mail-ua1-f74.google.com; envelope-from=3iumowwmkdbm7b3z77z4x.v75416dg-tb8xxw41bcb.7i4tub.7az@flex--osk.bounces.google.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="rWfXEH/C"; dkim-atps=neutral Received: from mail-ua1-f74.google.com (mail-ua1-f74.google.com [209.85.222.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 424dXg2dCvzF37H for ; Wed, 5 Sep 2018 06:21:52 +1000 (AEST) Received: by mail-ua1-f74.google.com with SMTP id k3-v6so2232623uao.15 for ; Tue, 04 Sep 2018 13:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=aMwDGMSaZGv0Fq49VYXPazShndUqO/3cXqfk8A4hT5Y=; b=rWfXEH/CWYMzpj2brWsZiSYNtOkyP7kOwNS1cf6SNiW6pqt+uSEVUckokEEZZiQY6G NAalWxcm9KHraI5MBpjvFWjbMo/4G91GsHKn1j29u9IciDbMmDIOVBVoEEZEbvi5F/9k VL3GDNUeVSWlWV0MB5kglVlYZz8hYMtN69VndXK5PuiWePH1du9p7RB13HKTxIAqdZCU 3MQ7qjo+Q8HiFc/TqIaLvnoQcsK3xTmD2yd7Ho9jURD4teAYnsVkB87jECXazCRF470K mLo4toIY07782Ahg8RJ5nShJM0nrbxSBSudfXOYI0YOKbq4zjfHy3E+aJmxh3AsYWsE6 nI3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=aMwDGMSaZGv0Fq49VYXPazShndUqO/3cXqfk8A4hT5Y=; b=CQADOTK2MB48Oy263C/5tk0a9zWnICKBxduriZW5KNG9unJK3h1iUQtB7QTttQ17vR 3BZ5wz01fo6KyXE/SiA4kiDo5EQOL/Mh1kN7VdACSlGPwAZhZxEJQ9aZRozRtYaHSV/R Q95HgKu4NPFTZlEDLPUIsA5ZfP82mhuSGKMMXXXOrtgWNTQb4JJPoBrOornu6gsK6klW u3JajxvHarkiIaiEpgvyA2i8zINJOP9HxwO2OyapZvEnBcWJgqp9Eq7OnZl0AzpOI2+w GbVncBxRjsedu8QiLghbUeXAH+lmBK1bvWmvkRcbddLvKIyojHKh1L0Pa5tulAtOZFQf XaHQ== X-Gm-Message-State: APzg51CPktxqkmtGtld4l5mKn8uzRWAGXDHeTKEQNed+Hv2q08+Pcdm8 fIgdEa7o49/xlLo+KlsWTreFxng= X-Google-Smtp-Source: ANB0VdbylLZD/SlpBFtyg0I+WeMJWH3RWT7B1XLHCNLtYTrlWKGvfXIlQoXhit8RNr6FLBt1hMea0iU= X-Received: by 2002:a1f:2115:: with SMTP id h21-v6mr14022682vkh.121.1536092450366; Tue, 04 Sep 2018 13:20:50 -0700 (PDT) Date: Tue, 4 Sep 2018 16:20:18 -0400 In-Reply-To: <20180904202018.198707-1-osk@google.com> Message-Id: <20180904202018.198707-3-osk@google.com> Mime-Version: 1.0 References: <20180904202018.198707-1-osk@google.com> X-Mailer: git-send-email 2.19.0.rc1.350.ge57e33dbd1-goog Subject: [PATCH 2/2] arch: arm: boot: dts: aspeed: Add UART routing driver to Aspeed G5 DTS. From: Oskar Senft To: andrew@aj.id.au X-Mailman-Approved-At: Thu, 13 Sep 2018 12:59:24 +1000 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linus.walleij@linaro.org, Oskar Senft , linux-aspeed@lists.ozlabs.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" Signed-off-by: Oskar Senft --- .../bindings/misc/aspeed,uart-routing.txt | 22 +++++++++++++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 6 +++++ 2 files changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/aspeed,uart-routing.txt diff --git a/Documentation/devicetree/bindings/misc/aspeed,uart-routing.txt b/Documentation/devicetree/bindings/misc/aspeed,uart-routing.txt new file mode 100644 index 000000000000..d0a93173593c --- /dev/null +++ b/Documentation/devicetree/bindings/misc/aspeed,uart-routing.txt @@ -0,0 +1,22 @@ +* ASPEED AST2500 UART routing + +This file describes the bindings for the UART routing selector present +in the AST2500 BMC SoC. + +The Aspeed AST2500 allows 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. + +Required properties: +- reg: address and length of the register for the device. +- compatible: "aspeed,ast2500-cvic" + +Example: + + uart_routing: uart_routing@1e78909c { + compatible = "aspeed,ast2500-uart-routing"; + reg = <0x1e78909c 0x4>; + }; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 87fdc146ff52..03094e8878eb 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -375,6 +375,12 @@ status = "disabled"; }; }; + + uart_routing: uart_routing@9c { + compatible = "aspeed,ast2500-uart-routing"; + reg = <0x9c 0x4>; + status = "disabled"; + }; }; uart2: serial@1e78d000 {