From patchwork Thu Feb 28 01:52:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 10832455 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 D922017E9 for ; Thu, 28 Feb 2019 01:52:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C19B42DA31 for ; Thu, 28 Feb 2019 01:52:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B17982E2F3; Thu, 28 Feb 2019 01:52:27 +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 4AF1D2DA31 for ; Thu, 28 Feb 2019 01:52:27 +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=rZ42MuX5i2zZhGVGwZ6uFiPLBgOZ0UOpBMOHQDGxNA8=; b=ljefmwTy0F1OYu RJFccx4+eQ0hP/76YYms/q1CfNydO+OUbi7h5uLVbQ/F+MbmUi/8a8DH/DAS+pae7abfEPaXVx6C9 JxrWpsHjepR/EpVML8TYb6SQLgoMnhSLnTJ5R8HnPVVb7BY6tPq0/tOxgODacGP3udxI56JVINrNV oOLtNrTKF2Fy5OoXKJEjU442PBUVIOhRk7Ct+b4mt0s3VeDdyZKEKIIXO9l/kgPTriaqjD0WiQUSs HAzbToGw6dY+qCRCJ0zWh2G3C5One/RsdECT+TKpSTuWEqUG3XsmHfifly22rUZ4dgUYoroS7hJ1U Wz56YNZHCCFDKGXcfcVg==; 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 1gzArz-0002Xy-RX; Thu, 28 Feb 2019 01:52:19 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzArx-0002XX-BZ for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 01:52:18 +0000 Received: by mail-pg1-x54a.google.com with SMTP id a6so13726837pgj.4 for ; Wed, 27 Feb 2019 17:52:16 -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=JBlDBrSfLY1P6rn5pc11N2X4uPwgficU/JHjLghtRss=; b=R8GO7W7r23Ijqx+sj/SCcCtchfLFBXNxXizYnC4yU1vePy6+sgXiZyUCtb6gz2eZQH 2ILzls2PR+o2v4jA0ev4g+vzFW2+V0yopnatZnVXNdD50uRQVAXKjUFbs5/Pk0DX5gj3 WNMkSuOAXHISxtHpprjLpOuIFAYHPX3LZQPnGBtwDu3ggS1RcfTNqRTpwQ7UFOkbaUCd F+AM8f6o32j2JxxHBiNmefNOIeEUZ/cGfkuXFR9bvw3EdVwU7wk3OB7+SBtu0slEnDI9 GE4xrnwDYxRQDvesYJf/n5ijpTt5d+mv1Qq9+Dw2vQBaXpTSvRnjZW3SAo5LlkC3qR4L qPyQ== 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=JBlDBrSfLY1P6rn5pc11N2X4uPwgficU/JHjLghtRss=; b=c0sdXf6bhNaYbaxs8rySFKkRDwE/dph0Bz84sCTx3iKZrP4MkuumlnO2eDrE0Jw+WM JPfj10X2Pfkys+iq7bKXr172wq24yEB4yM3NNmTzT4S1FXwnI63gwZLtOq50CBdXvPyF 2hs3bDgZ9JD7ZDewtL1+VWGXFUwnqDNRYX/1iwjR7Dz/R/PhK0a02seEfC3UGra+XhHF hDd5kdAx8F5xhTHLCloKUVbId6gnL0cvLOi26Ua5v1u/Iin809AmwF1rgmsC94MlaoHH vElVM729PBeOBhc55mAOdWKIR6Aoz52v+3YZaIpWGnaxYbIef/J/RG6RKM63o17F6m44 mPRQ== X-Gm-Message-State: AHQUAuYhPltTSXwVzzoh/PAYmN9DvfTCKazFeSISJU02wWX/f9nzW1uK 3HT8c0JlaWoaWLRau3U3cHE9j/rUP0F4 X-Google-Smtp-Source: AHgI3IZbrqbcz+8aRG2gnfW8Z9zI6GUj9zLgUttkLkxUqm5rP7ZelwWsiRtkWqkWiakubLn6FeT32yhW6YV0 X-Received: by 2002:a63:4a17:: with SMTP id x23mr2251765pga.55.1551318735620; Wed, 27 Feb 2019 17:52:15 -0800 (PST) Date: Wed, 27 Feb 2019 17:52:10 -0800 Message-Id: <20190228015210.28880-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.rc2.261.ga7da99ff1b-goog Subject: [PATCH v5 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-20190227_175217_417778_C70BBB1A X-CRM114-Status: GOOD ( 13.27 ) 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 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>; +};