Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2449653rdd; Fri, 12 Jan 2024 09:40:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8wk4Vpc2eg0NE3ujMWxeMk9LeYk44yZ1RZnJWq6YdJShra3L/8GbOh6idHVYZyLhT7uYr X-Received: by 2002:a05:622a:354:b0:429:c9eb:da96 with SMTP id r20-20020a05622a035400b00429c9ebda96mr1855093qtw.102.1705081236728; Fri, 12 Jan 2024 09:40:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705081236; cv=pass; d=google.com; s=arc-20160816; b=dHeyk2e+X5p5LQMRK8P/8rBnNK+rjvGrHIuqjOzj0Kq3iP5Z0yJNikPCEO1pegBXJY y3zmcq7fKC9FlsyFWtgXKFLqdD4blQjtAX4SIpaDyZJtDmXRyVfoDYkmlYg3lKFY362o 0Ku+AwZbpxLoSQBxN9btRY2EOtIvc6iwSskb+pvve6gwBSuV8OPfKtzgs2HGGEsNSJKg Hzwxsb1HtuBNVpcXp0BoXQsmHTJXh66EmVWTVgudSjznfz+blH19sJT6/fRauMFhbvw0 3KHiZNCuz8Vu36yiulYo7kWzqJa5NArDaZvACS7i0ytlpPc8MuM+ne5AZCv39NZjIOzR 9sZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature:dkim-signature; bh=x1r68xA9wRZ4ANIBi9hA9+/f2i2/5reMcctFU/rKIWM=; fh=XF1ltB8ZFmZT0GjHMVQMaw+B17FBm+ZDJ7P+CGE5oME=; b=hag3vfXZmNMXlMTHoGuTPW7tYuhMio9SylHkNoyvlNdRMjY2ZK+yExI0wkSFO2Y42O i/PXT3t1xNBm6LF5XHpbZuDp91FL1SDdXdxpvyKP97LwqNLeyPETy2d1dapmq0U/Feht XjqNrrGTT1J7HDJVvxP5ue3AeLH3g/Mtqo/C0P5kMyij4wvkcr2v83iDh2hptGbraHKN vAJJuhG83GIkxVDCIcX7FUixZ36DxoxdNadWylCE1cm/LqzHlJ+jiuRcfV583H6R8GRI TNsicbdao5z2U2VEoDn4qEwMW1oFQl4kpvAH074tnib9KOwcgUIT3SGeYJc8SpG/nHez +cQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=jL32j5Fw; dkim=neutral (no key) header.i=@goldelico.com header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-24925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24925-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c11-20020ac85a8b000000b00429bcc54cf1si3349361qtc.531.2024.01.12.09.40.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 09:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=jL32j5Fw; dkim=neutral (no key) header.i=@goldelico.com header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-24925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24925-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7DEE91C21F33 for ; Fri, 12 Jan 2024 17:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7617717BDE; Fri, 12 Jan 2024 17:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="jL32j5Fw"; dkim=permerror (0-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="pHXvjyM6" Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DB6822637; Fri, 12 Jan 2024 17:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=goldelico.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goldelico.com ARC-Seal: i=1; a=rsa-sha256; t=1705080852; cv=none; d=strato.com; s=strato-dkim-0002; b=W3GWy0FmIaj8bnyQOLBzXX83ySwtjGcplbG/RlF6oXx9qygnBd9EMgXtiadN4VCuYL Vzb9K/1Q4zEh0B7XcKv8F2Sx4FijwnMPXysHfKJDCuQG0VCoTY5bqyISD5X10Sklu//B 6VkzB1eAyWBDr/bYsxdCjCk7edGU3pgaP2hEzvpyZbAxOha7gyG3pLDtiV5WNhRfEYbL TDD/pLVM6nJvYv+XcCrZwcaohlv+M2+F2XzRIFeiekgqkBmiLXVXMh3jQ6/CCRVmglED VgmepBQlqLq+ZF6ebJlWo7K1uGUcBpy8sQQyJjroV+U5685/yWLccmDVI8r77ioDgMW0 JoMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1705080852; s=strato-dkim-0002; d=strato.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=x1r68xA9wRZ4ANIBi9hA9+/f2i2/5reMcctFU/rKIWM=; b=VDcJUmHB6n+dNWMqrBgIeSm07uZuiZ3Lo4YHM+4lHTEf/fShWCuTsnhOvGLLQPDnuX DVAPLYAUhm05iR1fke6fvyGt2yjAOY9M0JpWsM0G7ZDb7NOVtKdS5okSvg27EKDAjxe4 EZA65KUjsuxqrlxq3A4GvhvmCzWHoRqtwrIEFgzCZ+5/k2+oHOIrVt8PoLSJaD5ZuoIt SkIGnPo+f/Kh0VfwAACyGqpv0UWlsRVd0cuYtQVx3MTV8cVZA1NPKmpaCAhndTK188ip jcc0l/OXnhCOTjIjugpKHKxL3l3jO3UA4Ps7c/ux8panbv6FBehkIg3hmwU9B0kTY7rX EJQQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1705080852; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=x1r68xA9wRZ4ANIBi9hA9+/f2i2/5reMcctFU/rKIWM=; b=jL32j5FwaeApRttmOhW1Gu7gSfqOtYGFDHV/dfmiVwk6lv/rGq6WkiuBz82beG8UnO swrsv0PhvQYaN21JZmxO2+xU2OKEIDHGCNxj9juFGzg+Ldkd0mhSBo97APtDJ6U+LRqu 7blY6TeqlvdGLoENvx22BbsH/dahwDdBTiZ9BLCKDH+ergN8Y0RIkiA25I65IuRw4QpB qzlOiNthWw+WTgSS1LzxBVQAwVwPewl9NQf1D7CfvSzknu8aEGQJDyWjtSAjV3d/ogkE eT3drVtVQwHCoz/BHuQVEe8SLaX+rax4SpDu49ZC3/DEwQeCoUx/w0zBh8zzKKg1e7bO eWKg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1705080852; s=strato-dkim-0003; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=x1r68xA9wRZ4ANIBi9hA9+/f2i2/5reMcctFU/rKIWM=; b=pHXvjyM6SXoq2JN88aS5Df7FeZdKXhVFedn7SwZ4nyqUqIMi1EYmq65gduamPGp39D E3e2r+2FnzciMSGM/LCQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Apz9PSN6LgsXcGZjDY=" Received: from smtpclient.apple by smtp.strato.de (RZmta 49.10.2 DYNA|AUTH) with ESMTPSA id dbe64400CHY9PpN (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 12 Jan 2024 18:34:09 +0100 (CET) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: [PATCH RFC v2 04/11] ARM: dts: omap4: Add device tree entry for SGX GPU From: H. Nikolaus Schaller In-Reply-To: <20240108183302.255055-5-afd@ti.com> Date: Fri, 12 Jan 2024 18:33:58 +0100 Cc: Frank Binns , Donald Robson , Matt Coster , Adam Ford , Ivaylo Dimitrov , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , =?utf-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Paul Cercueil , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-omap@vger.kernel.org, linux-mips@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <122DC5ED-2AA7-46A0-845F-083922458385@goldelico.com> References: <20240108183302.255055-1-afd@ti.com> <20240108183302.255055-5-afd@ti.com> To: Andrew Davis X-Mailer: Apple Mail (2.3774.300.61.1.2) Hi, I just comment on this example, but it applies almost the same for all = other .dtsi changes. > Am 08.01.2024 um 19:32 schrieb Andrew Davis : >=20 > Add SGX GPU device entry to base OMAP4 dtsi file. >=20 > Signed-off-by: Andrew Davis > --- > arch/arm/boot/dts/ti/omap/omap4.dtsi | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/arm/boot/dts/ti/omap/omap4.dtsi = b/arch/arm/boot/dts/ti/omap/omap4.dtsi > index 2bbff9032be3e..559b2bfe4ca7c 100644 > --- a/arch/arm/boot/dts/ti/omap/omap4.dtsi > +++ b/arch/arm/boot/dts/ti/omap/omap4.dtsi > @@ -501,10 +501,11 @@ sgx_module: target-module@56000000 { > #size-cells =3D <1>; > ranges =3D <0 0x56000000 0x2000000>; >=20 > - /* > - * Closed source PowerVR driver, no child device > - * binding or driver in mainline > - */ > + gpu@0 { I wonder why we don't add a "gpu:" label here. Almost all other subsystem nodes have one (e.g. emif:, aes:, dss:, dsi:, = hdmi:, etc.), obviously for convenience when using a .dtsi file. It would allow a board-specific DTS to easily add status =3D "disabled" = to avoid driver probing or disabling the GPU (e.g. if there is no display). > + compatible =3D "ti,omap4430-gpu", "img,powervr-sgx540"; It still appears to me that the "img,powervr-sgx540" (or similar) entry = is redundant information. I have experimentally updated our openpvrsgx driver and we do not have = any use for this information (at least in the kernel driver): = https://github.com/goldelico/letux-kernel/commit/f2f7cb3b858ef255f52f2b82a= 8bb34c047337afe It shows how easy it is to derive the sgx version and revision number if = we ever need it inside the driver. So if you want to keep a reference to powervr, it would suffice to have > + compatible =3D "ti,omap4430-gpu", "img,powervr-sgx"; Otherwise your device tree entries compile fine and seem to work (at = least in a cursory test on PandaBoard ES). > + reg =3D <0x0 0x2000000>; /* 32MB */ > + interrupts =3D ; > + }; > }; BR and thanks, Nikolaus=