Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1374597ybi; Fri, 14 Jun 2019 13:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZB8+xmcwi+gveavI9n/687uyvo28eKtFChmFvgIXuYX1P5R1+VEUcyNd5MYuNNJfi+AW+ X-Received: by 2002:a63:9142:: with SMTP id l63mr19826407pge.185.1560544721222; Fri, 14 Jun 2019 13:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560544721; cv=none; d=google.com; s=arc-20160816; b=HLy6f7g52mMStP0mXkDpzzauL7/E5XvpL4MLNcrBd57HkU2M/1G4JMB1mJSBSB/geh mPrunP/oYmag1kLpGySw0fnU/3mXUQswME1YiOsBPF+KTSWIsY1/QtnXIjnj0erosCuh st+v7pyRpfF6tN+cVecz43+lQwSnz3qpsoOeThsgivtP8vOt1q0S8Sknme0gii6gpww2 7PxJIEtRHAXcoSB+z/snWJxpOVISzdMKkJmJPY1pV8ROTSTPsQVTMnazXtIEQnjK1UMr QFls6aOlKFrigfLOE79iSOwOzhoJJ9hFkdnOw4Q2VZHVN5w0C/pLRoEWZGzWO6Qu6Olv KeRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:cc:subject :from:to:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=9usBVUe6PY+PP1OHdrKw5EyLNttMfiKqy4sT9Z+qMd8=; b=sWl/CBpTehbEocE41TcKJ64OUTownZfmWVjCKN5cUt66c9TDYmoYnnnxNezk9ZC3jV XQO3mrDdvzowVVuI2gi+1eMzBLF16WYDnZDSKmpv1fkboIPPicv/1NkI0FkdLwkEjFxq Jr5QWLVDm5YSZszABzkZwYlbwwxPto8r+KIivCf0WPvd8rPHAeIaOe3ccPA/fQZ/QWZA GA5ewHpN7JCN0vdu7RnorIm2y+veiBVV9XcPaG0+o4Y3Vh56Va/T/7wqdKKamLn3OTYc tdA2tefSsOrIuC+q9bzf+DA5RpPPEZORZlfX5DjNCc3jGH534CFPYeBMthoGmojFbvvB wV3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fr/TmeQB"; 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 t18si2986370plo.328.2019.06.14.13.38.26; Fri, 14 Jun 2019 13:38:41 -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=@kernel.org header.s=default header.b="fr/TmeQB"; 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 S1728293AbfFNUgM (ORCPT + 99 others); Fri, 14 Jun 2019 16:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:35052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727177AbfFNUgL (ORCPT ); Fri, 14 Jun 2019 16:36:11 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 959DA217F9; Fri, 14 Jun 2019 20:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560544570; bh=RQFeY7ClB3qfZKUqanGUTFvCrvIQv9xp/N5O5ZqmrGM=; h=In-Reply-To:References:To:From:Subject:Cc:Date:From; b=fr/TmeQBEPKbLUgkDfSTEhkYS/y4YHrr57CLOtIcGW9sNuajAET5wxTQr07bnOLMh 7hE0zaI6D/yrtKuLXwSnBM8hQhS5xdVHThZ7fMOEmZ7C8C+zVH7d80njyK4SeX5nv0 p/a54K9i3XcPK0xQHnK47DZ6q/7T0QjynQ0+X/6Q= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <13456600.FWPkgmLa5g@phil> References: <20190614165454.13743-1-heiko@sntech.de> <20190614174526.6F805217D6@mail.kernel.org> <19cea8f7c279ef6efb12d1ec0822767d@risingedge.co.za> <13456600.FWPkgmLa5g@phil> To: Heiko Stuebner , Justin Swartz From: Stephen Boyd Subject: Re: [PATCH 3/4] ARM: dts: rockchip: add display nodes for rk322x Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, mturquette@baylibre.com User-Agent: alot/0.8.1 Date: Fri, 14 Jun 2019 13:36:09 -0700 Message-Id: <20190614203610.959DA217F9@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Heiko Stuebner (2019-06-14 12:33:12) > Am Freitag, 14. Juni 2019, 20:32:35 CEST schrieb Justin Swartz: > > On 2019-06-14 19:45, Stephen Boyd wrote: > > >> diff --git a/arch/arm/boot/dts/rk322x.dtsi=20 > > >> b/arch/arm/boot/dts/rk322x.dtsi > > >> index da102fff96a2..148f9b5157ea 100644 > > >> --- a/arch/arm/boot/dts/rk322x.dtsi > > >> +++ b/arch/arm/boot/dts/rk322x.dtsi > > >> @@ -143,6 +143,11 @@ > > >> #clock-cells =3D <0>; > > >> }; > > >>=20 > > >> + display_subsystem: display-subsystem { > > >> + compatible =3D "rockchip,display-subsystem"; > > >> + ports =3D <&vop_out>; > > >> + }; > > >> + > > >=20 > > > What is this? It doesn't have a reg property so it looks like a virtu= al > > > device. Why is it in DT? > >=20 > > This is a virtual device. > >=20 > > I assumed it would be acceptable to it find in a device tree due to=20 > > binding documentation,=20 > > "Documentation/devicetree/bindings/display/rockchip/rockchip-drm.txt,=20 > > which states: > >=20 > > > > The Rockchip DRM master device is a virtual device needed to list all > > vop devices or other display interface nodes that comprise the > > graphics subsystem. > > > >=20 > > Without the "display_subsystem" device node, the HDMI PHY and=20 > > rockchipdrmfb frame buffer device are not initialized. > >=20 > > Perhaps I should have included this in my commit message? :) >=20 > As Justin said, that is very much common as the root of the components > that make up the drm device and pretty much common in a lot of devicetrees > for the last 5 years and longer ;-) . >=20 > Also gpio-keys also don't have a reg property ;-) . >=20 Do you have a SoC node? If so, this virtual device should live in the root, away from the nodes that have reg properties and are thus in the SoC node.