From patchwork Fri Jun 7 19:35:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 10982663 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 30FA192A for ; Fri, 7 Jun 2019 19:35:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25D4E2896A for ; Fri, 7 Jun 2019 19:35:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18F7B28B63; Fri, 7 Jun 2019 19:35:44 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3A722896A for ; Fri, 7 Jun 2019 19:35:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730089AbfFGTfm (ORCPT ); Fri, 7 Jun 2019 15:35:42 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33846 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729794AbfFGTfm (ORCPT ); Fri, 7 Jun 2019 15:35:42 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x57JZSrR112098; Fri, 7 Jun 2019 14:35:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1559936128; bh=g/jVvEBoDnB0yS/VyPCCLSyiDgGI0r1pNYFm7Vgh5W4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ftUO1GiCyMTWmcL2PBwG2RJapxbBdl7GV8N01lcMV1Q/+PAZhZLqqX8pocF3jvANE sLspZHpNTm3zo3S14BbDc7Yjsd2RLarzjjXcfnWwaQdO4wdzMqGMR8GoxYIZIhw21s mZTmIen92OIBxpNPM1bFK2qXlLmvs1yTD29cwoBk= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x57JZRRk090496 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Jun 2019 14:35:27 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 7 Jun 2019 14:35:27 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 7 Jun 2019 14:35:27 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x57JZR71130539; Fri, 7 Jun 2019 14:35:27 -0500 Received: from localhost ([10.250.68.219]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x57JZPm20290; Fri, 7 Jun 2019 14:35:26 -0500 (CDT) From: "Andrew F. Davis" To: Rob Herring , Mark Rutland , Santosh Shilimkar , Will Deacon , Robin Murphy , Joerg Roedel , David Airlie , Daniel Vetter , Tero Kristo , William Mills , Tomi Valkeinen , Sumit Semwal , John Stultz CC: , , , , , , , "Andrew F . Davis" Subject: [RFC PATCH 1/2] dt-bindings: soc: ti: Add TI PAT bindings Date: Fri, 7 Jun 2019 15:35:22 -0400 Message-ID: <20190607193523.25700-2-afd@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190607193523.25700-1-afd@ti.com> References: <20190607193523.25700-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the bindings for the Page-based Address Translator (PAT) present on various TI SoCs. A Page-based Address Translator (PAT) device performs address translation using tables stored in an internal SRAM. Each PAT supports a set number of pages, each occupying a programmable 4KB, 16KB, 64KB, or 1MB of addresses in a window for which an incoming transaction will be translated. Signed-off-by: Andrew F. Davis --- .../devicetree/bindings/misc/ti,pat.txt | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/ti,pat.txt diff --git a/Documentation/devicetree/bindings/misc/ti,pat.txt b/Documentation/devicetree/bindings/misc/ti,pat.txt new file mode 100644 index 000000000000..fac20d45ad4c --- /dev/null +++ b/Documentation/devicetree/bindings/misc/ti,pat.txt @@ -0,0 +1,34 @@ +Texas Instruments Page-based Address Translator (PAT) driver binding +-------------------------------------------------------------------- + +A Page-based Address Translator (PAT) device performs address translation +using tables stored in an internal SRAM. Each PAT supports a set number of +pages, each occupying a programmable 4KB, 16KB, 64KB, or 1MB of addresses +in a window for which an incoming transaction will be translated. + +TI-PAT controller Device Node +============================= + +The TI-PAT node describes the Texas Instrument's Page-based Address +Translator (PAT). + +Required properties: +------------------- +- compatible: should be "ti,j721e-pat" +- reg-names: + mmrs - Memory mapped registers region + table - Location of the table of translation pages + window - Window of memory addresses translated by this PAT +- reg: register addresses corresponding to the above + +Example: + +navss_pat0: pat@31010000 { + compatible = "ti,j721e-pat"; + reg = <0x00 0x31010000 0x00 0x00000100>, + <0x00 0x36400000 0x00 0x00040000>, + <0x48 0x00000000 0x00 0x40000000>; + reg-names = "mmrs", + "table", + "window"; +};