Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp298189oof; Mon, 24 Sep 2018 20:48:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62AcqQ8wqb7fLBUFHmrJ+UJbQleZB1cyriGxM+C5BGw2NxOHecWa0wAT4+mU7ZvMjYudC5z X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr1494799pgf.190.1537847313531; Mon, 24 Sep 2018 20:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537847313; cv=none; d=google.com; s=arc-20160816; b=ljs+/gevPe51sexwLMXRl+y9XBFqbDGq3MWUfJSH+SvfJrO5ByxEs/Tm4xiU/anEPS xz6hkxd1E78nsBGR6xhy9qa+EP3bgA6m+9JRynlAOKR9DjSd/9QYwsUyY9UY+0FD1WRy ZoEp4KQrqaV5wMZBW5i8c6X+Ms4wu6x2CYPGUjTT9im3MxoO/Tjv5xqLL7PgjWUC9e9V wDA+oiqem1XYetp9bEhkoAwKF2W6VX2+unQUcQtFgqvai/S14h5CQKz8DsrX4Ynx3/YF k19zmRuNMzNKxEM7u5l0mCXpvDssbabghiERsJWC/AaZs8jtaxXGU46zjxj52BOOZRLk aisg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=m7xV1ChuKwFNocAR8TSDMQafzjTYdCF1FJo7hGxANuA=; b=a5BiD4a/WANNS3Xo3l+nlVJUt4As8EmDSZPyQzubRRBRnh0xO6GEl4dO3lDF6v0gLe 2BgV4SJXjjw2KC87aCIGJ/IwFHdc8d10M7u7CsbG8sWdOgUNe/4EbDnLnN3heKuO0ZDU dvFVx8YD4Bg1m2CBuCb+0cb9n3bZDkDiXlweHasas3fZ+e7Hf9wB61N+kFzmJ2IyN7oS A398jPIuPyP1lBqvK8Q1pgcVPa5atDP//92p/b3cSofUad77Rf7ZlM3OgM7BvGvofjq1 zkcnJwOydOC2jPsblDVlLUHwx/DKWHvmbae0zIkprfjwQRrc6ESJ8aCdnAYR5ndXoPov N72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=KkmOWrbp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si1227077pld.429.2018.09.24.20.48.17; Mon, 24 Sep 2018 20:48:33 -0700 (PDT) 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=@gibson.dropbear.id.au header.s=201602 header.b=KkmOWrbp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728337AbeIYJxU (ORCPT + 99 others); Tue, 25 Sep 2018 05:53:20 -0400 Received: from ozlabs.org ([203.11.71.1]:33187 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbeIYJxT (ORCPT ); Tue, 25 Sep 2018 05:53:19 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 42K6Tx1bSkz9s9N; Tue, 25 Sep 2018 13:47:49 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1537847269; bh=ROZYdAp3aOY/k8QSJaaQkfyEfaRUTUIwDlyjRjCubeM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KkmOWrbpaZeu+BrScYOZXMd9S9NdkK2y/vjqDqFjQ79jqMtmVWyzsShELL+bOuTd+ pKLkrMfgBUJ7uLrR/8JdtmONtFgzKVXhlvi6JoaIZL0OQ9+JujxvCScZJQJRNpsWpx Ugz80YBD6kxh5GwF5Oo+XUiOWGfFdQUeQ4gFQj2s= Date: Tue, 25 Sep 2018 13:47:43 +1000 From: David Gibson To: Alan Tull Cc: Frank Rowand , Pantelis Antoniou , Rob Herring , Moritz Fischer , linux-fpga@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Stephen Boyd , Mark Brown , Grant Likely Subject: Re: Portable DT Connectors with regard to FPGAs Message-ID: <20180925034743.GD30868@umbus.fritz.box> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BI7KTAps+wX7oIMI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BI7KTAps+wX7oIMI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 24, 2018 at 03:32:44PM -0500, Alan Tull wrote: > My interest here was in having some discussion on whether connectors > are a good match for handling FPGAs. >=20 > The relevant use model is where a user applies a DT overlay targeting > an FPGA region after the kernel has booted. That overlay initiates > FPGA programming and then adds nodes for the new FPGA hardware. This > is discussed more completely in the FPGA manager DT binding document > [1]. The main deal here is that I'd like to be able to add nodes > in/below a FPGA region node to support devices in the FPGA (and be > able also to remove them if we are going to reconfigure the FPGA.) >=20 > Previous discussions about DT connectors focused on the types of > things likely to be on a physical connector. GPIO and SPI got named as > good examples for discussion while MMIO specifically was dismissed > [2]. That's problematic for embedded FPGAs for example since the FPGA > is on a mmio bus and hardware that is programmed into the FPGA lives > on that mmio bus similar to any embedded peripherals. So there's a > question - are mmio busses intended to be left un-connectorizable? I don't see any particular reason that a connector couldn't be used for mmio devices. I think you'd want to treat the connection point as a bridge on the mmio bus - that can have a 'ranges' property mapping the connected device into the parent bus's address space (as an identity mapping or otherwise). >=20 > Alan >=20 > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tr= ee/Documentation/devicetree/bindings/fpga/fpga-region.txt >=20 > [2] https://lkml.org/lkml/2016/7/20/560 >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --BI7KTAps+wX7oIMI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAlupr8oACgkQbDjKyiDZ s5K7MhAAvzTQruD8Eug/NpcLk36W4uVPasCdGxhjWNmHE0+hjEAX9OET2QK1y4OL NAlDCJAiOYr9L6ljqUSP64jtJ8RKab2LhiYzS/NXFiG8f8keCiitmJXRmCQ4DoqU 7+NEKk9GpMfmtflmUcAOqAxShwiCRdfazsP3uPHGb54zMCTioci8b7vetKydmSEu hKh1aYjD5reKcb/JfVYUPQ4k38hHCrQtzcU0VECST2nkvJOCnfvmMQn5Qa+k2aow UjMPHZnkFu1WBJRrermwQs7WWpN4Lp1pVBuM/0fThUwF12AFydr2TevWHHgOgFvC iIMFbjHIV0bbzgV+bLQ2SPhJ8YB8p+H1uBnplBCLZUFUPE7/tbEK/91wcQr4F543 e/LlWlblgJHmdlV6zgqp4ZOZ/g4JuYQsscvc5B4sajheQHJ5cLG0HSj+tKZEzRdY D7P6461froQSTBjldXGY1uP5O2GFvtebdKPYepDJN/XAHHyHpJuxlMgjZsWhEZSi 3kNLTWpuHjUAhc2tsjmCCZObj5fp3+R1KnMdbbMzUSYiQD4atN5b1e0Sc78Lt9vB 51mI4xpq/2Wkt7RojTIYN3Z1X5EVSDaZxcDz5NVrjQCOS1dnM1i6m3BgExL4UQGj idcGkHtfQH/OGrD+hk0Y3VhlzMptP5AAQrYPdRudUbnesIrjzCw= =MnJW -----END PGP SIGNATURE----- --BI7KTAps+wX7oIMI--