From patchwork Mon Mar 4 18:55:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 10838241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 22AA214DE for ; Mon, 4 Mar 2019 18:55:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CC192B0DE for ; Mon, 4 Mar 2019 18:55:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00B4E2B101; Mon, 4 Mar 2019 18:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C9502B0DE for ; Mon, 4 Mar 2019 18:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:Mime-Version:Message-Id :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=VYmxFMPluSqIIjPU9BjIvXevUDlzDcU39hhJHBL7Wmc=; b=QVMbKKn87bouyo S8aVcBWY5tLKOy79vzL6aD78h96zsF8V57v0b9vNJaqvuvJKeeXf61HRnpYWPksdKU4a1021QAiBi fYtqHHSJHR7yIWyMdlfp6CIw1c0F3kCQMPX9W9FtqR8l0d5Bmg5nfrRyG1fLP0bgOdCQnt24xtNpT 3R/b92V2i2aigewme+oKHQf6x6qX1hMukXLSeBqQSN8jRDSKyTAITIzyxqqXTQawbGVDdjUe7BGmt 3L/yWS2TUVmereBxSDTwM3MO7cHXhg+tFkhIgC7CjyOrWHt/0BU5EeAXYWT3m+SXCgV5Y8S7+u/PI /KEmqAtEYvQJ2HPm7RTQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0skb-0008Bc-GU; Mon, 04 Mar 2019 18:55:45 +0000 Received: from mail-io1-xd49.google.com ([2607:f8b0:4864:20::d49]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0skY-0008Aw-KE for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 18:55:44 +0000 Received: by mail-io1-xd49.google.com with SMTP id m15so4952892ioc.16 for ; Mon, 04 Mar 2019 10:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=d9nLB53oEnMGgXC1Hi2LQ95UjAQxG8k1zRQvUzAlKcI=; b=h4ooVBiy33Q/QktvjkhXIv/KNGQ7M1bkgVZbitrl2LCPYy4l4op+v3YVnE77z4mFf4 xyNgd0jo+3nACpcPXqTk36edEFxqBKelNRYr6ED8uW0y/zKVXfX+8Cv6SfZt0nqEiu82 5JF8rgWmKI0mMZmSBVNw7mquiUL556lg+nsMstsK+XGNABwb71y8MIp79XdPFx/9jto2 W3G5hY7gm0qKoL/Qi7cyLm1g0AgX+SFtXya7VpiyltWg3EPUtuwwc/D0H+qz9c8d9IE+ LBLH2km5v6/O0ezwdidr9uJyTV6lD0uYTnhthwP/Aujs6US4pJmFpGwRD2WLCyoHOVZk VBXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=d9nLB53oEnMGgXC1Hi2LQ95UjAQxG8k1zRQvUzAlKcI=; b=YXqJNHGWFcuUoLM6jjCyN1nPEL2Gq8AwStR6aPZOIYk6GmfLkP95bQwWaUPKk7HVNf xQDCnFmnjMKAHpJjdfm/HwEbYc3bvWyGm6/9ORMbUEC4LwthcVwPnx/vyhjJzjNYO3O1 NoII/D4q7p9thJA6Sc0o671PVSdjscrehYW301pkhPn+5zNKUYu6wdAiX93jcKnBc7Pu Hlhp7dyzoWKenn5j+UpjZD/TB/e1kdw6bqERvEHzC9LDXgPfHhWTlzfeeSwNN/ZtVeoh II6+KsyDebnqiOEtBu8+4Ovg3ouxVUDX8p8mvPH4THMqs0kmzepGi8QJV2KqXu5UfNoK /5Cw== X-Gm-Message-State: APjAAAXPoCBCCGOWdhX14VX3lV7bkiO5T/l0vnSqUgWAUw52qsKmkeEZ dcAwLaTbAowNDuBeRX4lSJlhvjAiVLyz X-Google-Smtp-Source: APXvYqwpygwmAHneUpkicCxmRcGUQ9EkQ1iZcKmesx3ZUVxH4jALehHTuJO0mM+wdnNYcZeozMoiXgf7SYWw X-Received: by 2002:a24:5dc9:: with SMTP id w192mr341958ita.33.1551725740649; Mon, 04 Mar 2019 10:55:40 -0800 (PST) Date: Mon, 4 Mar 2019 10:55:36 -0800 Message-Id: <20190304185536.211084-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.352.gf09ad66450-goog Subject: [PATCH v6 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support From: Patrick Venture To: venture@google.com, robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, andrew@aj.id.au, gregkh@linuxfoundation.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_105542_684917_D1215BF6 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. Signed-off-by: Patrick Venture --- Changes for v6: - None Changes for v5: - None Changes for v4: - None Changes for v3: - None Changes for v2: - Added comment about syscon required parameter. --- .../bindings/misc/aspeed-p2a-ctrl.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt diff --git a/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt b/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt new file mode 100644 index 000000000000..1092d62d1c92 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt @@ -0,0 +1,32 @@ +====================================================================== +Device tree bindings for Aspeed AST2400/AST2500 PCI-to-AHB Bridge Control Driver +====================================================================== + +The bridge is available on platforms with the VGA enabled on the Aspeed device. +In this case, the host has access to a 64KiB window into all of the BMC's +memory. The BMC can disable this bridge. If the bridge is enabled, the host +has read access to all the regions of memory, however the host only has read +and write access depending on a register controlled by the BMC. + +Required properties: +=================== + + - compatible: must be one of: + - "aspeed,ast2400-p2a-ctrl" + - "aspeed,ast2500-p2a-ctrl" + + - syscon: handle to syscon device node controlling PCI. + +Optional properties: +=================== + +- memory-region: A phandle to a reserved_memory region to be used for the PCI + to AHB mapping + +Example: + +p2a: p2a-control@1e6e2000 { + compatible = "aspeed,ast2400-p2a-ctrl"; + memory-region = <&reserved_memory>; + syscon = <&syscon>; +};