Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6392603imu; Mon, 21 Jan 2019 08:08:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ZjQ3o9RS166gAtB2Xzo8432IoKHewOWbOmu1U3LpcHmgFj1ZRM/dIQVCk42J/BZg3qsNT X-Received: by 2002:a63:7b06:: with SMTP id w6mr28526219pgc.288.1548086929026; Mon, 21 Jan 2019 08:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548086928; cv=none; d=google.com; s=arc-20160816; b=J3tuUQKZmPiX7PIWOGYJQ3UXJk4t9XaOojtEi1bwOyyIi0sDRoLx4O8ad6zqxN9efb agRp2RftfG0XJDYdP7xd+gA9yFMw+hNk/AUGJraMfem61yKMq0oDnn/mr7cic5X/49+Z CSyo2gxTBVpN9bm5sD9xhV0GE7EOkGdZ3VXXaCJR9Pt4TiukRJmDgoBaIjOKCAzQbQLM keBxHjSiyH+EkWUovfcaI8LDpgQdhrpXHLR2eVPrpMYTm9f/zOCQG9cTPHzBnvcqDIwq 72IJ9PHQhv+kCUU75/zMbDGxHodHVkYR0SL+zmzGKH/33gaQsKT7dyMSChdWThpmxB62 Lzdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=t/m9uNgCb8HdmU3k1ilZ+AXZ/tA96R1CZsZSAip8N3s=; b=O+xf7EnuXgZf6t1VIhSGY9Zy/ARp8ddbTCzigCyRcgupowOYQg0lBO3y/C8slVIlte d8/vN1xUoMEC7UPSGzF3WKWCJJ+d+Rhbjh1OQv6YvlhcCVO03KZOJvcBva8cq9zxIAW6 Mnzv+Bwint7+zFcaembioQrJ3Go30lv3k9kZn1fki8znAuC73NgTn0tvlUZhEDku0wMJ 3uYunf8nQQwb2D1zPScnAHmvyBctUpdCfH4drqs9eGDUNbUSxM87g5lJx83nM1gZhOPI 1rdS3dIjWIS+9Reuy415IHeroujEmREfmwAZADYU84Q25yQuOas87SqYkiLQ00JRzmyw TEmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1K2ocIG7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si12430280pfg.155.2019.01.21.08.08.32; Mon, 21 Jan 2019 08:08:48 -0800 (PST) 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=@kernel.org header.s=default header.b=1K2ocIG7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729592AbfAUQHZ (ORCPT + 99 others); Mon, 21 Jan 2019 11:07:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:35214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729270AbfAUQHY (ORCPT ); Mon, 21 Jan 2019 11:07:24 -0500 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35C0A2089F; Mon, 21 Jan 2019 16:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548086843; bh=GgvDX/gbDQMh9WASZ8PRZRz3Cxat2XSdxRLsHrCs2rM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1K2ocIG7lMGrcGt/zZz64tWSWRDozNUZN5WE8WaSgZQqoqgT3lXWYd/RYskTXew2B ubjzbLXaeXCwYW27O4r+TH0wSaJwMynWb+Q0ha4iX4uAchXce64LIzdYhCdmWc1GwY 5EmhU1ZhsRTdIV/L96pbXq2mdmEUxH7CyLX+ypaM= Received: by mail-qt1-f177.google.com with SMTP id i7so24051617qtj.10; Mon, 21 Jan 2019 08:07:23 -0800 (PST) X-Gm-Message-State: AJcUukce06qzFDLmO0bx7OxXYQ+QM6PuIehdWBLKWv87f7PNz3Dg0d2b N2YTCvYcOSye2L0zhBxIiL03SHf2Fs9F/u28oQ== X-Received: by 2002:ac8:2d2b:: with SMTP id n40mr26546049qta.38.1548086842396; Mon, 21 Jan 2019 08:07:22 -0800 (PST) MIME-Version: 1.0 References: <20190120172534.24617-1-lkundrak@v3.sk> <20190120172534.24617-5-lkundrak@v3.sk> <3191cdde84978adf98d200a9db6f3c18e0a46390.camel@v3.sk> In-Reply-To: <3191cdde84978adf98d200a9db6f3c18e0a46390.camel@v3.sk> From: Rob Herring Date: Mon, 21 Jan 2019 10:07:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/6] dt-bindings: display: armada: Add display subsystem binding To: Lubomir Rintel Cc: Mark Rutland , Russell King , dri-devel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 9:46 AM Lubomir Rintel wrote: > > On Mon, 2019-01-21 at 09:35 -0600, Rob Herring wrote: > > On Sun, Jan 20, 2019 at 11:26 AM Lubomir Rintel wrote: > > > The Marvell Armada DRM master device is a virtual device needed to list all > > > nodes that comprise the graphics subsystem. > > > > > > Signed-off-by: Lubomir Rintel > > > --- > > > .../display/armada/marvell-armada-drm.txt | 24 +++++++++++++++++++ > > > 1 file changed, 24 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/display/armada/marvell-armada-drm.txt b/Documentation/devicetree/bindings/display/armada/marvell-armada-drm.txt > > > index de4cca9432c8..3dbfa8047f0b 100644 > > > --- a/Documentation/devicetree/bindings/display/armada/marvell-armada-drm.txt > > > +++ b/Documentation/devicetree/bindings/display/armada/marvell-armada-drm.txt > > > @@ -1,3 +1,27 @@ > > > +Marvell Armada DRM master device > > > +================================ > > > + > > > +The Marvell Armada DRM master device is a virtual device needed to list all > > > +nodes that comprise the graphics subsystem. > > > + > > > +Required properties: > > > + > > > + - compatible: value should be "marvell,dove-display-subsystem", > > > + "marvell,armada-display-subsystem" > > > + - ports: a list of phandles pointing to display interface ports of CRTC > > > + devices > > > + - memory-region: phandle to a node describing memory to be used for the > > > + framebuffer > > > + > > > +Example: > > > + > > > + display-subsystem { > > > + compatible = "marvell,dove-display-subsystem", > > > + "marvell,armada-display-subsystem"; > > > + memory-region = <&display_reserved>; > > > + ports = <&lcd0_port>; > > > > If there is only one device, you don't need this virtual node. > > By "one device" you mean one LCD controller (CRTC)? Yes. > I suppose in the (single CRTC) example case, the display-subsystem node > used to associate it with the memory region reserved for allocating the > frame buffers from. Could that be done differently? Move memory-region to the LCD controller node. > Also, if the node is indeed made optional, then it's going to > complicate things on the DRM side. Currently the driver that binds to > the node creates the DRM device once it sees all the components > connected to the ports appear. If we loose it, then the LCD controller > driver would somehow need to find out that it's alone and create the > DRM device itself. DT is not the only way to create devices. The DRM driver can bind to the LCDC node and then create a child CRTC device (or even multiple ones for h/w with multiple pipelines). You'll also notice that there are only 3 cases of this virtual node in the tree: STi, i.MX IPU, and Rockchip. That's because we've deprecated doing these virtual nodes for some time now. IOW, there are several examples of how to do this without a virtual node. Rob