From patchwork Thu Apr 4 15:25:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 10885807 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 445EA17E9 for ; Thu, 4 Apr 2019 15:26:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AC2328A9C for ; Thu, 4 Apr 2019 15:26:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E46728AB9; Thu, 4 Apr 2019 15:26:00 +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 B628228A9C for ; Thu, 4 Apr 2019 15:25:58 +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=BzUx9GELhYsXsaT7dV1GmxaV9NnzRQ2Wxtqe62FFx4Y=; b=L73TfsfPyhvMMe A2QLzXgFibVDYJaugb7JSck7Nf71oM52UulT7J6dWKvr3F6p13qs0nxQEPV0z0T8ZWFD6OQOYFeMX V5Tk4GHhY+AtGQu8q/fvCZ5Z5XoyTAA154Ft2gXPUr9Hwy9btIE+VhxF7H6m2mQB1bswiyW7kWjLD sTO5zOsvY3eyjT+Qps95Q2naQkPJBcXO1QDoeBHfQbb1rLFwGn8Xi6dsq7xwiKFshWAgO3HjlgXqw RcojuKzWA1M47VijqcxlAUd+JSXtsnt6cXYAZmBlT9PA647cXHcYxuDU7MnPIZHPK+ezVp4gkvUsM L3KdRmEVCeZ7ETnHxoXg==; 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 1hC4FV-0003MB-CN; Thu, 04 Apr 2019 15:25:53 +0000 Received: from mail-vk1-xa4a.google.com ([2607:f8b0:4864:20::a4a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC4FS-0003LQ-Ix for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2019 15:25:51 +0000 Received: by mail-vk1-xa4a.google.com with SMTP id q135so1170087vke.9 for ; Thu, 04 Apr 2019 08:25:49 -0700 (PDT) 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=YhJ+d5AHWHSW4lcy18GH9PHI/gj3+t8IvEH+dm6SEm4=; b=nJ9Gr11bWK/ysPB/ZjK/bSNXKDZuI43qYeAc2i21z+AaGaRnWNKpNDp+MVuf0rPIre W7S7epUF8F8ELNZv7MTzbLEaElNsdged6ag8cxKKDcVLxcktLWkiu8rV+4LLqZ4gJSCG pMjvw9MgzcfRuZ9ZcPHm772rAjClVhih4j3VYaZNCxdnG/4LEMDBiwzh8kFrfO7ti+0h +NnYv/e3v7/ydGDO8KXHIxU5O/n/qdKJLvEceAcSGrz7PfFLhe3/YE7Vttts2Xlu0l7W gQRjvafGZ7/i7o6R6TCTqFVkXQbUawmvNZCNnIi+Xvmm0jxi7cv6uSCILLvpyGtM/f31 qgYQ== 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=YhJ+d5AHWHSW4lcy18GH9PHI/gj3+t8IvEH+dm6SEm4=; b=FS/NxU94Y47hvfDfb8wOhTf18pGttCcV6Ta0NsuTQ7yQ5/nfCshpPOl2SfamUBBEFG DaSDmXxG8eVc08NEWzdtEG1DezPz6pOIUHYhF4weJyPqZCdu2yMsogcjcTArlvqjzNpl Fnf2VruLI7LgYmAsCAITAvU+jcVQBTSkDI6VoX/ONg1LjbcaoyZD1ByPAZ0gYNO97Yl/ lXEwmcfYCzhxGj1NExyDDKF7ur46QRXCk3iEKW8PWfyDr/Jqb3FZc63JNL3EHJWw6UCK kWu9ywq/onrGUFQxaty1zZTHZU9GEPezPwVKs0UjhM0ON5KQzsLp1l3tZjzmuN/3Wdjd k/Rw== X-Gm-Message-State: APjAAAX5BftumsOn4efJKVkC7MHrRWnCTN6wlbFF6G1fTn5aaGabil7g vULiKR3fwqoHoac6Nh/7RfwVzKPIWIMQ X-Google-Smtp-Source: APXvYqzhwZFAaZsz8YOZm5Za/HDnuCAm/4fPknG/MUrV7Ux0nN0yY1KuJA3Jd2pHyBhkWJvXUt/YoLtiH4IN X-Received: by 2002:ab0:2554:: with SMTP id l20mr787672uan.4.1554391548228; Thu, 04 Apr 2019 08:25:48 -0700 (PDT) Date: Thu, 4 Apr 2019 08:25:44 -0700 Message-Id: <20190404152544.214988-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH v9 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-20190404_082550_650498_9C995142 X-CRM114-Status: GOOD ( 12.92 ) 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: Rob Herring , 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 Reviewed-by: Rob Herring --- Changes for v9: - Added missing details about syscon parent Changes for v8: - None Changes for v7: - Moved node under the syscon node it requires 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 | 56 +++++++++++++++++++ 1 file changed, 56 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 0000000000000..05ed654848b60 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt @@ -0,0 +1,56 @@ +====================================================================== +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" + +Optional properties: +=================== + +- memory-region: A phandle to a reserved_memory region to be used for the PCI + to AHB mapping + +The p2a-control node should be the child of a syscon node with the required +property: + +- compatible : Should be one of the following: + "aspeed,ast2400-scu", "syscon", "simple-mfd" + "aspeed,g4-scu", "syscon", "simple-mfd" + "aspeed,ast2500-scu", "syscon", "simple-mfd" + "aspeed,g5-scu", "syscon", "simple-mfd" + +The aspeed-p2a-ctrl node should be the child of a syscon node with the required +property: + +- compatible : Should be one of the following: + "aspeed,ast2400-scu", "syscon", "simple-mfd" + "aspeed,g4-scu", "syscon", "simple-mfd" + "aspeed,ast2500-scu", "syscon", "simple-mfd" + "aspeed,g5-scu", "syscon", "simple-mfd" + +Example +=================== + +g4 Example +---------- + +syscon: scu@1e6e2000 { + compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd"; + reg = <0x1e6e2000 0x1a8>; + + p2a: p2a-control { + compatible = "aspeed,ast2400-p2a-ctrl"; + memory-region = <&reserved_memory>; + }; +};