Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2670234imb; Mon, 4 Mar 2019 10:58:06 -0800 (PST) X-Google-Smtp-Source: APXvYqx2/30Tid4YMx5RdR/txkE+TBVOIutdXtIrPTDmHhJcEBcm95NI4IFKOLmvXLtEeu3ee035 X-Received: by 2002:a17:902:45:: with SMTP id 63mr22121588pla.281.1551725885939; Mon, 04 Mar 2019 10:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551725885; cv=none; d=google.com; s=arc-20160816; b=JqHFZN64Ji6sa7hkIv/f9jBqIE64wUgCwK0Px1YjVh2Y+FKKkWYmV+zl+WdLpeGW5T HIrm4Sp5DkNi/w2PPDrfsIxQAPItsQuiTDuND3HwYH+Z8QW9xNnSoKL1nqzg77rOndec d0xc/dzztSErvRc8/cSEVh7sWEpqrc3Gaaom4M1BrTGGmRb9FScafNJuv4MJ91RhgX/6 oNJdyKIkm4W5AlQryrXcmWOzyEFLpdOtbEGEeFK2kc+3C6JNg8jXXXidUZwJE7qtxJbr ThSs9PVVJ3jq4+3IbZ7mJXoxxwPShRhuL4y6E1EAzI8wva89qP1C4YkRRpkqd6dxc0UR gcIw== 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=d9nLB53oEnMGgXC1Hi2LQ95UjAQxG8k1zRQvUzAlKcI=; b=xYe9Y7CR+rHFroP3J8mH0eUhSaNv/M2CBPNNiBcyCLO94Ia/ly20YelQccaMUeGaYq REINjcC3b4dtWPpxvyXqVdRZhfsvlIIbWkTXssYvt/rA9bAaZ9Ad2wvW2jIT/DVhyh06 EDe4718v3NydaRY56puIayuZXwzrDOujYNQ9ptgQvbl9/ENUrNGFlzfTyAfy+ajfmQqY yDgAtrVVkgWl3s15KR3eRbhc/BWuxqD/aDbjNOSE97Hjx+3d/4Dxpz57uyj1dyjmjvYp HRLdgWfHHyEHrYy2fHuvIg9oyc8fBU7V0iIRNkz1GQhZsPUKwmGGLEkD1PrGHv/5o6B7 nzHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h4ooVBiy; 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 h11si2964168pgs.432.2019.03.04.10.57.50; Mon, 04 Mar 2019 10:58:05 -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=h4ooVBiy; 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 S1727283AbfCDSzm (ORCPT + 99 others); Mon, 4 Mar 2019 13:55:42 -0500 Received: from mail-io1-f74.google.com ([209.85.166.74]:46653 "EHLO mail-io1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbfCDSzl (ORCPT ); Mon, 4 Mar 2019 13:55:41 -0500 Received: by mail-io1-f74.google.com with SMTP id r21so5033619ioa.13 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=Lb8adfc29YN8LKrwNYTdKGuiXULEmdwoukd7Y/njDiDUQU7+JqsM1r6GEH281ZuZ+v HKHKHHk1fdHR4eWSOc1TVPDD7EUo/DnUhsmaEpyIykJl4v2hCN/lZTN1AJDdfFCXFb6Y oaWfCEC7zZjOGZX++qRhdQOn6F4pKR/MNrAkXWvcF0KmcjEMSa2hUt7qiu8CiLzxIPhr NbJnpFlTNwYDbNvLy7aZAr+xZQ1uxbq5HBm0aP3d9HBCaMZRgyljccy4LotZBzMqqKPP iWP47fnjVFDoqCs8n7c0JOeFsKX7s1XIPhNtPsgPQjmuykVJKWMaRsmHHm5DjCwObIPu iz4g== X-Gm-Message-State: APjAAAWpuJVOy7Zv2trwyulHkGidhOamuwrN5MYViz4VMxAQ0yd/vZ4m SAqEWDV9t0wBWBo7rVTpNUSM0txie5sF 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 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 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>; +}; -- 2.21.0.352.gf09ad66450-goog