Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37109C4332F for ; Sun, 9 Jan 2022 17:47:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236235AbiAIRq6 (ORCPT ); Sun, 9 Jan 2022 12:46:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:31452 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiAIRq4 (ORCPT ); Sun, 9 Jan 2022 12:46:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641750416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/m0DGCCGgJDWa2WsJaVc+ekN3fltbDLow+eopcpVs/g=; b=azD3afQbwLNK8HfM8H4m4aKg4xQex8rjpPAPLhANryTGTJn2npSNQFp894b7WTfO+HG7g0 00CBXmzOU31Mm6pkcJxgg/pSIllLlf1ZsTvr8Ug1YtzStbu5TKk1tDu4PKF6rlgWnK14SY rA6Fk1SVCjJIzrRPvr0FCXyjpJMa69w= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-672-9IZU5LY6PW2kA0j5WL2_zw-1; Sun, 09 Jan 2022 12:46:55 -0500 X-MC-Unique: 9IZU5LY6PW2kA0j5WL2_zw-1 Received: by mail-oi1-f200.google.com with SMTP id s131-20020acac289000000b002c6a61fd43fso8356112oif.23 for ; Sun, 09 Jan 2022 09:46:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/m0DGCCGgJDWa2WsJaVc+ekN3fltbDLow+eopcpVs/g=; b=YEtozoNhxLMd27bjSKT80d/d/n1I8dzFu4Zhf5PrWend9MD1/88g301pVVsup95LPv iOjREMlo0N7OaQOXM5tqCjcQnahSpCvZK+GkBPwuRmoe9XH2fvj5JcosJ+08GeYMIazM dD4MO2i723wPlP74KirRqW42KlAe9nawZffVrEyMMTvDtzqFR01CPTsRtlvw7fBWEvk3 blDocUzIQ3PacZiivNfjipTyTRXM6zvvt8K6Sf16Q6sSZDSMBVWQEN8y0PIRA8A6wzvL eS/eRVoLXOZApnFi+HOA4FXf212aTjfP1Hkvh6/SfI7aWbJFAM5uXoMNmrOf7lNGeIVF MGgg== X-Gm-Message-State: AOAM5334DhRHYUh4eYn5MKAwGMlDt6gV7+OQqrzypBI1b4CmhhfvJnEr SfiH60joXCPuE1b12mbuiRm9blWyL2kbHtO0oSSXzMG2eaPW3NeafFsEqZqI5zO1BIPSfPb6yDa YEpKIA0++/754WmNPzB0nTBoB X-Received: by 2002:a05:6808:1201:: with SMTP id a1mr16245638oil.153.1641750414372; Sun, 09 Jan 2022 09:46:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJweDPl4PyHuvvuqinIq0jaAq2rNaiCsPD4uGdY/3qNKroGAOcF1Z+Angfs9zypXlyhd8U5DOw== X-Received: by 2002:a05:6808:1201:: with SMTP id a1mr16245611oil.153.1641750414074; Sun, 09 Jan 2022 09:46:54 -0800 (PST) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id q65sm789210oih.45.2022.01.09.09.46.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jan 2022 09:46:53 -0800 (PST) Subject: Re: [PATCH V4 XRT Alveo Infrastructure 2/5] Documentation: devicetree: bindings: add binding for Alveo platform To: Lizhi Hou , linux-kernel@vger.kernel.org Cc: linux-fpga@vger.kernel.org, maxz@xilinx.com, sonal.santan@xilinx.com, yliu@xilinx.com, michal.simek@xilinx.com, stefanos@xilinx.com, devicetree@vger.kernel.org, mdf@kernel.org, robh@kernel.org, dwmw2@infradead.org, Max Zhen References: <20220105225013.1567871-1-lizhi.hou@xilinx.com> <20220105225013.1567871-3-lizhi.hou@xilinx.com> From: Tom Rix Message-ID: <41c78998-d308-b23d-7b0e-9b668227f251@redhat.com> Date: Sun, 9 Jan 2022 09:46:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220105225013.1567871-3-lizhi.hou@xilinx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/5/22 2:50 PM, Lizhi Hou wrote: > Create device tree binding document for partitions and pr isolation on > Xilinx Alveo platform. > > Signed-off-by: Sonal Santan > Signed-off-by: Max Zhen > Signed-off-by: Lizhi Hou > --- > .../bindings/fpga/xlnx,alveo-partition.yaml | 76 +++++++++++++++++++ > .../fpga/xlnx,alveo-pr-isolation.yaml | 40 ++++++++++ > 2 files changed, 116 insertions(+) > create mode 100644 Documentation/devicetree/bindings/fpga/xlnx,alveo-partition.yaml > create mode 100644 Documentation/devicetree/bindings/fpga/xlnx,alveo-pr-isolation.yaml > > diff --git a/Documentation/devicetree/bindings/fpga/xlnx,alveo-partition.yaml b/Documentation/devicetree/bindings/fpga/xlnx,alveo-partition.yaml > new file mode 100644 > index 000000000000..ee50cb51d08e > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/xlnx,alveo-partition.yaml > @@ -0,0 +1,76 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/xlnx,alveo-partition.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Xilinx Alveo platform partition bindings > + > +description: | > + Xilinx Alveo platform is a PCI device and has one or more partitions. A PCIe > + partition is programmed dynamically and contains a set of hardware > + peripherals also referred to as endpoints which appear on the PCI BARs. > + This binding is defined for endpoint address translation which uses the > + the following encoding: > + > + 0xIooooooo 0xoooooooo > + > + Where: > + > + I = BAR index > + oooooo oooooooo = BAR offset > + > + As a PCI device, the Alveo platform is enumerated at runtime. Thus, > + the partition node is created by Alveo device driver. The device driver > + gets the BAR base address of the PCI device and creates the 'range' > + property for address translation. > + > +allOf: > + - $ref: /schemas/simple-bus.yaml# > + > +maintainers: > + - Lizhi Hou > + > +properties: > + compatible: > + contains: > + const: xlnx,alveo-partition > + > + "#address-cells": > + const: 2 > + > + "#size-cells": > + const: 2 > + > + ranges: true > + > +patternProperties: > + "^.*@[0-9a-f]+$": > + description: hardware endpoints belong to this partition. > + type: object > + > +required: > + - compatible > + - "#address-cells" > + - "#size-cells" > + - ranges > + > +additionalProperties: false > + > +examples: > + - | > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + xrt-part-bus@0 { > + compatible = "xlnx,alveo-partition", "simple-bus"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xe0000000 0x0 0x2000000 > + 0x20000000 0x0 0x0 0xe4200000 0x0 0x40000>; > + pr-isolate-ulp@41000 { > + compatible = "xlnx,alveo-pr-isolation"; > + reg = <0x0 0x41000 0 0x1000>; > + }; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/fpga/xlnx,alveo-pr-isolation.yaml b/Documentation/devicetree/bindings/fpga/xlnx,alveo-pr-isolation.yaml > new file mode 100644 > index 000000000000..8db949093ee0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/xlnx,alveo-pr-isolation.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/xlnx,alveo-pr-isolation.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Xilinx Partial Reconfig Isolation for Alveo platforms Expand 'Partial Reconfig' to 'Partial Reconfiguration' > + > +description: | > + The Partial Reconfig ensures glitch free operation of the inputs from > + a reconfigurable partition during partial reconfiguration on Alveo > + platform. glitch free is not descriptive. maybe describe what that reg is used for. Tom > + > +maintainers: > + - Lizhi Hou > + > +properties: > + compatible: > + const: xlnx,alveo-pr-isolation > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pr-isolation-ulp@41000 { > + compatible = "xlnx,alveo-pr-isolation"; > + reg = <0 0x41000 0 0x1000>; > + }; > + };