Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2008074img; Wed, 27 Feb 2019 08:59:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjfQLVWjLvOuUUGUmGJp2ZeF077USuRgnwrmZmtl4WE9Ap/wq8sRwdkmdeAt7ETsbEf2+F X-Received: by 2002:a62:f204:: with SMTP id m4mr2596903pfh.58.1551286783567; Wed, 27 Feb 2019 08:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551286783; cv=none; d=google.com; s=arc-20160816; b=Aga3UCaphJHUAYwjo6Tyjiuv01K7WF7/btYk4Y8jdzSg2PSBXYHA6Y+vgt2ImEBH4u B4+GTlwnc/Ga1vcn+Qxa6/qSd+pDBOAXI9Yq0iFSPfUrgeyKgksb7k8wv7o8cz41bmLF Sj4VekBvdbRDE2yMZvcwuCt0WiK9pOVJevpoYark4Pb1bZG7m3FTVGoMSLs4S+vc9qKb EsZKf2omNQlRP0pkE2Xdgiphw8wEx+sWNLo870dmcLDKpiORyV1OigJrMfBFJiAzqDYI 1n+PLfTbtSg/x6voLOGNHfJVkmh/Z79JBw3py9v7jprmcEYEWpD/W3Kl7U/lT0nkFKKf 4OLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=2eptaMvxu/Yjv7wstKV5wbLlhTQnULNRTprcgCrZVTA=; b=sTAvjWxYBkWvNP4F2hEuLCiEdlBYzhlYFz+66QqNytUCHRUyxP2eotNFCjsXsvaG3u H6Q6TYMIZ2G/pdNVtm8Y/uAFp/WwtPOOPJTvHoxHmu/V5QN1Syz6SX7PLjKk2RTj5Oue BPGpGYQTxvYtZcYPxA3VZV/UHMZ2aR0TZTINzKnIHS4ADkLxO4rsm+I6Is+NG2SAnVgo KejOqcGJ3RWHnMWIDF67XBpjvea8xXBuZox/DxNLlp7YyUbsEdIenhEJcTzwRBllD5lY rStE42lghUvn8gCEAx8PoReSFPvBDhyg6B/upC9G+VxztKGxFBvOTYvRy9cZoK/gpILk VWqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NiNs3dpH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si15206736plr.348.2019.02.27.08.59.28; Wed, 27 Feb 2019 08:59:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NiNs3dpH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728397AbfB0Q6w (ORCPT + 99 others); Wed, 27 Feb 2019 11:58:52 -0500 Received: from mail-io1-f74.google.com ([209.85.166.74]:47999 "EHLO mail-io1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfB0Q6v (ORCPT ); Wed, 27 Feb 2019 11:58:51 -0500 Received: by mail-io1-f74.google.com with SMTP id p12so13499505iod.14 for ; Wed, 27 Feb 2019 08:58:51 -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=2eptaMvxu/Yjv7wstKV5wbLlhTQnULNRTprcgCrZVTA=; b=NiNs3dpHdXbXZqRqwnb2pK2sf6NTErOjaatUdMe2afhO2BhvqYLfSHUOEM3UbSB7DJ WMu46+QAFEfrcudgE/JhjO+SKitGMURIsWGt5c6XJpxe1EC9pMsL/ev8A9msmvBk1c1+ oJ6vaNcYJ5ax8T+vEGuv+QrmNO54rDyi4s95YN4WGuK3WYYBn4GoTcOvFUB/+V4Tu6w5 CYWTzZ0pRm5By2CNgdhl9Gsct3AGfOl/acPxetOJTnnndiSmOxR7PFnH2k5l7n0qYbvS dgaXHF++sw23mc/HfbrJBhiYtOhce4VSPkmbAqFZ+lqmz6qH9YF1BmDyy+7kN5fOaY8h YeHA== 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=2eptaMvxu/Yjv7wstKV5wbLlhTQnULNRTprcgCrZVTA=; b=Fmu/Ucf3fgbMR2vCL+10kf3czvCKWEoCTIF2wr6SVsUP7bNqJonDpo3yJVMdMZzHFi vCPBqg+UcC2S2YZx3dcxZNNodvgD/zN77y4iBFI1KbXuGFnh8dhuPkyPOwpO3H+aCeeX GW9xsPp3UM60KjL60MKXpIdb1u6KouFPwNjIspHkDvf87OSFYfu4Ijr8nTb7g68T1d3E vqXhyMSJNjJQuyDb0E5yeXnpMQYY/qrYKrd/hL+ykgTfGXUaq31QBlrA+xt80qtmXqgW DNvBMUlIDPZ+ICzuAVggC9No6F7NMAZvP2N0iYEtz85NaQW/86FTvTTCFjZELk3RmzAT Io5A== X-Gm-Message-State: AHQUAuamzm5Wn0P4XWG79A5XH0x8KakvmZ808l5kq/MQo15J5GGGVJU1 2BGOVjT3phBg5XisUnwAbj5BrzQuAvIJ X-Received: by 2002:a24:5e94:: with SMTP id h142mr103861itb.35.1551286730735; Wed, 27 Feb 2019 08:58:50 -0800 (PST) Date: Wed, 27 Feb 2019 08:58:41 -0800 Message-Id: <20190227165841.143802-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.rc2.261.ga7da99ff1b-goog Subject: [PATCH v4 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. Signed-off-by: Patrick Venture --- 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>; +}; -- 2.21.0.rc2.261.ga7da99ff1b-goog